@oursprivacy/platform-sdk 1.46.0 → 1.47.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.
Files changed (160) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/client.d.mts +20 -11
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +20 -11
  5. package/client.d.ts.map +1 -1
  6. package/client.js +11 -2
  7. package/client.js.map +1 -1
  8. package/client.mjs +11 -2
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/attribution.d.mts +9 -1
  12. package/resources/attribution.d.mts.map +1 -1
  13. package/resources/attribution.d.ts +9 -1
  14. package/resources/attribution.d.ts.map +1 -1
  15. package/resources/consent-settings.d.mts +48 -0
  16. package/resources/consent-settings.d.mts.map +1 -1
  17. package/resources/consent-settings.d.ts +48 -0
  18. package/resources/consent-settings.d.ts.map +1 -1
  19. package/resources/conversion-journey-summaries.d.mts +38 -0
  20. package/resources/conversion-journey-summaries.d.mts.map +1 -1
  21. package/resources/conversion-journey-summaries.d.ts +38 -0
  22. package/resources/conversion-journey-summaries.d.ts.map +1 -1
  23. package/resources/conversion-journey-summaries.js +38 -0
  24. package/resources/conversion-journey-summaries.js.map +1 -1
  25. package/resources/conversion-journey-summaries.mjs +38 -0
  26. package/resources/conversion-journey-summaries.mjs.map +1 -1
  27. package/resources/data-governance.d.mts +5 -5
  28. package/resources/data-governance.d.mts.map +1 -1
  29. package/resources/data-governance.d.ts +5 -5
  30. package/resources/data-governance.d.ts.map +1 -1
  31. package/resources/destinations.d.mts +7 -27
  32. package/resources/destinations.d.mts.map +1 -1
  33. package/resources/destinations.d.ts +7 -27
  34. package/resources/destinations.d.ts.map +1 -1
  35. package/resources/experiment-variants.d.mts +4 -2
  36. package/resources/experiment-variants.d.mts.map +1 -1
  37. package/resources/experiment-variants.d.ts +4 -2
  38. package/resources/experiment-variants.d.ts.map +1 -1
  39. package/resources/experiments.d.mts +677 -102
  40. package/resources/experiments.d.mts.map +1 -1
  41. package/resources/experiments.d.ts +677 -102
  42. package/resources/experiments.d.ts.map +1 -1
  43. package/resources/experiments.js +32 -2
  44. package/resources/experiments.js.map +1 -1
  45. package/resources/experiments.mjs +32 -2
  46. package/resources/experiments.mjs.map +1 -1
  47. package/resources/funnels.d.mts +172 -22
  48. package/resources/funnels.d.mts.map +1 -1
  49. package/resources/funnels.d.ts +172 -22
  50. package/resources/funnels.d.ts.map +1 -1
  51. package/resources/funnels.js +10 -2
  52. package/resources/funnels.js.map +1 -1
  53. package/resources/funnels.mjs +10 -2
  54. package/resources/funnels.mjs.map +1 -1
  55. package/resources/heatmap-pages.d.mts +42 -14
  56. package/resources/heatmap-pages.d.mts.map +1 -1
  57. package/resources/heatmap-pages.d.ts +42 -14
  58. package/resources/heatmap-pages.d.ts.map +1 -1
  59. package/resources/heatmap-pages.js +11 -7
  60. package/resources/heatmap-pages.js.map +1 -1
  61. package/resources/heatmap-pages.mjs +11 -7
  62. package/resources/heatmap-pages.mjs.map +1 -1
  63. package/resources/index.d.mts +8 -5
  64. package/resources/index.d.mts.map +1 -1
  65. package/resources/index.d.ts +8 -5
  66. package/resources/index.d.ts.map +1 -1
  67. package/resources/index.js +7 -1
  68. package/resources/index.js.map +1 -1
  69. package/resources/index.mjs +3 -0
  70. package/resources/index.mjs.map +1 -1
  71. package/resources/mappings.d.mts +2 -2
  72. package/resources/mappings.d.mts.map +1 -1
  73. package/resources/mappings.d.ts +2 -2
  74. package/resources/mappings.d.ts.map +1 -1
  75. package/resources/session-replays.d.mts +91 -0
  76. package/resources/session-replays.d.mts.map +1 -0
  77. package/resources/session-replays.d.ts +91 -0
  78. package/resources/session-replays.d.ts.map +1 -0
  79. package/resources/session-replays.js +24 -0
  80. package/resources/session-replays.js.map +1 -0
  81. package/resources/session-replays.mjs +20 -0
  82. package/resources/session-replays.mjs.map +1 -0
  83. package/resources/short-links.d.mts +138 -37
  84. package/resources/short-links.d.mts.map +1 -1
  85. package/resources/short-links.d.ts +138 -37
  86. package/resources/short-links.d.ts.map +1 -1
  87. package/resources/short-links.js +27 -12
  88. package/resources/short-links.js.map +1 -1
  89. package/resources/short-links.mjs +27 -12
  90. package/resources/short-links.mjs.map +1 -1
  91. package/resources/sources.d.mts +10 -6
  92. package/resources/sources.d.mts.map +1 -1
  93. package/resources/sources.d.ts +10 -6
  94. package/resources/sources.d.ts.map +1 -1
  95. package/resources/tag-manager-tags.d.mts +2 -2
  96. package/resources/tag-manager-tags.d.ts +2 -2
  97. package/resources/tag-manager-tags.js +2 -2
  98. package/resources/tag-manager-tags.mjs +2 -2
  99. package/resources/tag-manager-triggers.d.mts +18 -1
  100. package/resources/tag-manager-triggers.d.mts.map +1 -1
  101. package/resources/tag-manager-triggers.d.ts +18 -1
  102. package/resources/tag-manager-triggers.d.ts.map +1 -1
  103. package/resources/translation-widgets.d.mts +62 -0
  104. package/resources/translation-widgets.d.mts.map +1 -0
  105. package/resources/translation-widgets.d.ts +62 -0
  106. package/resources/translation-widgets.d.ts.map +1 -0
  107. package/resources/translation-widgets.js +18 -0
  108. package/resources/translation-widgets.js.map +1 -0
  109. package/resources/translation-widgets.mjs +14 -0
  110. package/resources/translation-widgets.mjs.map +1 -0
  111. package/resources/video-channels.d.mts +17 -17
  112. package/resources/video-channels.d.mts.map +1 -1
  113. package/resources/video-channels.d.ts +17 -17
  114. package/resources/video-channels.d.ts.map +1 -1
  115. package/resources/video-channels.js +17 -16
  116. package/resources/video-channels.js.map +1 -1
  117. package/resources/video-channels.mjs +17 -16
  118. package/resources/video-channels.mjs.map +1 -1
  119. package/resources/web-analytics.d.mts +345 -0
  120. package/resources/web-analytics.d.mts.map +1 -0
  121. package/resources/web-analytics.d.ts +345 -0
  122. package/resources/web-analytics.d.ts.map +1 -0
  123. package/resources/web-analytics.js +61 -0
  124. package/resources/web-analytics.js.map +1 -0
  125. package/resources/web-analytics.mjs +57 -0
  126. package/resources/web-analytics.mjs.map +1 -0
  127. package/resources/web-scanners.d.mts +314 -14
  128. package/resources/web-scanners.d.mts.map +1 -1
  129. package/resources/web-scanners.d.ts +314 -14
  130. package/resources/web-scanners.d.ts.map +1 -1
  131. package/resources/web-scanners.js +139 -13
  132. package/resources/web-scanners.js.map +1 -1
  133. package/resources/web-scanners.mjs +139 -13
  134. package/resources/web-scanners.mjs.map +1 -1
  135. package/src/client.ts +116 -19
  136. package/src/resources/attribution.ts +11 -1
  137. package/src/resources/consent-settings.ts +56 -0
  138. package/src/resources/conversion-journey-summaries.ts +38 -0
  139. package/src/resources/data-governance.ts +5 -5
  140. package/src/resources/destinations.ts +18 -115
  141. package/src/resources/experiment-variants.ts +4 -2
  142. package/src/resources/experiments.ts +812 -101
  143. package/src/resources/funnels.ts +276 -21
  144. package/src/resources/heatmap-pages.ts +49 -14
  145. package/src/resources/index.ts +47 -3
  146. package/src/resources/mappings.ts +2 -2
  147. package/src/resources/session-replays.ts +138 -0
  148. package/src/resources/short-links.ts +164 -36
  149. package/src/resources/sources.ts +11 -0
  150. package/src/resources/tag-manager-tags.ts +2 -2
  151. package/src/resources/tag-manager-triggers.ts +18 -1
  152. package/src/resources/translation-widgets.ts +97 -0
  153. package/src/resources/video-channels.ts +19 -18
  154. package/src/resources/web-analytics.ts +494 -0
  155. package/src/resources/web-scanners.ts +443 -13
  156. package/src/version.ts +1 -1
  157. package/version.d.mts +1 -1
  158. package/version.d.ts +1 -1
  159. package/version.js +1 -1
  160. package/version.mjs +1 -1
