@mozilla/nimbus-schemas 3003.0.0 → 3003.1.0

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
@@ -68,8 +68,14 @@ export interface DesktopAllVersionsNimbusExperiment {
68
68
  * Examples are "org.mozilla.firefox_beta" and "firefox-desktop".
69
69
  */
70
70
  appId: string;
71
+ /**
72
+ * A mirror of the appId field
73
+ */
74
+ application: string;
71
75
  /**
72
76
  * A specific channel of an application such as "nightly", "beta", or "release".
77
+ *
78
+ * This field is only respected by nimbus-sdk-based applications.
73
79
  */
74
80
  channel: string;
75
81
  /**
@@ -152,6 +158,10 @@ export interface DesktopAllVersionsNimbusExperiment {
152
158
  * If null, it has not yet been published.
153
159
  */
154
160
  publishedDate?: string | null;
161
+ /**
162
+ * Opt out of feature schema validation.
163
+ */
164
+ featureValidationOptOut?: boolean;
155
165
  /**
156
166
  * When this property is set to true, treat this experiment as a Firefox Labs experiment
157
167
  */
@@ -180,10 +190,6 @@ export interface DesktopAllVersionsNimbusExperiment {
180
190
  * Branch configuration for the experiment.
181
191
  */
182
192
  branches: DesktopAllVersionsExperimentBranch[];
183
- /**
184
- * Opt out of feature schema validation.
185
- */
186
- featureValidationOptOut?: boolean;
187
193
  /**
188
194
  * The group this should appear under in Firefox Labs
189
195
  */
@@ -314,8 +320,14 @@ export interface DesktopNimbusExperiment {
314
320
  * Examples are "org.mozilla.firefox_beta" and "firefox-desktop".
315
321
  */
316
322
  appId: string;
323
+ /**
324
+ * A mirror of the appId field
325
+ */
326
+ application: string;
317
327
  /**
318
328
  * A specific channel of an application such as "nightly", "beta", or "release".
329
+ *
330
+ * This field is only respected by nimbus-sdk-based applications.
319
331
  */
320
332
  channel: string;
321
333
  /**
@@ -398,6 +410,10 @@ export interface DesktopNimbusExperiment {
398
410
  * If null, it has not yet been published.
399
411
  */
400
412
  publishedDate?: string | null;
413
+ /**
414
+ * Opt out of feature schema validation.
415
+ */
416
+ featureValidationOptOut?: boolean;
401
417
  /**
402
418
  * When this property is set to true, treat this experiment as a Firefox Labs experiment
403
419
  */
@@ -426,10 +442,6 @@ export interface DesktopNimbusExperiment {
426
442
  * Branch configuration for the experiment.
427
443
  */
428
444
  branches: DesktopExperimentBranch[];
429
- /**
430
- * Opt out of feature schema validation.
431
- */
432
- featureValidationOptOut?: boolean;
433
445
  /**
434
446
  * The group this should appear under in Firefox Labs
435
447
  */
@@ -490,8 +502,14 @@ export interface SdkNimbusExperiment {
490
502
  * Examples are "org.mozilla.firefox_beta" and "firefox-desktop".
491
503
  */
492
504
  appId: string;
505
+ /**
506
+ * A mirror of the appId field
507
+ */
508
+ application: string;
493
509
  /**
494
510
  * A specific channel of an application such as "nightly", "beta", or "release".
511
+ *
512
+ * This field is only respected by nimbus-sdk-based applications.
495
513
  */
496
514
  channel: string;
497
515
  /**
@@ -577,6 +595,12 @@ export interface SdkNimbusExperiment {
577
595
  * If null, it has not yet been published.
578
596
  */
579
597
  publishedDate?: string | null;
598
+ /**
599
+ * If true, clients should not perform feature validation.
600
+ *
601
+ * This field is only supported by Firefox Desktop.
602
+ */
603
+ featureValidationOptOut?: boolean | null;
580
604
  /**
581
605
  * When this property is set to true, treat this experiment as a Firefox Labs experiment
582
606
  */
@@ -899,3 +923,206 @@ export interface Statistic {
899
923
  analysis_basis?: AnalysisBasis | null;
900
924
  window_index?: string | null;
901
925
  }
926
+ /**
927
+ * A Nimbus experiment for V7.
928
+ */
929
+ export interface NimbusExperimentV7 {
930
+ /**
931
+ * Version of the NimbusExperiment schema this experiment refers to
932
+ */
933
+ schemaVersion: string;
934
+ /**
935
+ * Unique identifier for the experiment
936
+ */
937
+ slug: string;
938
+ /**
939
+ * Unique identifier for the experiiment.
940
+ *
941
+ * This is a duplicate of slug, but is required field for all Remote Settings records.
942
+ */
943
+ id: string;
944
+ /**
945
+ * A slug identifying the targeted product of this experiment.
946
+ *
947
+ * It should be a lowercased_with_underscores name that is short and unambiguous and it should match the app_name found in https://probeinfo.telemetry.mozilla.org/glean/repositories. Examples are "fenix" and "firefox_desktop".
948
+ */
949
+ appName: string;
950
+ /**
951
+ * The platform identifier for the targeted app.
952
+ *
953
+ * This should match app's identifier exactly as it appears in the relevant app store listing (for relevant platforms) or the app's Glean initialization (for other platforms).
954
+ *
955
+ * Examples are "org.mozilla.firefox_beta" and "firefox-desktop".
956
+ */
957
+ appId: string;
958
+ /**
959
+ * A mirror of the appId field
960
+ */
961
+ application: string;
962
+ /**
963
+ * A specific channel of an application such as "nightly", "beta", or "release".
964
+ *
965
+ * This field is only respected by nimbus-sdk-based applications.
966
+ */
967
+ channel: string;
968
+ /**
969
+ * Public name of the experiment that will be displayed on "about:studies".
970
+ */
971
+ userFacingName: string;
972
+ /**
973
+ * Short public description of the experiment that will be displayed on "about:studies".
974
+ */
975
+ userFacingDescription: string;
976
+ /**
977
+ * When this property is set to true, the SDK should not enroll new users into the experiment that have not already been enrolled.
978
+ */
979
+ isEnrollmentPaused: boolean;
980
+ /**
981
+ * When this property is set to true, treat this experiment as a rollout.
982
+ *
983
+ * Rollouts are currently handled as single-branch experiments separated from the bucketing namespace for normal experiments.
984
+ *
985
+ * See-also: https://mozilla-hub.atlassian.net/browse/SDK-405
986
+ */
987
+ isRollout?: boolean;
988
+ bucketConfig: ExperimentBucketConfig;
989
+ /**
990
+ * A list of outcomes relevant to the experiment analysis.
991
+ */
992
+ outcomes?: ExperimentOutcome[];
993
+ /**
994
+ * A list of featureIds the experiment contains configurations for.
995
+ */
996
+ featureIds: string[];
997
+ /**
998
+ * A JEXL targeting expression used to filter out experiments.
999
+ */
1000
+ targeting?: string | null;
1001
+ /**
1002
+ * Actual publish date of the experiment.
1003
+ *
1004
+ * Note that this value is expected to be null in Remote Settings.
1005
+ */
1006
+ startDate: string | null;
1007
+ /**
1008
+ * Actual enrollment end date of the experiment.
1009
+ *
1010
+ * Note that this value is expected to be null in Remote Settings.
1011
+ */
1012
+ enrollmentEndDate?: string | null;
1013
+ /**
1014
+ * Actual end date of this experiment.
1015
+ *
1016
+ * Note that this field is expected to be null in Remote Settings.
1017
+ */
1018
+ endDate: string | null;
1019
+ /**
1020
+ * Duration of the experiment from the start date in days.
1021
+ *
1022
+ * Note that this property is only used during the analysis phase (i.e., not by the SDK).
1023
+ */
1024
+ proposedDuration?: number;
1025
+ /**
1026
+ * This represents the number of days that we expect to enroll new users.
1027
+ *
1028
+ * Note that this property is only used during the analysis phase (i.e., not by the SDK).
1029
+ */
1030
+ proposedEnrollment: number;
1031
+ /**
1032
+ * The slug of the reference branch (i.e., the branch we consider "control").
1033
+ */
1034
+ referenceBranch: string | null;
1035
+ /**
1036
+ * The list of locale codes (e.g., "en-US" or "fr") that this experiment is targeting.
1037
+ *
1038
+ * If null, all locales are targeted.
1039
+ */
1040
+ locales?: string[] | null;
1041
+ /**
1042
+ * Per-locale localization substitutions.
1043
+ */
1044
+ localizations?: ExperimentLocalizations | null;
1045
+ /**
1046
+ * The date that this experiment was first published to Remote Settings.
1047
+ *
1048
+ * If null, it has not yet been published.
1049
+ */
1050
+ publishedDate?: string | null;
1051
+ /**
1052
+ * If true, clients should not perform feature validation.
1053
+ *
1054
+ * This field is only supported by Firefox Desktop.
1055
+ */
1056
+ featureValidationOptOut?: boolean | null;
1057
+ /**
1058
+ * When this property is set to true, treat this experiment as a Firefox Labs experiment
1059
+ */
1060
+ isFirefoxLabsOptIn?: boolean;
1061
+ /**
1062
+ * The title shown in Firefox Labs (Fluent ID or Resource ID)
1063
+ */
1064
+ firefoxLabsTitle?: string | null;
1065
+ /**
1066
+ * The description shown in Firefox Labs (Fluent ID or Resource ID)
1067
+ */
1068
+ firefoxLabsDescription?: string | null;
1069
+ /**
1070
+ * Links that will be used with the firefoxLabsDescription Fluent ID. May be null for Firefox Labs Opt-In recipes that do not use links.
1071
+ */
1072
+ firefoxLabsDescriptionLinks?: {
1073
+ [k: string]: string;
1074
+ } | null;
1075
+ /**
1076
+ * Does the experiment require a restart to take effect?
1077
+ *
1078
+ * Only used by Firefox Labs Opt-Ins.
1079
+ */
1080
+ requiresRestart?: boolean;
1081
+ /**
1082
+ * The channels available for the experiment.
1083
+ * This field should be preferred over the channel field.
1084
+ */
1085
+ channels?: string[];
1086
+ /**
1087
+ * Branch configuration for the experiment.
1088
+ */
1089
+ branches: ExperimentBranchV7[];
1090
+ /**
1091
+ * All documentation links associated with this experiment.
1092
+ */
1093
+ documentationLinks: DocumentationLink[];
1094
+ }
1095
+ export interface ExperimentBranchV7 {
1096
+ /**
1097
+ * Identifier for the branch.
1098
+ */
1099
+ slug: string;
1100
+ /**
1101
+ * Relative ratio of population for the branch.
1102
+ *
1103
+ * e.g., if branch A=1 and branch B=3, then branch A would get 25% of the population.
1104
+ */
1105
+ ratio: number;
1106
+ /**
1107
+ * An array of feature configurations.
1108
+ */
1109
+ features: ExperimentFeatureConfig[];
1110
+ /**
1111
+ * A description of the branch.
1112
+ */
1113
+ description: string;
1114
+ /**
1115
+ * The URLs of any screenshots associated with the branch.
1116
+ */
1117
+ screenshots: string[];
1118
+ }
1119
+ export interface DocumentationLink {
1120
+ /**
1121
+ * The name associated with the link.
1122
+ */
1123
+ title: string;
1124
+ /**
1125
+ * The URL associated with the link.
1126
+ */
1127
+ link: string;
1128
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mozilla/nimbus-schemas",
3
- "version": "3003.0.0",
3
+ "version": "3003.1.0",
4
4
  "description": "Schemas used by Mozilla Nimbus and related projects.",
5
5
  "main": "index.d.ts",
6
6
  "repository": {
@@ -12,6 +12,10 @@
12
12
  "description": "A slug identifying the targeted product of this experiment. It should be a lowercased_with_underscores name that is short and unambiguous and it should match the app_name found in https://probeinfo.telemetry.mozilla.org/glean/repositories. Examples are \"fenix\" and \"firefox_desktop\".",
13
13
  "type": "string"
14
14
  },
15
+ "application": {
16
+ "description": "A mirror of the appId field",
17
+ "type": "string"
18
+ },
15
19
  "branches": {
16
20
  "description": "Branch configuration for the experiment.",
17
21
  "items": {
@@ -24,7 +28,7 @@
24
28
  "description": "Bucketing configuration."
25
29
  },
26
30
  "channel": {
27
- "description": "A specific channel of an application such as \"nightly\", \"beta\", or \"release\".",
31
+ "description": "A specific channel of an application such as \"nightly\", \"beta\", or \"release\". This field is only respected by nimbus-sdk-based applications.",
28
32
  "type": "string"
29
33
  },
30
34
  "endDate": {
@@ -240,6 +244,7 @@
240
244
  "id",
241
245
  "appName",
242
246
  "appId",
247
+ "application",
243
248
  "channel",
244
249
  "userFacingName",
245
250
  "userFacingDescription",
@@ -12,6 +12,10 @@
12
12
  "description": "A slug identifying the targeted product of this experiment. It should be a lowercased_with_underscores name that is short and unambiguous and it should match the app_name found in https://probeinfo.telemetry.mozilla.org/glean/repositories. Examples are \"fenix\" and \"firefox_desktop\".",
13
13
  "type": "string"
14
14
  },
15
+ "application": {
16
+ "description": "A mirror of the appId field",
17
+ "type": "string"
18
+ },
15
19
  "branches": {
16
20
  "description": "Branch configuration for the experiment.",
17
21
  "items": {
@@ -24,7 +28,7 @@
24
28
  "description": "Bucketing configuration."
25
29
  },
26
30
  "channel": {
27
- "description": "A specific channel of an application such as \"nightly\", \"beta\", or \"release\".",
31
+ "description": "A specific channel of an application such as \"nightly\", \"beta\", or \"release\". This field is only respected by nimbus-sdk-based applications.",
28
32
  "type": "string"
29
33
  },
30
34
  "endDate": {
@@ -240,6 +244,7 @@
240
244
  "id",
241
245
  "appName",
242
246
  "appId",
247
+ "application",
243
248
  "channel",
244
249
  "userFacingName",
245
250
  "userFacingDescription",
@@ -12,10 +12,14 @@
12
12
  "description": "A slug identifying the targeted product of this experiment. It should be a lowercased_with_underscores name that is short and unambiguous and it should match the app_name found in https://probeinfo.telemetry.mozilla.org/glean/repositories. Examples are \"fenix\" and \"firefox_desktop\".",
13
13
  "type": "string"
14
14
  },
15
+ "application": {
16
+ "description": "A mirror of the appId field",
17
+ "type": "string"
18
+ },
15
19
  "branches": {
16
20
  "description": "Branch configuration for the experiment.",
17
21
  "items": {
18
- "$ref": "#/$defs/BaseExperimentBranch"
22
+ "$ref": "#/$defs/ExperimentBranchV7"
19
23
  },
20
24
  "type": "array"
21
25
  },
@@ -24,9 +28,16 @@
24
28
  "description": "Bucketing configuration."
25
29
  },
26
30
  "channel": {
27
- "description": "A specific channel of an application such as \"nightly\", \"beta\", or \"release\".",
31
+ "description": "A specific channel of an application such as \"nightly\", \"beta\", or \"release\". This field is only respected by nimbus-sdk-based applications.",
28
32
  "type": "string"
29
33
  },
34
+ "channels": {
35
+ "description": "The channels available for the experiment. This field should be preferred over the channel field.",
36
+ "items": {
37
+ "type": "string"
38
+ },
39
+ "type": "array"
40
+ },
30
41
  "documentationLinks": {
31
42
  "description": "All documentation links associated with this experiment.",
32
43
  "items": {
@@ -65,6 +76,17 @@
65
76
  },
66
77
  "type": "array"
67
78
  },
79
+ "featureValidationOptOut": {
80
+ "anyOf": [
81
+ {
82
+ "type": "boolean"
83
+ },
84
+ {
85
+ "type": "null"
86
+ }
87
+ ],
88
+ "description": "If true, clients should not perform feature validation. This field is only supported by Firefox Desktop."
89
+ },
68
90
  "firefoxLabsDescription": {
69
91
  "anyOf": [
70
92
  {
@@ -233,6 +255,7 @@
233
255
  "id",
234
256
  "appName",
235
257
  "appId",
258
+ "application",
236
259
  "channel",
237
260
  "userFacingName",
238
261
  "userFacingDescription",
@@ -264,8 +287,29 @@
264
287
  }
265
288
  },
266
289
  "$defs": {
267
- "BaseExperimentBranch": {
290
+ "DocumentationLink": {
291
+ "properties": {
292
+ "link": {
293
+ "description": "The URL associated with the link.",
294
+ "type": "string"
295
+ },
296
+ "title": {
297
+ "description": "The name associated with the link.",
298
+ "type": "string"
299
+ }
300
+ },
301
+ "required": [
302
+ "title",
303
+ "link"
304
+ ],
305
+ "type": "object"
306
+ },
307
+ "ExperimentBranchV7": {
268
308
  "properties": {
309
+ "description": {
310
+ "description": "A description of the branch.",
311
+ "type": "string"
312
+ },
269
313
  "features": {
270
314
  "description": "An array of feature configurations.",
271
315
  "items": {
@@ -277,6 +321,13 @@
277
321
  "description": "Relative ratio of population for the branch. e.g., if branch A=1 and branch B=3, then branch A would get 25% of the population.",
278
322
  "type": "integer"
279
323
  },
324
+ "screenshots": {
325
+ "description": "The URLs of any screenshots associated with the branch.",
326
+ "items": {
327
+ "type": "string"
328
+ },
329
+ "type": "array"
330
+ },
280
331
  "slug": {
281
332
  "description": "Identifier for the branch.",
282
333
  "type": "string"
@@ -285,24 +336,9 @@
285
336
  "required": [
286
337
  "slug",
287
338
  "ratio",
288
- "features"
289
- ],
290
- "type": "object"
291
- },
292
- "DocumentationLink": {
293
- "properties": {
294
- "link": {
295
- "description": "The URL associated with the link.",
296
- "type": "string"
297
- },
298
- "title": {
299
- "description": "The name associated with the link.",
300
- "type": "string"
301
- }
302
- },
303
- "required": [
304
- "title",
305
- "link"
339
+ "features",
340
+ "description",
341
+ "screenshots"
306
342
  ],
307
343
  "type": "object"
308
344
  },
@@ -12,6 +12,10 @@
12
12
  "description": "A slug identifying the targeted product of this experiment. It should be a lowercased_with_underscores name that is short and unambiguous and it should match the app_name found in https://probeinfo.telemetry.mozilla.org/glean/repositories. Examples are \"fenix\" and \"firefox_desktop\".",
13
13
  "type": "string"
14
14
  },
15
+ "application": {
16
+ "description": "A mirror of the appId field",
17
+ "type": "string"
18
+ },
15
19
  "branches": {
16
20
  "description": "Branch configuration for the SDK experiment.",
17
21
  "items": {
@@ -24,7 +28,7 @@
24
28
  "description": "Bucketing configuration."
25
29
  },
26
30
  "channel": {
27
- "description": "A specific channel of an application such as \"nightly\", \"beta\", or \"release\".",
31
+ "description": "A specific channel of an application such as \"nightly\", \"beta\", or \"release\". This field is only respected by nimbus-sdk-based applications.",
28
32
  "type": "string"
29
33
  },
30
34
  "endDate": {
@@ -58,6 +62,17 @@
58
62
  },
59
63
  "type": "array"
60
64
  },
65
+ "featureValidationOptOut": {
66
+ "anyOf": [
67
+ {
68
+ "type": "boolean"
69
+ },
70
+ {
71
+ "type": "null"
72
+ }
73
+ ],
74
+ "description": "If true, clients should not perform feature validation. This field is only supported by Firefox Desktop."
75
+ },
61
76
  "firefoxLabsDescription": {
62
77
  "anyOf": [
63
78
  {
@@ -226,6 +241,7 @@
226
241
  "id",
227
242
  "appName",
228
243
  "appId",
244
+ "application",
229
245
  "channel",
230
246
  "userFacingName",
231
247
  "userFacingDescription",