@@ -64,8 +64,8 @@ export class Experiments extends APIResource {
64
64
  /**
65
65
  * Partially update an experiment. Only the fields you send are changed, except
66
66
  * renaming a non-draft legacy experiment with no stored key preserves its current
67
- * name-derived key. Edits are allowed on draft, running, and paused experiments and
68
- * are recorded in the change log. Only completed experiments return 409 with
67
+ * name-derived key. Edits are allowed on draft, running, and paused experiments
68
+ * and are recorded in the change log. Only completed experiments return 409 with
69
69
  * `A completed experiment can no longer be edited`. Use the lifecycle endpoints
70
70
  * (`/start`, `/pause`, `/resume`, `/stop`) to change status. Requires scope:
71
71
  * experiment:update
@@ -95,6 +95,20 @@ export class Experiments extends APIResource {
95
95
  return this._client.delete(path`/rest/v1/experiments/${id}`, options);
96
96
  }
97
97
 
98
+ /**
99
+ * Create a draft copy of an experiment. The copy keeps its configuration and
100
+ * variants, receives a new key, and does not retain lifecycle, rollout, or result
101
+ * state. Requires scope: experiment:create
102
+ *
103
+ * @example
104
+ * ```ts
105
+ * const response = await client.experiments.duplicate('id');
106
+ * ```
107
+ */
108
+ duplicate(id: string, options?: RequestOptions): APIPromise<ExperimentDuplicateResponse> {
109
+ return this._client.post(path`/rest/v1/experiments/${id}/duplicate`, options);
110
+ }
111
+
98
112
  /**
99
113
  * Start an experiment. By default also publishes the experiment and its variants
100
114
  * atomically as a new version, making them live for end users — this is the
@@ -245,6 +259,28 @@ export class Experiments extends APIResource {
245
259
  return this._client.get(path`/rest/v1/experiments/${id}/results`, { query, ...options });
246
260
  }
247
261
 
262
+ /**
263
+ * Return the configured Bayesian, fixed-horizon Frequentist, or Sequential
264
+ * analysis for conversion metrics; Bayesian and Frequentist also support value
265
+ * metrics. The response includes common visitor, impression, readiness, evidence,
266
+ * and data-quality fields plus the applicable method-specific result block.
267
+ * Visitors are the inferential unit; impressions remain a delivery diagnostic.
268
+ * Secondary event overrides are labeled exploratory, and unsupported legacy plans
269
+ * suppress official evidence. Requires scope: experiment:find
270
+ *
271
+ * @example
272
+ * ```ts
273
+ * const response = await client.experiments.analysis('id');
274
+ * ```
275
+ */
276
+ analysis(
277
+ id: string,
278
+ query: ExperimentAnalysisParams | null | undefined = {},
279
+ options?: RequestOptions,
280
+ ): APIPromise<ExperimentAnalysisResponse> {
281
+ return this._client.get(path`/rest/v1/experiments/${id}/analysis`, { query, ...options });
282
+ }
283
+
248
284
  /**
249
285
  * Per-day per-variant impressions, conversions, and conversion rate, sliced to a
250
286
  * date range. Use this to chart trends, compare windows, or zoom in on a specific
@@ -334,11 +370,30 @@ export interface ExperimentListResponse {
334
370
  /**
335
371
  * All persisted variants for this experiment, including the control variant. A
336
372
  * non-personalization experiment needs at least two variants before it can be
337
- * started. Reading variants requires the `experiment:find` scope in addition to
338
- * `experiment:list`; an API key without it receives an empty array here.
373
+ * started. Reading variants is gated by the `experiment:find` permission: a key
374
+ * holding the `experiment:find` scope always receives them, and a key created by
375
+ * an org admin/member receives them too (that role satisfies the check). A key
376
+ * that holds neither the scope nor a qualifying creator role receives an empty
377
+ * array here.
339
378
  */
340
379
  variants: Array<ExperimentListResponse.Variant>;
341
380
 
381
+ /**
382
+ * Normalized statistical analysis plan. Missing legacy rows resolve to Bayesian
383
+ * analysis in GraphQL.
384
+ */
385
+ analysisConfig?: unknown | null;
386
+
387
+ /**
388
+ * Primary metric definition frozen with the analysis plan at start time.
389
+ */
390
+ analysisMetricSnapshot?: unknown | null;
391
+
392
+ /**
393
+ * ISO-8601 timestamp when the analysis plan was locked at experiment start.
394
+ */
395
+ analysisStartedAt?: string | null;
396
+
342
397
  /**
343
398
  * Optional human-readable hypothesis or summary. In GraphQL this is backed by the
344
399
  * experiment hypothesis field.
@@ -377,8 +432,8 @@ export interface ExperimentListResponse {
377
432
  stoppedAt?: string | null;
378
433
 
379
434
  /**
380
- * Eligibility rules: URL-pattern globs, optional audience, query-param conditions,
381
- * visitor status, and (server-side) visitor properties. Same shape as the
435
+ * Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
436
+ * and runtime visitor-context or accumulated-property rules. Same shape as the
382
437
  * create/patch input.
383
438
  */
384
439
  targetingRules?: ExperimentListResponse.TargetingRules | null;
@@ -543,8 +598,8 @@ export namespace ExperimentListResponse {
543
598
  }
544
599
 
545
600
  /**
546
- * Eligibility rules: URL-pattern globs, optional audience, query-param conditions,
547
- * visitor status, and (server-side) visitor properties. Same shape as the
601
+ * Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
602
+ * and runtime visitor-context or accumulated-property rules. Same shape as the
548
603
  * create/patch input.
549
604
  */
550
605
  export interface TargetingRules {
@@ -565,7 +620,10 @@ export namespace ExperimentListResponse {
565
620
  urlPatterns: Array<string>;
566
621
 
567
622
  /**
568
- * Optional audience identifier used for server-side eligibility filtering.
623
+ * Reserved audience identifier. It is stored with the experiment but is not
624
+ * evaluated by the browser or server-side experiment runtime. Use
625
+ * `visitorProperties`, URL patterns, query parameters, or visitor status for
626
+ * runtime eligibility.
569
627
  */
570
628
  audienceId?: string | null;
571
629
 
@@ -576,8 +634,10 @@ export namespace ExperimentListResponse {
576
634
  queryParams?: Array<TargetingRules.QueryParam> | null;
577
635
 
578
636
  /**
579
- * Optional visitor-property matching rules. These are passed through as JSON for
580
- * experimentation targeting.
637
+ * Optional runtime targeting rules. Recognized namespaced keys read visitor
638
+ * context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
639
+ * `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
640
+ * accumulated personalization property.
581
641
  */
582
642
  visitorProperties?: unknown | null;
583
643
 
@@ -647,11 +707,30 @@ export interface ExperimentCreateResponse {
647
707
  /**
648
708
  * All persisted variants for this experiment, including the control variant. A
649
709
  * non-personalization experiment needs at least two variants before it can be
650
- * started. Reading variants requires the `experiment:find` scope in addition to
651
- * `experiment:list`; an API key without it receives an empty array here.
710
+ * started. Reading variants is gated by the `experiment:find` permission: a key
711
+ * holding the `experiment:find` scope always receives them, and a key created by
712
+ * an org admin/member receives them too (that role satisfies the check). A key
713
+ * that holds neither the scope nor a qualifying creator role receives an empty
714
+ * array here.
652
715
  */
653
716
  variants: Array<ExperimentCreateResponse.Variant>;
654
717
 
718
+ /**
719
+ * Normalized statistical analysis plan. Missing legacy rows resolve to Bayesian
720
+ * analysis in GraphQL.
721
+ */
722
+ analysisConfig?: unknown | null;
723
+
724
+ /**
725
+ * Primary metric definition frozen with the analysis plan at start time.
726
+ */
727
+ analysisMetricSnapshot?: unknown | null;
728
+
729
+ /**
730
+ * ISO-8601 timestamp when the analysis plan was locked at experiment start.
731
+ */
732
+ analysisStartedAt?: string | null;
733
+
655
734
  /**
656
735
  * Optional human-readable hypothesis or summary. In GraphQL this is backed by the
657
736
  * experiment hypothesis field.
@@ -690,8 +769,8 @@ export interface ExperimentCreateResponse {
690
769
  stoppedAt?: string | null;
691
770
 
692
771
  /**
693
- * Eligibility rules: URL-pattern globs, optional audience, query-param conditions,
694
- * visitor status, and (server-side) visitor properties. Same shape as the
772
+ * Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
773
+ * and runtime visitor-context or accumulated-property rules. Same shape as the
695
774
  * create/patch input.
696
775
  */
697
776
  targetingRules?: ExperimentCreateResponse.TargetingRules | null;
@@ -856,8 +935,8 @@ export namespace ExperimentCreateResponse {
856
935
  }
857
936
 
858
937
  /**
859
- * Eligibility rules: URL-pattern globs, optional audience, query-param conditions,
860
- * visitor status, and (server-side) visitor properties. Same shape as the
938
+ * Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
939
+ * and runtime visitor-context or accumulated-property rules. Same shape as the
861
940
  * create/patch input.
862
941
  */
863
942
  export interface TargetingRules {
@@ -878,7 +957,10 @@ export namespace ExperimentCreateResponse {
878
957
  urlPatterns: Array<string>;
879
958
 
880
959
  /**
881
- * Optional audience identifier used for server-side eligibility filtering.
960
+ * Reserved audience identifier. It is stored with the experiment but is not
961
+ * evaluated by the browser or server-side experiment runtime. Use
962
+ * `visitorProperties`, URL patterns, query parameters, or visitor status for
963
+ * runtime eligibility.
882
964
  */
883
965
  audienceId?: string | null;
884
966
 
@@ -889,8 +971,10 @@ export namespace ExperimentCreateResponse {
889
971
  queryParams?: Array<TargetingRules.QueryParam> | null;
890
972
 
891
973
  /**
892
- * Optional visitor-property matching rules. These are passed through as JSON for
893
- * experimentation targeting.
974
+ * Optional runtime targeting rules. Recognized namespaced keys read visitor
975
+ * context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
976
+ * `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
977
+ * accumulated personalization property.
894
978
  */
895
979
  visitorProperties?: unknown | null;
896
980
 
@@ -960,11 +1044,30 @@ export interface ExperimentRetrieveResponse {
960
1044
  /**
961
1045
  * All persisted variants for this experiment, including the control variant. A
962
1046
  * non-personalization experiment needs at least two variants before it can be
963
- * started. Reading variants requires the `experiment:find` scope in addition to
964
- * `experiment:list`; an API key without it receives an empty array here.
1047
+ * started. Reading variants is gated by the `experiment:find` permission: a key
1048
+ * holding the `experiment:find` scope always receives them, and a key created by
1049
+ * an org admin/member receives them too (that role satisfies the check). A key
1050
+ * that holds neither the scope nor a qualifying creator role receives an empty
1051
+ * array here.
965
1052
  */
966
1053
  variants: Array<ExperimentRetrieveResponse.Variant>;
967
1054
 
1055
+ /**
1056
+ * Normalized statistical analysis plan. Missing legacy rows resolve to Bayesian
1057
+ * analysis in GraphQL.
1058
+ */
1059
+ analysisConfig?: unknown | null;
1060
+
1061
+ /**
1062
+ * Primary metric definition frozen with the analysis plan at start time.
1063
+ */
1064
+ analysisMetricSnapshot?: unknown | null;
1065
+
1066
+ /**
1067
+ * ISO-8601 timestamp when the analysis plan was locked at experiment start.
1068
+ */
1069
+ analysisStartedAt?: string | null;
1070
+
968
1071
  /**
969
1072
  * Optional human-readable hypothesis or summary. In GraphQL this is backed by the
970
1073
  * experiment hypothesis field.
@@ -1003,8 +1106,8 @@ export interface ExperimentRetrieveResponse {
1003
1106
  stoppedAt?: string | null;
1004
1107
 
1005
1108
  /**
1006
- * Eligibility rules: URL-pattern globs, optional audience, query-param conditions,
1007
- * visitor status, and (server-side) visitor properties. Same shape as the
1109
+ * Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
1110
+ * and runtime visitor-context or accumulated-property rules. Same shape as the
1008
1111
  * create/patch input.
1009
1112
  */
1010
1113
  targetingRules?: ExperimentRetrieveResponse.TargetingRules | null;
@@ -1169,8 +1272,8 @@ export namespace ExperimentRetrieveResponse {
1169
1272
  }
1170
1273
 
1171
1274
  /**
1172
- * Eligibility rules: URL-pattern globs, optional audience, query-param conditions,
1173
- * visitor status, and (server-side) visitor properties. Same shape as the
1275
+ * Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
1276
+ * and runtime visitor-context or accumulated-property rules. Same shape as the
1174
1277
  * create/patch input.
1175
1278
  */
1176
1279
  export interface TargetingRules {
@@ -1191,7 +1294,10 @@ export namespace ExperimentRetrieveResponse {
1191
1294
  urlPatterns: Array<string>;
1192
1295
 
1193
1296
  /**
1194
- * Optional audience identifier used for server-side eligibility filtering.
1297
+ * Reserved audience identifier. It is stored with the experiment but is not
1298
+ * evaluated by the browser or server-side experiment runtime. Use
1299
+ * `visitorProperties`, URL patterns, query parameters, or visitor status for
1300
+ * runtime eligibility.
1195
1301
  */
1196
1302
  audienceId?: string | null;
1197
1303
 
@@ -1202,8 +1308,10 @@ export namespace ExperimentRetrieveResponse {
1202
1308
  queryParams?: Array<TargetingRules.QueryParam> | null;
1203
1309
 
1204
1310
  /**
1205
- * Optional visitor-property matching rules. These are passed through as JSON for
1206
- * experimentation targeting.
1311
+ * Optional runtime targeting rules. Recognized namespaced keys read visitor
1312
+ * context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
1313
+ * `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
1314
+ * accumulated personalization property.
1207
1315
  */
1208
1316
  visitorProperties?: unknown | null;
1209
1317
 
@@ -1273,11 +1381,30 @@ export interface ExperimentUpdateResponse {
1273
1381
  /**
1274
1382
  * All persisted variants for this experiment, including the control variant. A
1275
1383
  * non-personalization experiment needs at least two variants before it can be
1276
- * started. Reading variants requires the `experiment:find` scope in addition to
1277
- * `experiment:list`; an API key without it receives an empty array here.
1384
+ * started. Reading variants is gated by the `experiment:find` permission: a key
1385
+ * holding the `experiment:find` scope always receives them, and a key created by
1386
+ * an org admin/member receives them too (that role satisfies the check). A key
1387
+ * that holds neither the scope nor a qualifying creator role receives an empty
1388
+ * array here.
1278
1389
  */
1279
1390
  variants: Array<ExperimentUpdateResponse.Variant>;
1280
1391
 
1392
+ /**
1393
+ * Normalized statistical analysis plan. Missing legacy rows resolve to Bayesian
1394
+ * analysis in GraphQL.
1395
+ */
1396
+ analysisConfig?: unknown | null;
1397
+
1398
+ /**
1399
+ * Primary metric definition frozen with the analysis plan at start time.
1400
+ */
1401
+ analysisMetricSnapshot?: unknown | null;
1402
+
1403
+ /**
1404
+ * ISO-8601 timestamp when the analysis plan was locked at experiment start.
1405
+ */
1406
+ analysisStartedAt?: string | null;
1407
+
1281
1408
  /**
1282
1409
  * Optional human-readable hypothesis or summary. In GraphQL this is backed by the
1283
1410
  * experiment hypothesis field.
@@ -1316,8 +1443,8 @@ export interface ExperimentUpdateResponse {
1316
1443
  stoppedAt?: string | null;
1317
1444
 
1318
1445
  /**
1319
- * Eligibility rules: URL-pattern globs, optional audience, query-param conditions,
1320
- * visitor status, and (server-side) visitor properties. Same shape as the
1446
+ * Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
1447
+ * and runtime visitor-context or accumulated-property rules. Same shape as the
1321
1448
  * create/patch input.
1322
1449
  */
1323
1450
  targetingRules?: ExperimentUpdateResponse.TargetingRules | null;
@@ -1482,8 +1609,8 @@ export namespace ExperimentUpdateResponse {
1482
1609
  }
1483
1610
 
1484
1611
  /**
1485
- * Eligibility rules: URL-pattern globs, optional audience, query-param conditions,
1486
- * visitor status, and (server-side) visitor properties. Same shape as the
1612
+ * Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
1613
+ * and runtime visitor-context or accumulated-property rules. Same shape as the
1487
1614
  * create/patch input.
1488
1615
  */
1489
1616
  export interface TargetingRules {
@@ -1504,7 +1631,10 @@ export namespace ExperimentUpdateResponse {
1504
1631
  urlPatterns: Array<string>;
1505
1632
 
1506
1633
  /**
1507
- * Optional audience identifier used for server-side eligibility filtering.
1634
+ * Reserved audience identifier. It is stored with the experiment but is not
1635
+ * evaluated by the browser or server-side experiment runtime. Use
1636
+ * `visitorProperties`, URL patterns, query parameters, or visitor status for
1637
+ * runtime eligibility.
1508
1638
  */
1509
1639
  audienceId?: string | null;
1510
1640
 
@@ -1515,8 +1645,10 @@ export namespace ExperimentUpdateResponse {
1515
1645
  queryParams?: Array<TargetingRules.QueryParam> | null;
1516
1646
 
1517
1647
  /**
1518
- * Optional visitor-property matching rules. These are passed through as JSON for
1519
- * experimentation targeting.
1648
+ * Optional runtime targeting rules. Recognized namespaced keys read visitor
1649
+ * context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
1650
+ * `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
1651
+ * accumulated personalization property.
1520
1652
  */
1521
1653
  visitorProperties?: unknown | null;
1522
1654
 
@@ -1553,6 +1685,343 @@ export namespace ExperimentUpdateResponse {
1553
1685
  */
1554
1686
  export type ExperimentDeleteResponse = boolean;
1555
1687
 
1688
+ export interface ExperimentDuplicateResponse {
1689
+ /**
1690
+ * Unique identifier for the experiment.
1691
+ */
1692
+ id: string;
1693
+
1694
+ /**
1695
+ * ISO-8601 timestamp when the experiment was created.
1696
+ */
1697
+ createdAt: string;
1698
+
1699
+ /**
1700
+ * Stable code-facing key for the experiment. Use this with the headless SDK
1701
+ * `getExperimentByKey()` API instead of hard-coding opaque experiment IDs into
1702
+ * application code.
1703
+ */
1704
+ key: string;
1705
+
1706
+ /**
1707
+ * Short, human-readable experiment name.
1708
+ */
1709
+ name: string;
1710
+
1711
+ /**
1712
+ * Lifecycle state. `draft` is editable, `running` is active, `paused` is
1713
+ * temporarily inactive, and `completed` is permanently stopped.
1714
+ */
1715
+ status: 'completed' | 'draft' | 'paused' | 'running';
1716
+
1717
+ /**
1718
+ * Percent of eligible traffic assigned into the experiment. Use 0 to fully disable
1719
+ * enrollment without deleting the experiment.
1720
+ */
1721
+ trafficAllocation: number;
1722
+
1723
+ /**
1724
+ * All persisted variants for this experiment, including the control variant. A
1725
+ * non-personalization experiment needs at least two variants before it can be
1726
+ * started. Reading variants is gated by the `experiment:find` permission: a key
1727
+ * holding the `experiment:find` scope always receives them, and a key created by
1728
+ * an org admin/member receives them too (that role satisfies the check). A key
1729
+ * that holds neither the scope nor a qualifying creator role receives an empty
1730
+ * array here.
1731
+ */
1732
+ variants: Array<ExperimentDuplicateResponse.Variant>;
1733
+
1734
+ /**
1735
+ * Normalized statistical analysis plan. Missing legacy rows resolve to Bayesian
1736
+ * analysis in GraphQL.
1737
+ */
1738
+ analysisConfig?: unknown | null;
1739
+
1740
+ /**
1741
+ * Primary metric definition frozen with the analysis plan at start time.
1742
+ */
1743
+ analysisMetricSnapshot?: unknown | null;
1744
+
1745
+ /**
1746
+ * ISO-8601 timestamp when the analysis plan was locked at experiment start.
1747
+ */
1748
+ analysisStartedAt?: string | null;
1749
+
1750
+ /**
1751
+ * Optional human-readable hypothesis or summary. In GraphQL this is backed by the
1752
+ * experiment hypothesis field.
1753
+ */
1754
+ description?: string | null;
1755
+
1756
+ /**
1757
+ * For redirect variants, whether the original page query string should be
1758
+ * forwarded onto the redirect URL.
1759
+ */
1760
+ includeQueryString?: boolean | null;
1761
+
1762
+ /**
1763
+ * Configured success metrics. The read shape mirrors the write shape — `metrics`
1764
+ * from a GET response can be PATCHed back without modification.
1765
+ */
1766
+ metrics?: ExperimentDuplicateResponse.Metrics | null;
1767
+
1768
+ /**
1769
+ * Variant currently rolled out to 100% of targeted traffic on a completed
1770
+ * experiment. When set (and not the control), the runtime keeps serving it to
1771
+ * every matching visitor — a winning redirect becomes an ongoing redirect.
1772
+ * Independent of `winnerVariantId`. Set via `POST /experiments/{id}/rollout`;
1773
+ * cleared via `POST /experiments/{id}/end-rollout`.
1774
+ */
1775
+ rolloutVariantId?: string | null;
1776
+
1777
+ /**
1778
+ * ISO-8601 timestamp when the experiment most recently entered a running state.
1779
+ */
1780
+ startedAt?: string | null;
1781
+
1782
+ /**
1783
+ * ISO-8601 timestamp when the experiment was completed, if it has been stopped.
1784
+ */
1785
+ stoppedAt?: string | null;
1786
+
1787
+ /**
1788
+ * Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
1789
+ * and runtime visitor-context or accumulated-property rules. Same shape as the
1790
+ * create/patch input.
1791
+ */
1792
+ targetingRules?: ExperimentDuplicateResponse.TargetingRules | null;
1793
+
1794
+ /**
1795
+ * Experiment mode. `ab` and `multivariate` use traffic allocation and results;
1796
+ * `personalization` is always-on targeting.
1797
+ */
1798
+ type?: 'ab' | 'multivariate' | 'personalization' | null;
1799
+
1800
+ /**
1801
+ * ISO-8601 timestamp for the last persisted update, if any.
1802
+ */
1803
+ updatedAt?: string | null;
1804
+
1805
+ /**
1806
+ * Declared winning variant — reporting metadata only. Records which variant won;
1807
+ * does NOT change what visitors are served. Set at stop time or later via
1808
+ * `POST /experiments/{id}/winner`.
1809
+ */
1810
+ winnerVariantId?: string | null;
1811
+ }
1812
+
1813
+ export namespace ExperimentDuplicateResponse {
1814
+ export interface Variant {
1815
+ /**
1816
+ * Unique identifier for this experiment variant.
1817
+ */
1818
+ id: string;
1819
+
1820
+ /**
1821
+ * Parent experiment ID this variant belongs to.
1822
+ */
1823
+ experimentId: string;
1824
+
1825
+ /**
1826
+ * Whether this is the baseline control variant.
1827
+ */
1828
+ isControl: boolean;
1829
+
1830
+ /**
1831
+ * Human-readable variant name shown in the dashboard and results.
1832
+ */
1833
+ name: string;
1834
+
1835
+ /**
1836
+ * Relative traffic weight used when assigning visitors among variants in an active
1837
+ * experiment.
1838
+ */
1839
+ weight: number;
1840
+
1841
+ /**
1842
+ * Ordered list of declarative DOM mutations applied when this variant is assigned.
1843
+ */
1844
+ domModifications?: Array<Variant.DomModification> | null;
1845
+
1846
+ /**
1847
+ * Target URL for redirect variants. Use either a site-relative path such as
1848
+ * `/pricing-v2` or an absolute `https://` URL. Cross-origin `http://` URLs are
1849
+ * rejected. Omit for DOM modification variants.
1850
+ */
1851
+ redirectUrl?: string | null;
1852
+
1853
+ /**
1854
+ * How this variant changes the user experience. `dom_modifications` for on-page
1855
+ * changes or `redirect` for redirect tests.
1856
+ */
1857
+ variantType?: string | null;
1858
+ }
1859
+
1860
+ export namespace Variant {
1861
+ export interface DomModification {
1862
+ /**
1863
+ * Mutation to apply when the selector matches. Use `redirectUrl` instead of DOM
1864
+ * modifications for redirect variants.
1865
+ */
1866
+ action:
1867
+ | 'customCss'
1868
+ | 'customJs'
1869
+ | 'insertAfter'
1870
+ | 'insertBefore'
1871
+ | 'remove'
1872
+ | 'setAttribute'
1873
+ | 'setHtml'
1874
+ | 'setImage'
1875
+ | 'setStyle'
1876
+ | 'setText';
1877
+
1878
+ /**
1879
+ * CSS selector used to find the element to modify on the page at runtime.
1880
+ */
1881
+ selector: string;
1882
+
1883
+ /**
1884
+ * Canonical action payload. For `setText` / `setHtml` / `customCss` / `customJs` /
1885
+ * `setImage` / `insertBefore` / `insertAfter` this is the literal
1886
+ * text/HTML/CSS/JS/URL. For `setStyle` and `setAttribute` it is a JSON-stringified
1887
+ * `{key: value}` object — prefer the structured `styles` / `attribute` fields
1888
+ * below to avoid manual JSON encoding.
1889
+ */
1890
+ value: string;
1891
+
1892
+ /**
1893
+ * Populated on read for `setAttribute` modifications, parsed from `value`.
1894
+ * Customers may also send this field instead of a JSON-stringified `value` on
1895
+ * write — see `domModificationInputSchema`.
1896
+ */
1897
+ attribute?: unknown | null;
1898
+
1899
+ /**
1900
+ * Populated on read for `setStyle` modifications, parsed from `value`. Customers
1901
+ * may also send this field instead of a JSON-stringified `value` on write — see
1902
+ * `domModificationInputSchema`.
1903
+ */
1904
+ styles?: Array<DomModification.Style> | null;
1905
+ }
1906
+
1907
+ export namespace DomModification {
1908
+ export interface Style {
1909
+ /**
1910
+ * CSS property name in camelCase or kebab-case.
1911
+ */
1912
+ property: string;
1913
+
1914
+ /**
1915
+ * CSS value to assign to the property.
1916
+ */
1917
+ value: string;
1918
+ }
1919
+ }
1920
+ }
1921
+
1922
+ /**
1923
+ * Configured success metrics. The read shape mirrors the write shape — `metrics`
1924
+ * from a GET response can be PATCHed back without modification.
1925
+ */
1926
+ export interface Metrics {
1927
+ /**
1928
+ * Primary success metric used in the results report.
1929
+ */
1930
+ primary?: unknown | null;
1931
+
1932
+ /**
1933
+ * Optional secondary metrics tracked alongside the primary goal.
1934
+ */
1935
+ secondary?: Array<Metrics.Secondary> | null;
1936
+ }
1937
+
1938
+ export namespace Metrics {
1939
+ export interface Secondary {
1940
+ /**
1941
+ * Name of the event used to measure success for this metric.
1942
+ */
1943
+ eventName?: string | null;
1944
+
1945
+ /**
1946
+ * Optional funnel identifier when the metric is derived from an existing funnel
1947
+ * definition.
1948
+ */
1949
+ funnelId?: string | null;
1950
+ }
1951
+ }
1952
+
1953
+ /**
1954
+ * Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
1955
+ * and runtime visitor-context or accumulated-property rules. Same shape as the
1956
+ * create/patch input.
1957
+ */
1958
+ export interface TargetingRules {
1959
+ /**
1960
+ * Glob-style URL patterns that must match for the experiment to be eligible. Each
1961
+ * pattern is either a path (`/pricing`, matched on any domain) or a host-qualified
1962
+ * pattern (`get.example.com/pricing` or `https://get.example.com/pricing`, matched
1963
+ * against the full URL so a single domain or subdomain can be targeted). Use `*`
1964
+ * to match within a path segment and `**` to match across segments. Up to 200
1965
+ * patterns; each pattern up to 2000 characters. An empty array (or omitting the
1966
+ * field) matches all URLs — equivalent to `['**']`. The host(s) targeted here must
1967
+ * also appear in the parent experiment settings' `whitelistDomains` — that
1968
+ * allowlist is what limits which domains can load your experiments (see
1969
+ * `GET /experiment-settings`). If the host is missing, the SDK refuses to load
1970
+ * there and the experiment never runs, even after `POST /experiments/{id}/start`
1971
+ * succeeds.
1972
+ */
1973
+ urlPatterns: Array<string>;
1974
+
1975
+ /**
1976
+ * Reserved audience identifier. It is stored with the experiment but is not
1977
+ * evaluated by the browser or server-side experiment runtime. Use
1978
+ * `visitorProperties`, URL patterns, query parameters, or visitor status for
1979
+ * runtime eligibility.
1980
+ */
1981
+ audienceId?: string | null;
1982
+
1983
+ /**
1984
+ * Additional query-string conditions that must all match for the visitor to
1985
+ * qualify.
1986
+ */
1987
+ queryParams?: Array<TargetingRules.QueryParam> | null;
1988
+
1989
+ /**
1990
+ * Optional runtime targeting rules. Recognized namespaced keys read visitor
1991
+ * context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
1992
+ * `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
1993
+ * accumulated personalization property.
1994
+ */
1995
+ visitorProperties?: unknown | null;
1996
+
1997
+ /**
1998
+ * Whether the experiment should target new visitors, returning visitors, or any
1999
+ * visitor.
2000
+ */
2001
+ visitorStatus?: string | null;
2002
+ }
2003
+
2004
+ export namespace TargetingRules {
2005
+ export interface QueryParam {
2006
+ /**
2007
+ * Query string key to inspect on the current page URL.
2008
+ */
2009
+ key: string;
2010
+
2011
+ /**
2012
+ * Comparison operator applied to the query string value.
2013
+ */
2014
+ operator: 'contains' | 'equals' | 'exists' | 'not_equals' | 'not_exists' | 'regex';
2015
+
2016
+ /**
2017
+ * Comparison value used by operators that require one. Omit for `exists` and
2018
+ * `not_exists`.
2019
+ */
2020
+ value?: string | null;
2021
+ }
2022
+ }
2023
+ }
2024
+
1556
2025
  export interface ExperimentStartResponse {
1557
2026
  /**
1558
2027
  * Number of unpublished version changes detected at the time of the lifecycle
@@ -1606,6 +2075,22 @@ export namespace ExperimentStartResponse {
1606
2075
  */
1607
2076
  trafficAllocation: number;
1608
2077
 
2078
+ /**
2079
+ * Normalized statistical analysis plan. Missing legacy rows resolve to Bayesian
2080
+ * analysis in GraphQL.
2081
+ */
2082
+ analysisConfig?: unknown | null;
2083
+
2084
+ /**
2085
+ * Primary metric definition frozen with the analysis plan at start time.
2086
+ */
2087
+ analysisMetricSnapshot?: unknown | null;
2088
+
2089
+ /**
2090
+ * ISO-8601 timestamp when the analysis plan was locked at experiment start.
2091
+ */
2092
+ analysisStartedAt?: string | null;
2093
+
1609
2094
  /**
1610
2095
  * Optional human-readable hypothesis or summary. In GraphQL this is backed by the
1611
2096
  * experiment hypothesis field.
@@ -1644,8 +2129,8 @@ export namespace ExperimentStartResponse {
1644
2129
  stoppedAt?: string | null;
1645
2130
 
1646
2131
  /**
1647
- * Eligibility rules: URL-pattern globs, optional audience, query-param conditions,
1648
- * visitor status, and (server-side) visitor properties. Same shape as the
2132
+ * Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
2133
+ * and runtime visitor-context or accumulated-property rules. Same shape as the
1649
2134
  * create/patch input.
1650
2135
  */
1651
2136
  targetingRules?: Experiment.TargetingRules | null;
@@ -1702,8 +2187,8 @@ export namespace ExperimentStartResponse {
1702
2187
  }
1703
2188
 
1704
2189
  /**
1705
- * Eligibility rules: URL-pattern globs, optional audience, query-param conditions,
1706
- * visitor status, and (server-side) visitor properties. Same shape as the
2190
+ * Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
2191
+ * and runtime visitor-context or accumulated-property rules. Same shape as the
1707
2192
  * create/patch input.
1708
2193
  */
1709
2194
  export interface TargetingRules {
@@ -1724,7 +2209,10 @@ export namespace ExperimentStartResponse {
1724
2209
  urlPatterns: Array<string>;
1725
2210
 
1726
2211
  /**
1727
- * Optional audience identifier used for server-side eligibility filtering.
2212
+ * Reserved audience identifier. It is stored with the experiment but is not
2213
+ * evaluated by the browser or server-side experiment runtime. Use
2214
+ * `visitorProperties`, URL patterns, query parameters, or visitor status for
2215
+ * runtime eligibility.
1728
2216
  */
1729
2217
  audienceId?: string | null;
1730
2218
 
@@ -1735,8 +2223,10 @@ export namespace ExperimentStartResponse {
1735
2223
  queryParams?: Array<TargetingRules.QueryParam> | null;
1736
2224
 
1737
2225
  /**
1738
- * Optional visitor-property matching rules. These are passed through as JSON for
1739
- * experimentation targeting.
2226
+ * Optional runtime targeting rules. Recognized namespaced keys read visitor
2227
+ * context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
2228
+ * `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
2229
+ * accumulated personalization property.
1740
2230
  */
1741
2231
  visitorProperties?: unknown | null;
1742
2232
 
@@ -1822,6 +2312,22 @@ export namespace ExperimentStopResponse {
1822
2312
  */
1823
2313
  trafficAllocation: number;
1824
2314
 
2315
+ /**
2316
+ * Normalized statistical analysis plan. Missing legacy rows resolve to Bayesian
2317
+ * analysis in GraphQL.
2318
+ */
2319
+ analysisConfig?: unknown | null;
2320
+
2321
+ /**
2322
+ * Primary metric definition frozen with the analysis plan at start time.
2323
+ */
2324
+ analysisMetricSnapshot?: unknown | null;
2325
+
2326
+ /**
2327
+ * ISO-8601 timestamp when the analysis plan was locked at experiment start.
2328
+ */
2329
+ analysisStartedAt?: string | null;
2330
+
1825
2331
  /**
1826
2332
  * Optional human-readable hypothesis or summary. In GraphQL this is backed by the
1827
2333
  * experiment hypothesis field.
@@ -1860,8 +2366,8 @@ export namespace ExperimentStopResponse {
1860
2366
  stoppedAt?: string | null;
1861
2367
 
1862
2368
  /**
1863
- * Eligibility rules: URL-pattern globs, optional audience, query-param conditions,
1864
- * visitor status, and (server-side) visitor properties. Same shape as the
2369
+ * Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
2370
+ * and runtime visitor-context or accumulated-property rules. Same shape as the
1865
2371
  * create/patch input.
1866
2372
  */
1867
2373
  targetingRules?: Experiment.TargetingRules | null;
@@ -1918,8 +2424,8 @@ export namespace ExperimentStopResponse {
1918
2424
  }
1919
2425
 
1920
2426
  /**
1921
- * Eligibility rules: URL-pattern globs, optional audience, query-param conditions,
1922
- * visitor status, and (server-side) visitor properties. Same shape as the
2427
+ * Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
2428
+ * and runtime visitor-context or accumulated-property rules. Same shape as the
1923
2429
  * create/patch input.
1924
2430
  */
1925
2431
  export interface TargetingRules {
@@ -1940,7 +2446,10 @@ export namespace ExperimentStopResponse {
1940
2446
  urlPatterns: Array<string>;
1941
2447
 
1942
2448
  /**
1943
- * Optional audience identifier used for server-side eligibility filtering.
2449
+ * Reserved audience identifier. It is stored with the experiment but is not
2450
+ * evaluated by the browser or server-side experiment runtime. Use
2451
+ * `visitorProperties`, URL patterns, query parameters, or visitor status for
2452
+ * runtime eligibility.
1944
2453
  */
1945
2454
  audienceId?: string | null;
1946
2455
 
@@ -1951,8 +2460,10 @@ export namespace ExperimentStopResponse {
1951
2460
  queryParams?: Array<TargetingRules.QueryParam> | null;
1952
2461
 
1953
2462
  /**
1954
- * Optional visitor-property matching rules. These are passed through as JSON for
1955
- * experimentation targeting.
2463
+ * Optional runtime targeting rules. Recognized namespaced keys read visitor
2464
+ * context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
2465
+ * `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
2466
+ * accumulated personalization property.
1956
2467
  */
1957
2468
  visitorProperties?: unknown | null;
1958
2469
 
@@ -2038,6 +2549,22 @@ export namespace ExperimentRolloutResponse {
2038
2549
  */
2039
2550
  trafficAllocation: number;
2040
2551
 
2552
+ /**
2553
+ * Normalized statistical analysis plan. Missing legacy rows resolve to Bayesian
2554
+ * analysis in GraphQL.
2555
+ */
2556
+ analysisConfig?: unknown | null;
2557
+
2558
+ /**
2559
+ * Primary metric definition frozen with the analysis plan at start time.
2560
+ */
2561
+ analysisMetricSnapshot?: unknown | null;
2562
+
2563
+ /**
2564
+ * ISO-8601 timestamp when the analysis plan was locked at experiment start.
2565
+ */
2566
+ analysisStartedAt?: string | null;
2567
+
2041
2568
  /**
2042
2569
  * Optional human-readable hypothesis or summary. In GraphQL this is backed by the
2043
2570
  * experiment hypothesis field.
@@ -2076,8 +2603,8 @@ export namespace ExperimentRolloutResponse {
2076
2603
  stoppedAt?: string | null;
2077
2604
 
2078
2605
  /**
2079
- * Eligibility rules: URL-pattern globs, optional audience, query-param conditions,
2080
- * visitor status, and (server-side) visitor properties. Same shape as the
2606
+ * Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
2607
+ * and runtime visitor-context or accumulated-property rules. Same shape as the
2081
2608
  * create/patch input.
2082
2609
  */
2083
2610
  targetingRules?: Experiment.TargetingRules | null;
@@ -2134,8 +2661,8 @@ export namespace ExperimentRolloutResponse {
2134
2661
  }
2135
2662
 
2136
2663
  /**
2137
- * Eligibility rules: URL-pattern globs, optional audience, query-param conditions,
2138
- * visitor status, and (server-side) visitor properties. Same shape as the
2664
+ * Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
2665
+ * and runtime visitor-context or accumulated-property rules. Same shape as the
2139
2666
  * create/patch input.
2140
2667
  */
2141
2668
  export interface TargetingRules {
@@ -2156,7 +2683,10 @@ export namespace ExperimentRolloutResponse {
2156
2683
  urlPatterns: Array<string>;
2157
2684
 
2158
2685
  /**
2159
- * Optional audience identifier used for server-side eligibility filtering.
2686
+ * Reserved audience identifier. It is stored with the experiment but is not
2687
+ * evaluated by the browser or server-side experiment runtime. Use
2688
+ * `visitorProperties`, URL patterns, query parameters, or visitor status for
2689
+ * runtime eligibility.
2160
2690
  */
2161
2691
  audienceId?: string | null;
2162
2692
 
@@ -2167,8 +2697,10 @@ export namespace ExperimentRolloutResponse {
2167
2697
  queryParams?: Array<TargetingRules.QueryParam> | null;
2168
2698
 
2169
2699
  /**
2170
- * Optional visitor-property matching rules. These are passed through as JSON for
2171
- * experimentation targeting.
2700
+ * Optional runtime targeting rules. Recognized namespaced keys read visitor
2701
+ * context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
2702
+ * `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
2703
+ * accumulated personalization property.
2172
2704
  */
2173
2705
  visitorProperties?: unknown | null;
2174
2706
 
@@ -2254,6 +2786,22 @@ export namespace ExperimentEndRolloutResponse {
2254
2786
  */
2255
2787
  trafficAllocation: number;
2256
2788
 
2789
+ /**
2790
+ * Normalized statistical analysis plan. Missing legacy rows resolve to Bayesian
2791
+ * analysis in GraphQL.
2792
+ */
2793
+ analysisConfig?: unknown | null;
2794
+
2795
+ /**
2796
+ * Primary metric definition frozen with the analysis plan at start time.
2797
+ */
2798
+ analysisMetricSnapshot?: unknown | null;
2799
+
2800
+ /**
2801
+ * ISO-8601 timestamp when the analysis plan was locked at experiment start.
2802
+ */
2803
+ analysisStartedAt?: string | null;
2804
+
2257
2805
  /**
2258
2806
  * Optional human-readable hypothesis or summary. In GraphQL this is backed by the
2259
2807
  * experiment hypothesis field.
@@ -2292,8 +2840,8 @@ export namespace ExperimentEndRolloutResponse {
2292
2840
  stoppedAt?: string | null;
2293
2841
 
2294
2842
  /**
2295
- * Eligibility rules: URL-pattern globs, optional audience, query-param conditions,
2296
- * visitor status, and (server-side) visitor properties. Same shape as the
2843
+ * Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
2844
+ * and runtime visitor-context or accumulated-property rules. Same shape as the
2297
2845
  * create/patch input.
2298
2846
  */
2299
2847
  targetingRules?: Experiment.TargetingRules | null;
@@ -2350,8 +2898,8 @@ export namespace ExperimentEndRolloutResponse {
2350
2898
  }
2351
2899
 
2352
2900
  /**
2353
- * Eligibility rules: URL-pattern globs, optional audience, query-param conditions,
2354
- * visitor status, and (server-side) visitor properties. Same shape as the
2901
+ * Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
2902
+ * and runtime visitor-context or accumulated-property rules. Same shape as the
2355
2903
  * create/patch input.
2356
2904
  */
2357
2905
  export interface TargetingRules {
@@ -2372,7 +2920,10 @@ export namespace ExperimentEndRolloutResponse {
2372
2920
  urlPatterns: Array<string>;
2373
2921
 
2374
2922
  /**
2375
- * Optional audience identifier used for server-side eligibility filtering.
2923
+ * Reserved audience identifier. It is stored with the experiment but is not
2924
+ * evaluated by the browser or server-side experiment runtime. Use
2925
+ * `visitorProperties`, URL patterns, query parameters, or visitor status for
2926
+ * runtime eligibility.
2376
2927
  */
2377
2928
  audienceId?: string | null;
2378
2929
 
@@ -2383,8 +2934,10 @@ export namespace ExperimentEndRolloutResponse {
2383
2934
  queryParams?: Array<TargetingRules.QueryParam> | null;
2384
2935
 
2385
2936
  /**
2386
- * Optional visitor-property matching rules. These are passed through as JSON for
2387
- * experimentation targeting.
2937
+ * Optional runtime targeting rules. Recognized namespaced keys read visitor
2938
+ * context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
2939
+ * `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
2940
+ * accumulated personalization property.
2388
2941
  */
2389
2942
  visitorProperties?: unknown | null;
2390
2943
 
@@ -2452,6 +3005,22 @@ export interface ExperimentWinnerResponse {
2452
3005
  */
2453
3006
  trafficAllocation: number;
2454
3007
 
3008
+ /**
3009
+ * Normalized statistical analysis plan. Missing legacy rows resolve to Bayesian
3010
+ * analysis in GraphQL.
3011
+ */
3012
+ analysisConfig?: unknown | null;
3013
+
3014
+ /**
3015
+ * Primary metric definition frozen with the analysis plan at start time.
3016
+ */
3017
+ analysisMetricSnapshot?: unknown | null;
3018
+
3019
+ /**
3020
+ * ISO-8601 timestamp when the analysis plan was locked at experiment start.
3021
+ */
3022
+ analysisStartedAt?: string | null;
3023
+
2455
3024
  /**
2456
3025
  * Optional human-readable hypothesis or summary. In GraphQL this is backed by the
2457
3026
  * experiment hypothesis field.
@@ -2490,8 +3059,8 @@ export interface ExperimentWinnerResponse {
2490
3059
  stoppedAt?: string | null;
2491
3060
 
2492
3061
  /**
2493
- * Eligibility rules: URL-pattern globs, optional audience, query-param conditions,
2494
- * visitor status, and (server-side) visitor properties. Same shape as the
3062
+ * Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
3063
+ * and runtime visitor-context or accumulated-property rules. Same shape as the
2495
3064
  * create/patch input.
2496
3065
  */
2497
3066
  targetingRules?: ExperimentWinnerResponse.TargetingRules | null;
@@ -2548,8 +3117,8 @@ export namespace ExperimentWinnerResponse {
2548
3117
  }
2549
3118
 
2550
3119
  /**
2551
- * Eligibility rules: URL-pattern globs, optional audience, query-param conditions,
2552
- * visitor status, and (server-side) visitor properties. Same shape as the
3120
+ * Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
3121
+ * and runtime visitor-context or accumulated-property rules. Same shape as the
2553
3122
  * create/patch input.
2554
3123
  */
2555
3124
  export interface TargetingRules {
@@ -2570,7 +3139,10 @@ export namespace ExperimentWinnerResponse {
2570
3139
  urlPatterns: Array<string>;
2571
3140
 
2572
3141
  /**
2573
- * Optional audience identifier used for server-side eligibility filtering.
3142
+ * Reserved audience identifier. It is stored with the experiment but is not
3143
+ * evaluated by the browser or server-side experiment runtime. Use
3144
+ * `visitorProperties`, URL patterns, query parameters, or visitor status for
3145
+ * runtime eligibility.
2574
3146
  */
2575
3147
  audienceId?: string | null;
2576
3148
 
@@ -2581,8 +3153,10 @@ export namespace ExperimentWinnerResponse {
2581
3153
  queryParams?: Array<TargetingRules.QueryParam> | null;
2582
3154
 
2583
3155
  /**
2584
- * Optional visitor-property matching rules. These are passed through as JSON for
2585
- * experimentation targeting.
3156
+ * Optional runtime targeting rules. Recognized namespaced keys read visitor
3157
+ * context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
3158
+ * `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
3159
+ * accumulated personalization property.
2586
3160
  */
2587
3161
  visitorProperties?: unknown | null;
2588
3162
 
@@ -2667,6 +3241,22 @@ export namespace ExperimentPauseResponse {
2667
3241
  */
2668
3242
  trafficAllocation: number;
2669
3243
 
3244
+ /**
3245
+ * Normalized statistical analysis plan. Missing legacy rows resolve to Bayesian
3246
+ * analysis in GraphQL.
3247
+ */
3248
+ analysisConfig?: unknown | null;
3249
+
3250
+ /**
3251
+ * Primary metric definition frozen with the analysis plan at start time.
3252
+ */
3253
+ analysisMetricSnapshot?: unknown | null;
3254
+
3255
+ /**
3256
+ * ISO-8601 timestamp when the analysis plan was locked at experiment start.
3257
+ */
3258
+ analysisStartedAt?: string | null;
3259
+
2670
3260
  /**
2671
3261
  * Optional human-readable hypothesis or summary. In GraphQL this is backed by the
2672
3262
  * experiment hypothesis field.
@@ -2705,8 +3295,8 @@ export namespace ExperimentPauseResponse {
2705
3295
  stoppedAt?: string | null;
2706
3296
 
2707
3297
  /**
2708
- * Eligibility rules: URL-pattern globs, optional audience, query-param conditions,
2709
- * visitor status, and (server-side) visitor properties. Same shape as the
3298
+ * Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
3299
+ * and runtime visitor-context or accumulated-property rules. Same shape as the
2710
3300
  * create/patch input.
2711
3301
  */
2712
3302
  targetingRules?: Experiment.TargetingRules | null;
@@ -2763,8 +3353,8 @@ export namespace ExperimentPauseResponse {
2763
3353
  }
2764
3354
 
2765
3355
  /**
2766
- * Eligibility rules: URL-pattern globs, optional audience, query-param conditions,
2767
- * visitor status, and (server-side) visitor properties. Same shape as the
3356
+ * Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
3357
+ * and runtime visitor-context or accumulated-property rules. Same shape as the
2768
3358
  * create/patch input.
2769
3359
  */
2770
3360
  export interface TargetingRules {
@@ -2785,7 +3375,10 @@ export namespace ExperimentPauseResponse {
2785
3375
  urlPatterns: Array<string>;
2786
3376
 
2787
3377
  /**
2788
- * Optional audience identifier used for server-side eligibility filtering.
3378
+ * Reserved audience identifier. It is stored with the experiment but is not
3379
+ * evaluated by the browser or server-side experiment runtime. Use
3380
+ * `visitorProperties`, URL patterns, query parameters, or visitor status for
3381
+ * runtime eligibility.
2789
3382
  */
2790
3383
  audienceId?: string | null;
2791
3384
 
@@ -2796,8 +3389,10 @@ export namespace ExperimentPauseResponse {
2796
3389
  queryParams?: Array<TargetingRules.QueryParam> | null;
2797
3390
 
2798
3391
  /**
2799
- * Optional visitor-property matching rules. These are passed through as JSON for
2800
- * experimentation targeting.
3392
+ * Optional runtime targeting rules. Recognized namespaced keys read visitor
3393
+ * context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
3394
+ * `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
3395
+ * accumulated personalization property.
2801
3396
  */
2802
3397
  visitorProperties?: unknown | null;
2803
3398
 
@@ -2883,6 +3478,22 @@ export namespace ExperimentResumeResponse {
2883
3478
  */
2884
3479
  trafficAllocation: number;
2885
3480
 
3481
+ /**
3482
+ * Normalized statistical analysis plan. Missing legacy rows resolve to Bayesian
3483
+ * analysis in GraphQL.
3484
+ */
3485
+ analysisConfig?: unknown | null;
3486
+
3487
+ /**
3488
+ * Primary metric definition frozen with the analysis plan at start time.
3489
+ */
3490
+ analysisMetricSnapshot?: unknown | null;
3491
+
3492
+ /**
3493
+ * ISO-8601 timestamp when the analysis plan was locked at experiment start.
3494
+ */
3495
+ analysisStartedAt?: string | null;
3496
+
2886
3497
  /**
2887
3498
  * Optional human-readable hypothesis or summary. In GraphQL this is backed by the
2888
3499
  * experiment hypothesis field.
@@ -2921,8 +3532,8 @@ export namespace ExperimentResumeResponse {
2921
3532
  stoppedAt?: string | null;
2922
3533
 
2923
3534
  /**
2924
- * Eligibility rules: URL-pattern globs, optional audience, query-param conditions,
2925
- * visitor status, and (server-side) visitor properties. Same shape as the
3535
+ * Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
3536
+ * and runtime visitor-context or accumulated-property rules. Same shape as the
2926
3537
  * create/patch input.
2927
3538
  */
2928
3539
  targetingRules?: Experiment.TargetingRules | null;
@@ -2979,8 +3590,8 @@ export namespace ExperimentResumeResponse {
2979
3590
  }
2980
3591
 
2981
3592
  /**
2982
- * Eligibility rules: URL-pattern globs, optional audience, query-param conditions,
2983
- * visitor status, and (server-side) visitor properties. Same shape as the
3593
+ * Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
3594
+ * and runtime visitor-context or accumulated-property rules. Same shape as the
2984
3595
  * create/patch input.
2985
3596
  */
2986
3597
  export interface TargetingRules {
@@ -3001,7 +3612,10 @@ export namespace ExperimentResumeResponse {
3001
3612
  urlPatterns: Array<string>;
3002
3613
 
3003
3614
  /**
3004
- * Optional audience identifier used for server-side eligibility filtering.
3615
+ * Reserved audience identifier. It is stored with the experiment but is not
3616
+ * evaluated by the browser or server-side experiment runtime. Use
3617
+ * `visitorProperties`, URL patterns, query parameters, or visitor status for
3618
+ * runtime eligibility.
3005
3619
  */
3006
3620
  audienceId?: string | null;
3007
3621
 
@@ -3012,8 +3626,10 @@ export namespace ExperimentResumeResponse {
3012
3626
  queryParams?: Array<TargetingRules.QueryParam> | null;
3013
3627
 
3014
3628
  /**
3015
- * Optional visitor-property matching rules. These are passed through as JSON for
3016
- * experimentation targeting.
3629
+ * Optional runtime targeting rules. Recognized namespaced keys read visitor
3630
+ * context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
3631
+ * `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
3632
+ * accumulated personalization property.
3017
3633
  */
3018
3634
  visitorProperties?: unknown | null;
3019
3635
 
@@ -3097,6 +3713,69 @@ export namespace ExperimentResultsResponse {
3097
3713
  }
3098
3714
  }
3099
3715
 
3716
+ export interface ExperimentAnalysisResponse {
3717
+ analysisCutoffAt: string;
3718
+
3719
+ analysisState:
3720
+ | 'ANALYSIS_UNAVAILABLE'
3721
+ | 'COLLECTING_DATA'
3722
+ | 'FINALIZING_OUTCOMES'
3723
+ | 'INCONCLUSIVE_STOPPED_EARLY'
3724
+ | 'READY';
3725
+
3726
+ dataQuality: ExperimentAnalysisResponse.DataQuality;
3727
+
3728
+ exploratory: boolean;
3729
+
3730
+ exposureCutoffAt: string;
3731
+
3732
+ method: 'BAYESIAN' | 'FREQUENTIST' | 'SEQUENTIAL';
3733
+
3734
+ metricType: 'conversion' | 'value';
3735
+
3736
+ variants: Array<ExperimentAnalysisResponse.Variant>;
3737
+
3738
+ bayesian?: unknown | null;
3739
+
3740
+ evidenceState?: 'EVIDENCE_OF_HARM' | 'EVIDENCE_OF_IMPROVEMENT' | 'NO_CONCLUSION' | null;
3741
+
3742
+ frequentist?: unknown | null;
3743
+
3744
+ sequential?: unknown | null;
3745
+ }
3746
+
3747
+ export namespace ExperimentAnalysisResponse {
3748
+ export interface DataQuality {
3749
+ crossoverVisitors: number;
3750
+
3751
+ missingVisitorIdImpressions: number;
3752
+
3753
+ sampleRatioMismatch: 'FAIL' | 'NOT_EVALUATED' | 'PASS';
3754
+
3755
+ sampleRatioMismatchPValue?: number | null;
3756
+ }
3757
+
3758
+ export interface Variant {
3759
+ id: string;
3760
+
3761
+ conversionRate: number;
3762
+
3763
+ conversions: number;
3764
+
3765
+ impressions: number;
3766
+
3767
+ isControl: boolean;
3768
+
3769
+ name: string;
3770
+
3771
+ observedVisitors: number;
3772
+
3773
+ visitors: number;
3774
+
3775
+ meanValue?: number | null;
3776
+ }
3777
+ }
3778
+
3100
3779
  export interface ExperimentResultsTimeSeriesResponse {
3101
3780
  /**
3102
3781
  * Per-day metrics for each variant. Days with no impression rows are omitted from
@@ -3222,6 +3901,12 @@ export interface ExperimentCreateParams {
3222
3901
  */
3223
3902
  name: string;
3224
3903
 
3904
+ /**
3905
+ * Optional draft analysis method. Server-owned statistical constants are
3906
+ * normalized before storage.
3907
+ */
3908
+ analysisConfig?: unknown | null;
3909
+
3225
3910
  /**
3226
3911
  * Weight of the auto-created control variant, as a percentage (1–100). Defaults to
3227
3912
  * 100 (a new experiment is all control until treatments are added). The control
@@ -3250,14 +3935,14 @@ export interface ExperimentCreateParams {
3250
3935
 
3251
3936
  /**
3252
3937
  * Goal events. If you send `metrics.primary`, `metrics.primary.eventName` must be
3253
- * a non-blank string. A primary event name is required before the experiment can
3254
- * be started.
3938
+ * a non-blank string. A primary event is required to start `ab` and `multivariate`
3939
+ * experiments, but not always-on `personalization`.
3255
3940
  */
3256
3941
  metrics?: ExperimentCreateParams.Metrics | null;
3257
3942
 
3258
3943
  /**
3259
- * Eligibility rules — URL patterns, audience, visitor status, query-param
3260
- * conditions. Omit to inherit defaults.
3944
+ * Eligibility rules — URL patterns, query-param conditions, visitor status, and
3945
+ * visitor-context or accumulated-property rules. Omit to inherit defaults.
3261
3946
  */
3262
3947
  targetingRules?: ExperimentCreateParams.TargetingRules | null;
3263
3948
 
@@ -3277,8 +3962,8 @@ export interface ExperimentCreateParams {
3277
3962
  export namespace ExperimentCreateParams {
3278
3963
  /**
3279
3964
  * Goal events. If you send `metrics.primary`, `metrics.primary.eventName` must be
3280
- * a non-blank string. A primary event name is required before the experiment can
3281
- * be started.
3965
+ * a non-blank string. A primary event is required to start `ab` and `multivariate`
3966
+ * experiments, but not always-on `personalization`.
3282
3967
  */
3283
3968
  export interface Metrics {
3284
3969
  /**
@@ -3324,8 +4009,8 @@ export namespace ExperimentCreateParams {
3324
4009
  }
3325
4010
 
3326
4011
  /**
3327
- * Eligibility rules — URL patterns, audience, visitor status, query-param
3328
- * conditions. Omit to inherit defaults.
4012
+ * Eligibility rules — URL patterns, query-param conditions, visitor status, and
4013
+ * visitor-context or accumulated-property rules. Omit to inherit defaults.
3329
4014
  */
3330
4015
  export interface TargetingRules {
3331
4016
  /**
@@ -3345,7 +4030,10 @@ export namespace ExperimentCreateParams {
3345
4030
  urlPatterns: Array<string>;
3346
4031
 
3347
4032
  /**
3348
- * Optional audience identifier used for server-side eligibility filtering.
4033
+ * Reserved audience identifier. It is stored with the experiment but is not
4034
+ * evaluated by the browser or server-side experiment runtime. Use
4035
+ * `visitorProperties`, URL patterns, query parameters, or visitor status for
4036
+ * runtime eligibility.
3349
4037
  */
3350
4038
  audienceId?: string | null;
3351
4039
 
@@ -3356,8 +4044,10 @@ export namespace ExperimentCreateParams {
3356
4044
  queryParams?: Array<TargetingRules.QueryParam> | null;
3357
4045
 
3358
4046
  /**
3359
- * Optional visitor-property matching rules. These are passed through as JSON for
3360
- * experimentation targeting.
4047
+ * Optional runtime targeting rules. Recognized namespaced keys read visitor
4048
+ * context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
4049
+ * `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
4050
+ * accumulated personalization property.
3361
4051
  */
3362
4052
  visitorProperties?: unknown | null;
3363
4053
 
@@ -3390,6 +4080,11 @@ export namespace ExperimentCreateParams {
3390
4080
  }
3391
4081
 
3392
4082
  export interface ExperimentUpdateParams {
4083
+ /**
4084
+ * Updated draft analysis method. This field is locked once an experiment starts.
4085
+ */
4086
+ analysisConfig?: unknown | null;
4087
+
3393
4088
  /**
3394
4089
  * Updated experiment hypothesis or operator note.
3395
4090
  */
@@ -3502,7 +4197,10 @@ export namespace ExperimentUpdateParams {
3502
4197
  urlPatterns: Array<string>;
3503
4198
 
3504
4199
  /**
3505
- * Optional audience identifier used for server-side eligibility filtering.
4200
+ * Reserved audience identifier. It is stored with the experiment but is not
4201
+ * evaluated by the browser or server-side experiment runtime. Use
4202
+ * `visitorProperties`, URL patterns, query parameters, or visitor status for
4203
+ * runtime eligibility.
3506
4204
  */
3507
4205
  audienceId?: string | null;
3508
4206
 
@@ -3513,8 +4211,10 @@ export namespace ExperimentUpdateParams {
3513
4211
  queryParams?: Array<TargetingRules.QueryParam> | null;
3514
4212
 
3515
4213
  /**
3516
- * Optional visitor-property matching rules. These are passed through as JSON for
3517
- * experimentation targeting.
4214
+ * Optional runtime targeting rules. Recognized namespaced keys read visitor
4215
+ * context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
4216
+ * `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
4217
+ * accumulated personalization property.
3518
4218
  */
3519
4219
  visitorProperties?: unknown | null;
3520
4220
 
@@ -3622,6 +4322,14 @@ export interface ExperimentResultsParams {
3622
4322
  eventName?: string;
3623
4323
  }
3624
4324
 
4325
+ export interface ExperimentAnalysisParams {
4326
+ /**
4327
+ * Optional override for the conversion event name. When omitted, the experiment
4328
+ * primary metric event is used.
4329
+ */
4330
+ eventName?: string;
4331
+ }
4332
+
3625
4333
  export interface ExperimentResultsTimeSeriesParams {
3626
4334
  /**
3627
4335
  * Inclusive upper bound of the response window, as a UTC calendar day in
@@ -3672,6 +4380,7 @@ export declare namespace Experiments {
3672
4380
  type ExperimentRetrieveResponse as ExperimentRetrieveResponse,
3673
4381
  type ExperimentUpdateResponse as ExperimentUpdateResponse,
3674
4382
  type ExperimentDeleteResponse as ExperimentDeleteResponse,
4383
+ type ExperimentDuplicateResponse as ExperimentDuplicateResponse,
3675
4384
  type ExperimentStartResponse as ExperimentStartResponse,
3676
4385
  type ExperimentStopResponse as ExperimentStopResponse,
3677
4386
  type ExperimentRolloutResponse as ExperimentRolloutResponse,
@@ -3680,6 +4389,7 @@ export declare namespace Experiments {
3680
4389
  type ExperimentPauseResponse as ExperimentPauseResponse,
3681
4390
  type ExperimentResumeResponse as ExperimentResumeResponse,
3682
4391
  type ExperimentResultsResponse as ExperimentResultsResponse,
4392
+ type ExperimentAnalysisResponse as ExperimentAnalysisResponse,
3683
4393
  type ExperimentResultsTimeSeriesResponse as ExperimentResultsTimeSeriesResponse,
3684
4394
  type ExperimentSessionReplaysResponse as ExperimentSessionReplaysResponse,
3685
4395
  type ExperimentListResponsesCursor as ExperimentListResponsesCursor,
@@ -3693,6 +4403,7 @@ export declare namespace Experiments {
3693
4403
  type ExperimentPauseParams as ExperimentPauseParams,
3694
4404
  type ExperimentResumeParams as ExperimentResumeParams,
3695
4405
  type ExperimentResultsParams as ExperimentResultsParams,
4406
+ type ExperimentAnalysisParams as ExperimentAnalysisParams,
3696
4407
  type ExperimentResultsTimeSeriesParams as ExperimentResultsTimeSeriesParams,
3697
4408
  type ExperimentSessionReplaysParams as ExperimentSessionReplaysParams,
3698
4409
  };