@oursprivacy/platform-sdk 1.46.0 → 1.48.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/CHANGELOG.md +14 -0
- package/client.d.mts +20 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +20 -11
- package/client.d.ts.map +1 -1
- package/client.js +11 -2
- package/client.js.map +1 -1
- package/client.mjs +11 -2
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/attribution.d.mts +9 -1
- package/resources/attribution.d.mts.map +1 -1
- package/resources/attribution.d.ts +9 -1
- package/resources/attribution.d.ts.map +1 -1
- package/resources/consent-settings.d.mts +48 -0
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +48 -0
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/conversion-journey-summaries.d.mts +38 -0
- package/resources/conversion-journey-summaries.d.mts.map +1 -1
- package/resources/conversion-journey-summaries.d.ts +38 -0
- package/resources/conversion-journey-summaries.d.ts.map +1 -1
- package/resources/conversion-journey-summaries.js +38 -0
- package/resources/conversion-journey-summaries.js.map +1 -1
- package/resources/conversion-journey-summaries.mjs +38 -0
- package/resources/conversion-journey-summaries.mjs.map +1 -1
- package/resources/data-governance.d.mts +5 -5
- package/resources/data-governance.d.mts.map +1 -1
- package/resources/data-governance.d.ts +5 -5
- package/resources/data-governance.d.ts.map +1 -1
- package/resources/destinations.d.mts +7 -27
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +7 -27
- package/resources/destinations.d.ts.map +1 -1
- package/resources/experiment-variants.d.mts +4 -2
- package/resources/experiment-variants.d.mts.map +1 -1
- package/resources/experiment-variants.d.ts +4 -2
- package/resources/experiment-variants.d.ts.map +1 -1
- package/resources/experiments.d.mts +677 -102
- package/resources/experiments.d.mts.map +1 -1
- package/resources/experiments.d.ts +677 -102
- package/resources/experiments.d.ts.map +1 -1
- package/resources/experiments.js +32 -2
- package/resources/experiments.js.map +1 -1
- package/resources/experiments.mjs +32 -2
- package/resources/experiments.mjs.map +1 -1
- package/resources/funnels.d.mts +172 -22
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +172 -22
- package/resources/funnels.d.ts.map +1 -1
- package/resources/funnels.js +10 -2
- package/resources/funnels.js.map +1 -1
- package/resources/funnels.mjs +10 -2
- package/resources/funnels.mjs.map +1 -1
- package/resources/heatmap-pages.d.mts +42 -14
- package/resources/heatmap-pages.d.mts.map +1 -1
- package/resources/heatmap-pages.d.ts +42 -14
- package/resources/heatmap-pages.d.ts.map +1 -1
- package/resources/heatmap-pages.js +11 -7
- package/resources/heatmap-pages.js.map +1 -1
- package/resources/heatmap-pages.mjs +11 -7
- package/resources/heatmap-pages.mjs.map +1 -1
- package/resources/index.d.mts +8 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +8 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/mappings.d.mts +2 -2
- package/resources/mappings.d.mts.map +1 -1
- package/resources/mappings.d.ts +2 -2
- package/resources/mappings.d.ts.map +1 -1
- package/resources/session-replays.d.mts +91 -0
- package/resources/session-replays.d.mts.map +1 -0
- package/resources/session-replays.d.ts +91 -0
- package/resources/session-replays.d.ts.map +1 -0
- package/resources/session-replays.js +24 -0
- package/resources/session-replays.js.map +1 -0
- package/resources/session-replays.mjs +20 -0
- package/resources/session-replays.mjs.map +1 -0
- package/resources/short-links.d.mts +138 -37
- package/resources/short-links.d.mts.map +1 -1
- package/resources/short-links.d.ts +138 -37
- package/resources/short-links.d.ts.map +1 -1
- package/resources/short-links.js +27 -12
- package/resources/short-links.js.map +1 -1
- package/resources/short-links.mjs +27 -12
- package/resources/short-links.mjs.map +1 -1
- package/resources/sources.d.mts +10 -6
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +10 -6
- package/resources/sources.d.ts.map +1 -1
- package/resources/tag-manager-tags.d.mts +2 -2
- package/resources/tag-manager-tags.d.ts +2 -2
- package/resources/tag-manager-tags.js +2 -2
- package/resources/tag-manager-tags.mjs +2 -2
- package/resources/tag-manager-triggers.d.mts +18 -1
- package/resources/tag-manager-triggers.d.mts.map +1 -1
- package/resources/tag-manager-triggers.d.ts +18 -1
- package/resources/tag-manager-triggers.d.ts.map +1 -1
- package/resources/translation-widgets.d.mts +355 -0
- package/resources/translation-widgets.d.mts.map +1 -0
- package/resources/translation-widgets.d.ts +355 -0
- package/resources/translation-widgets.d.ts.map +1 -0
- package/resources/translation-widgets.js +72 -0
- package/resources/translation-widgets.js.map +1 -0
- package/resources/translation-widgets.mjs +68 -0
- package/resources/translation-widgets.mjs.map +1 -0
- package/resources/video-channels.d.mts +17 -17
- package/resources/video-channels.d.mts.map +1 -1
- package/resources/video-channels.d.ts +17 -17
- package/resources/video-channels.d.ts.map +1 -1
- package/resources/video-channels.js +17 -16
- package/resources/video-channels.js.map +1 -1
- package/resources/video-channels.mjs +17 -16
- package/resources/video-channels.mjs.map +1 -1
- package/resources/web-analytics.d.mts +345 -0
- package/resources/web-analytics.d.mts.map +1 -0
- package/resources/web-analytics.d.ts +345 -0
- package/resources/web-analytics.d.ts.map +1 -0
- package/resources/web-analytics.js +61 -0
- package/resources/web-analytics.js.map +1 -0
- package/resources/web-analytics.mjs +57 -0
- package/resources/web-analytics.mjs.map +1 -0
- package/resources/web-scanners.d.mts +314 -14
- package/resources/web-scanners.d.mts.map +1 -1
- package/resources/web-scanners.d.ts +314 -14
- package/resources/web-scanners.d.ts.map +1 -1
- package/resources/web-scanners.js +139 -13
- package/resources/web-scanners.js.map +1 -1
- package/resources/web-scanners.mjs +139 -13
- package/resources/web-scanners.mjs.map +1 -1
- package/src/client.ts +124 -19
- package/src/resources/attribution.ts +11 -1
- package/src/resources/consent-settings.ts +56 -0
- package/src/resources/conversion-journey-summaries.ts +38 -0
- package/src/resources/data-governance.ts +5 -5
- package/src/resources/destinations.ts +18 -115
- package/src/resources/experiment-variants.ts +4 -2
- package/src/resources/experiments.ts +812 -101
- package/src/resources/funnels.ts +276 -21
- package/src/resources/heatmap-pages.ts +49 -14
- package/src/resources/index.ts +51 -3
- package/src/resources/mappings.ts +2 -2
- package/src/resources/session-replays.ts +138 -0
- package/src/resources/short-links.ts +164 -36
- package/src/resources/sources.ts +11 -0
- package/src/resources/tag-manager-tags.ts +2 -2
- package/src/resources/tag-manager-triggers.ts +18 -1
- package/src/resources/translation-widgets.ts +528 -0
- package/src/resources/video-channels.ts +19 -18
- package/src/resources/web-analytics.ts +494 -0
- package/src/resources/web-scanners.ts +443 -13
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -45,8 +45,8 @@ export declare class Experiments extends APIResource {
|
|
|
45
45
|
/**
|
|
46
46
|
* Partially update an experiment. Only the fields you send are changed, except
|
|
47
47
|
* renaming a non-draft legacy experiment with no stored key preserves its current
|
|
48
|
-
* name-derived key. Edits are allowed on draft, running, and paused experiments
|
|
49
|
-
* are recorded in the change log. Only completed experiments return 409 with
|
|
48
|
+
* name-derived key. Edits are allowed on draft, running, and paused experiments
|
|
49
|
+
* and are recorded in the change log. Only completed experiments return 409 with
|
|
50
50
|
* `A completed experiment can no longer be edited`. Use the lifecycle endpoints
|
|
51
51
|
* (`/start`, `/pause`, `/resume`, `/stop`) to change status. Requires scope:
|
|
52
52
|
* experiment:update
|
|
@@ -66,6 +66,17 @@ export declare class Experiments extends APIResource {
|
|
|
66
66
|
* ```
|
|
67
67
|
*/
|
|
68
68
|
delete(id: string, options?: RequestOptions): APIPromise<ExperimentDeleteResponse>;
|
|
69
|
+
/**
|
|
70
|
+
* Create a draft copy of an experiment. The copy keeps its configuration and
|
|
71
|
+
* variants, receives a new key, and does not retain lifecycle, rollout, or result
|
|
72
|
+
* state. Requires scope: experiment:create
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```ts
|
|
76
|
+
* const response = await client.experiments.duplicate('id');
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
duplicate(id: string, options?: RequestOptions): APIPromise<ExperimentDuplicateResponse>;
|
|
69
80
|
/**
|
|
70
81
|
* Start an experiment. By default also publishes the experiment and its variants
|
|
71
82
|
* atomically as a new version, making them live for end users — this is the
|
|
@@ -164,6 +175,21 @@ export declare class Experiments extends APIResource {
|
|
|
164
175
|
* ```
|
|
165
176
|
*/
|
|
166
177
|
results(id: string, query?: ExperimentResultsParams | null | undefined, options?: RequestOptions): APIPromise<ExperimentResultsResponse>;
|
|
178
|
+
/**
|
|
179
|
+
* Return the configured Bayesian, fixed-horizon Frequentist, or Sequential
|
|
180
|
+
* analysis for conversion metrics; Bayesian and Frequentist also support value
|
|
181
|
+
* metrics. The response includes common visitor, impression, readiness, evidence,
|
|
182
|
+
* and data-quality fields plus the applicable method-specific result block.
|
|
183
|
+
* Visitors are the inferential unit; impressions remain a delivery diagnostic.
|
|
184
|
+
* Secondary event overrides are labeled exploratory, and unsupported legacy plans
|
|
185
|
+
* suppress official evidence. Requires scope: experiment:find
|
|
186
|
+
*
|
|
187
|
+
* @example
|
|
188
|
+
* ```ts
|
|
189
|
+
* const response = await client.experiments.analysis('id');
|
|
190
|
+
* ```
|
|
191
|
+
*/
|
|
192
|
+
analysis(id: string, query?: ExperimentAnalysisParams | null | undefined, options?: RequestOptions): APIPromise<ExperimentAnalysisResponse>;
|
|
167
193
|
/**
|
|
168
194
|
* Per-day per-variant impressions, conversions, and conversion rate, sliced to a
|
|
169
195
|
* date range. Use this to chart trends, compare windows, or zoom in on a specific
|
|
@@ -232,10 +258,26 @@ export interface ExperimentListResponse {
|
|
|
232
258
|
/**
|
|
233
259
|
* All persisted variants for this experiment, including the control variant. A
|
|
234
260
|
* non-personalization experiment needs at least two variants before it can be
|
|
235
|
-
* started. Reading variants
|
|
236
|
-
* `experiment:
|
|
261
|
+
* started. Reading variants is gated by the `experiment:find` permission: a key
|
|
262
|
+
* holding the `experiment:find` scope always receives them, and a key created by
|
|
263
|
+
* an org admin/member receives them too (that role satisfies the check). A key
|
|
264
|
+
* that holds neither the scope nor a qualifying creator role receives an empty
|
|
265
|
+
* array here.
|
|
237
266
|
*/
|
|
238
267
|
variants: Array<ExperimentListResponse.Variant>;
|
|
268
|
+
/**
|
|
269
|
+
* Normalized statistical analysis plan. Missing legacy rows resolve to Bayesian
|
|
270
|
+
* analysis in GraphQL.
|
|
271
|
+
*/
|
|
272
|
+
analysisConfig?: unknown | null;
|
|
273
|
+
/**
|
|
274
|
+
* Primary metric definition frozen with the analysis plan at start time.
|
|
275
|
+
*/
|
|
276
|
+
analysisMetricSnapshot?: unknown | null;
|
|
277
|
+
/**
|
|
278
|
+
* ISO-8601 timestamp when the analysis plan was locked at experiment start.
|
|
279
|
+
*/
|
|
280
|
+
analysisStartedAt?: string | null;
|
|
239
281
|
/**
|
|
240
282
|
* Optional human-readable hypothesis or summary. In GraphQL this is backed by the
|
|
241
283
|
* experiment hypothesis field.
|
|
@@ -268,8 +310,8 @@ export interface ExperimentListResponse {
|
|
|
268
310
|
*/
|
|
269
311
|
stoppedAt?: string | null;
|
|
270
312
|
/**
|
|
271
|
-
* Eligibility rules: URL-pattern globs,
|
|
272
|
-
* visitor
|
|
313
|
+
* Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
|
|
314
|
+
* and runtime visitor-context or accumulated-property rules. Same shape as the
|
|
273
315
|
* create/patch input.
|
|
274
316
|
*/
|
|
275
317
|
targetingRules?: ExperimentListResponse.TargetingRules | null;
|
|
@@ -401,8 +443,8 @@ export declare namespace ExperimentListResponse {
|
|
|
401
443
|
}
|
|
402
444
|
}
|
|
403
445
|
/**
|
|
404
|
-
* Eligibility rules: URL-pattern globs,
|
|
405
|
-
* visitor
|
|
446
|
+
* Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
|
|
447
|
+
* and runtime visitor-context or accumulated-property rules. Same shape as the
|
|
406
448
|
* create/patch input.
|
|
407
449
|
*/
|
|
408
450
|
interface TargetingRules {
|
|
@@ -422,7 +464,10 @@ export declare namespace ExperimentListResponse {
|
|
|
422
464
|
*/
|
|
423
465
|
urlPatterns: Array<string>;
|
|
424
466
|
/**
|
|
425
|
-
*
|
|
467
|
+
* Reserved audience identifier. It is stored with the experiment but is not
|
|
468
|
+
* evaluated by the browser or server-side experiment runtime. Use
|
|
469
|
+
* `visitorProperties`, URL patterns, query parameters, or visitor status for
|
|
470
|
+
* runtime eligibility.
|
|
426
471
|
*/
|
|
427
472
|
audienceId?: string | null;
|
|
428
473
|
/**
|
|
@@ -431,8 +476,10 @@ export declare namespace ExperimentListResponse {
|
|
|
431
476
|
*/
|
|
432
477
|
queryParams?: Array<TargetingRules.QueryParam> | null;
|
|
433
478
|
/**
|
|
434
|
-
* Optional
|
|
435
|
-
*
|
|
479
|
+
* Optional runtime targeting rules. Recognized namespaced keys read visitor
|
|
480
|
+
* context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
|
|
481
|
+
* `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
|
|
482
|
+
* accumulated personalization property.
|
|
436
483
|
*/
|
|
437
484
|
visitorProperties?: unknown | null;
|
|
438
485
|
/**
|
|
@@ -491,10 +538,26 @@ export interface ExperimentCreateResponse {
|
|
|
491
538
|
/**
|
|
492
539
|
* All persisted variants for this experiment, including the control variant. A
|
|
493
540
|
* non-personalization experiment needs at least two variants before it can be
|
|
494
|
-
* started. Reading variants
|
|
495
|
-
* `experiment:
|
|
541
|
+
* started. Reading variants is gated by the `experiment:find` permission: a key
|
|
542
|
+
* holding the `experiment:find` scope always receives them, and a key created by
|
|
543
|
+
* an org admin/member receives them too (that role satisfies the check). A key
|
|
544
|
+
* that holds neither the scope nor a qualifying creator role receives an empty
|
|
545
|
+
* array here.
|
|
496
546
|
*/
|
|
497
547
|
variants: Array<ExperimentCreateResponse.Variant>;
|
|
548
|
+
/**
|
|
549
|
+
* Normalized statistical analysis plan. Missing legacy rows resolve to Bayesian
|
|
550
|
+
* analysis in GraphQL.
|
|
551
|
+
*/
|
|
552
|
+
analysisConfig?: unknown | null;
|
|
553
|
+
/**
|
|
554
|
+
* Primary metric definition frozen with the analysis plan at start time.
|
|
555
|
+
*/
|
|
556
|
+
analysisMetricSnapshot?: unknown | null;
|
|
557
|
+
/**
|
|
558
|
+
* ISO-8601 timestamp when the analysis plan was locked at experiment start.
|
|
559
|
+
*/
|
|
560
|
+
analysisStartedAt?: string | null;
|
|
498
561
|
/**
|
|
499
562
|
* Optional human-readable hypothesis or summary. In GraphQL this is backed by the
|
|
500
563
|
* experiment hypothesis field.
|
|
@@ -527,8 +590,8 @@ export interface ExperimentCreateResponse {
|
|
|
527
590
|
*/
|
|
528
591
|
stoppedAt?: string | null;
|
|
529
592
|
/**
|
|
530
|
-
* Eligibility rules: URL-pattern globs,
|
|
531
|
-
* visitor
|
|
593
|
+
* Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
|
|
594
|
+
* and runtime visitor-context or accumulated-property rules. Same shape as the
|
|
532
595
|
* create/patch input.
|
|
533
596
|
*/
|
|
534
597
|
targetingRules?: ExperimentCreateResponse.TargetingRules | null;
|
|
@@ -660,8 +723,8 @@ export declare namespace ExperimentCreateResponse {
|
|
|
660
723
|
}
|
|
661
724
|
}
|
|
662
725
|
/**
|
|
663
|
-
* Eligibility rules: URL-pattern globs,
|
|
664
|
-
* visitor
|
|
726
|
+
* Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
|
|
727
|
+
* and runtime visitor-context or accumulated-property rules. Same shape as the
|
|
665
728
|
* create/patch input.
|
|
666
729
|
*/
|
|
667
730
|
interface TargetingRules {
|
|
@@ -681,7 +744,10 @@ export declare namespace ExperimentCreateResponse {
|
|
|
681
744
|
*/
|
|
682
745
|
urlPatterns: Array<string>;
|
|
683
746
|
/**
|
|
684
|
-
*
|
|
747
|
+
* Reserved audience identifier. It is stored with the experiment but is not
|
|
748
|
+
* evaluated by the browser or server-side experiment runtime. Use
|
|
749
|
+
* `visitorProperties`, URL patterns, query parameters, or visitor status for
|
|
750
|
+
* runtime eligibility.
|
|
685
751
|
*/
|
|
686
752
|
audienceId?: string | null;
|
|
687
753
|
/**
|
|
@@ -690,8 +756,10 @@ export declare namespace ExperimentCreateResponse {
|
|
|
690
756
|
*/
|
|
691
757
|
queryParams?: Array<TargetingRules.QueryParam> | null;
|
|
692
758
|
/**
|
|
693
|
-
* Optional
|
|
694
|
-
*
|
|
759
|
+
* Optional runtime targeting rules. Recognized namespaced keys read visitor
|
|
760
|
+
* context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
|
|
761
|
+
* `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
|
|
762
|
+
* accumulated personalization property.
|
|
695
763
|
*/
|
|
696
764
|
visitorProperties?: unknown | null;
|
|
697
765
|
/**
|
|
@@ -750,10 +818,26 @@ export interface ExperimentRetrieveResponse {
|
|
|
750
818
|
/**
|
|
751
819
|
* All persisted variants for this experiment, including the control variant. A
|
|
752
820
|
* non-personalization experiment needs at least two variants before it can be
|
|
753
|
-
* started. Reading variants
|
|
754
|
-
* `experiment:
|
|
821
|
+
* started. Reading variants is gated by the `experiment:find` permission: a key
|
|
822
|
+
* holding the `experiment:find` scope always receives them, and a key created by
|
|
823
|
+
* an org admin/member receives them too (that role satisfies the check). A key
|
|
824
|
+
* that holds neither the scope nor a qualifying creator role receives an empty
|
|
825
|
+
* array here.
|
|
755
826
|
*/
|
|
756
827
|
variants: Array<ExperimentRetrieveResponse.Variant>;
|
|
828
|
+
/**
|
|
829
|
+
* Normalized statistical analysis plan. Missing legacy rows resolve to Bayesian
|
|
830
|
+
* analysis in GraphQL.
|
|
831
|
+
*/
|
|
832
|
+
analysisConfig?: unknown | null;
|
|
833
|
+
/**
|
|
834
|
+
* Primary metric definition frozen with the analysis plan at start time.
|
|
835
|
+
*/
|
|
836
|
+
analysisMetricSnapshot?: unknown | null;
|
|
837
|
+
/**
|
|
838
|
+
* ISO-8601 timestamp when the analysis plan was locked at experiment start.
|
|
839
|
+
*/
|
|
840
|
+
analysisStartedAt?: string | null;
|
|
757
841
|
/**
|
|
758
842
|
* Optional human-readable hypothesis or summary. In GraphQL this is backed by the
|
|
759
843
|
* experiment hypothesis field.
|
|
@@ -786,8 +870,8 @@ export interface ExperimentRetrieveResponse {
|
|
|
786
870
|
*/
|
|
787
871
|
stoppedAt?: string | null;
|
|
788
872
|
/**
|
|
789
|
-
* Eligibility rules: URL-pattern globs,
|
|
790
|
-
* visitor
|
|
873
|
+
* Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
|
|
874
|
+
* and runtime visitor-context or accumulated-property rules. Same shape as the
|
|
791
875
|
* create/patch input.
|
|
792
876
|
*/
|
|
793
877
|
targetingRules?: ExperimentRetrieveResponse.TargetingRules | null;
|
|
@@ -919,8 +1003,8 @@ export declare namespace ExperimentRetrieveResponse {
|
|
|
919
1003
|
}
|
|
920
1004
|
}
|
|
921
1005
|
/**
|
|
922
|
-
* Eligibility rules: URL-pattern globs,
|
|
923
|
-
* visitor
|
|
1006
|
+
* Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
|
|
1007
|
+
* and runtime visitor-context or accumulated-property rules. Same shape as the
|
|
924
1008
|
* create/patch input.
|
|
925
1009
|
*/
|
|
926
1010
|
interface TargetingRules {
|
|
@@ -940,7 +1024,10 @@ export declare namespace ExperimentRetrieveResponse {
|
|
|
940
1024
|
*/
|
|
941
1025
|
urlPatterns: Array<string>;
|
|
942
1026
|
/**
|
|
943
|
-
*
|
|
1027
|
+
* Reserved audience identifier. It is stored with the experiment but is not
|
|
1028
|
+
* evaluated by the browser or server-side experiment runtime. Use
|
|
1029
|
+
* `visitorProperties`, URL patterns, query parameters, or visitor status for
|
|
1030
|
+
* runtime eligibility.
|
|
944
1031
|
*/
|
|
945
1032
|
audienceId?: string | null;
|
|
946
1033
|
/**
|
|
@@ -949,8 +1036,10 @@ export declare namespace ExperimentRetrieveResponse {
|
|
|
949
1036
|
*/
|
|
950
1037
|
queryParams?: Array<TargetingRules.QueryParam> | null;
|
|
951
1038
|
/**
|
|
952
|
-
* Optional
|
|
953
|
-
*
|
|
1039
|
+
* Optional runtime targeting rules. Recognized namespaced keys read visitor
|
|
1040
|
+
* context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
|
|
1041
|
+
* `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
|
|
1042
|
+
* accumulated personalization property.
|
|
954
1043
|
*/
|
|
955
1044
|
visitorProperties?: unknown | null;
|
|
956
1045
|
/**
|
|
@@ -1009,10 +1098,26 @@ export interface ExperimentUpdateResponse {
|
|
|
1009
1098
|
/**
|
|
1010
1099
|
* All persisted variants for this experiment, including the control variant. A
|
|
1011
1100
|
* non-personalization experiment needs at least two variants before it can be
|
|
1012
|
-
* started. Reading variants
|
|
1013
|
-
* `experiment:
|
|
1101
|
+
* started. Reading variants is gated by the `experiment:find` permission: a key
|
|
1102
|
+
* holding the `experiment:find` scope always receives them, and a key created by
|
|
1103
|
+
* an org admin/member receives them too (that role satisfies the check). A key
|
|
1104
|
+
* that holds neither the scope nor a qualifying creator role receives an empty
|
|
1105
|
+
* array here.
|
|
1014
1106
|
*/
|
|
1015
1107
|
variants: Array<ExperimentUpdateResponse.Variant>;
|
|
1108
|
+
/**
|
|
1109
|
+
* Normalized statistical analysis plan. Missing legacy rows resolve to Bayesian
|
|
1110
|
+
* analysis in GraphQL.
|
|
1111
|
+
*/
|
|
1112
|
+
analysisConfig?: unknown | null;
|
|
1113
|
+
/**
|
|
1114
|
+
* Primary metric definition frozen with the analysis plan at start time.
|
|
1115
|
+
*/
|
|
1116
|
+
analysisMetricSnapshot?: unknown | null;
|
|
1117
|
+
/**
|
|
1118
|
+
* ISO-8601 timestamp when the analysis plan was locked at experiment start.
|
|
1119
|
+
*/
|
|
1120
|
+
analysisStartedAt?: string | null;
|
|
1016
1121
|
/**
|
|
1017
1122
|
* Optional human-readable hypothesis or summary. In GraphQL this is backed by the
|
|
1018
1123
|
* experiment hypothesis field.
|
|
@@ -1045,8 +1150,8 @@ export interface ExperimentUpdateResponse {
|
|
|
1045
1150
|
*/
|
|
1046
1151
|
stoppedAt?: string | null;
|
|
1047
1152
|
/**
|
|
1048
|
-
* Eligibility rules: URL-pattern globs,
|
|
1049
|
-
* visitor
|
|
1153
|
+
* Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
|
|
1154
|
+
* and runtime visitor-context or accumulated-property rules. Same shape as the
|
|
1050
1155
|
* create/patch input.
|
|
1051
1156
|
*/
|
|
1052
1157
|
targetingRules?: ExperimentUpdateResponse.TargetingRules | null;
|
|
@@ -1178,8 +1283,8 @@ export declare namespace ExperimentUpdateResponse {
|
|
|
1178
1283
|
}
|
|
1179
1284
|
}
|
|
1180
1285
|
/**
|
|
1181
|
-
* Eligibility rules: URL-pattern globs,
|
|
1182
|
-
* visitor
|
|
1286
|
+
* Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
|
|
1287
|
+
* and runtime visitor-context or accumulated-property rules. Same shape as the
|
|
1183
1288
|
* create/patch input.
|
|
1184
1289
|
*/
|
|
1185
1290
|
interface TargetingRules {
|
|
@@ -1199,7 +1304,10 @@ export declare namespace ExperimentUpdateResponse {
|
|
|
1199
1304
|
*/
|
|
1200
1305
|
urlPatterns: Array<string>;
|
|
1201
1306
|
/**
|
|
1202
|
-
*
|
|
1307
|
+
* Reserved audience identifier. It is stored with the experiment but is not
|
|
1308
|
+
* evaluated by the browser or server-side experiment runtime. Use
|
|
1309
|
+
* `visitorProperties`, URL patterns, query parameters, or visitor status for
|
|
1310
|
+
* runtime eligibility.
|
|
1203
1311
|
*/
|
|
1204
1312
|
audienceId?: string | null;
|
|
1205
1313
|
/**
|
|
@@ -1208,8 +1316,10 @@ export declare namespace ExperimentUpdateResponse {
|
|
|
1208
1316
|
*/
|
|
1209
1317
|
queryParams?: Array<TargetingRules.QueryParam> | null;
|
|
1210
1318
|
/**
|
|
1211
|
-
* Optional
|
|
1212
|
-
*
|
|
1319
|
+
* Optional runtime targeting rules. Recognized namespaced keys read visitor
|
|
1320
|
+
* context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
|
|
1321
|
+
* `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
|
|
1322
|
+
* accumulated personalization property.
|
|
1213
1323
|
*/
|
|
1214
1324
|
visitorProperties?: unknown | null;
|
|
1215
1325
|
/**
|
|
@@ -1240,6 +1350,286 @@ export declare namespace ExperimentUpdateResponse {
|
|
|
1240
1350
|
* Whether the experiment was deleted successfully.
|
|
1241
1351
|
*/
|
|
1242
1352
|
export type ExperimentDeleteResponse = boolean;
|
|
1353
|
+
export interface ExperimentDuplicateResponse {
|
|
1354
|
+
/**
|
|
1355
|
+
* Unique identifier for the experiment.
|
|
1356
|
+
*/
|
|
1357
|
+
id: string;
|
|
1358
|
+
/**
|
|
1359
|
+
* ISO-8601 timestamp when the experiment was created.
|
|
1360
|
+
*/
|
|
1361
|
+
createdAt: string;
|
|
1362
|
+
/**
|
|
1363
|
+
* Stable code-facing key for the experiment. Use this with the headless SDK
|
|
1364
|
+
* `getExperimentByKey()` API instead of hard-coding opaque experiment IDs into
|
|
1365
|
+
* application code.
|
|
1366
|
+
*/
|
|
1367
|
+
key: string;
|
|
1368
|
+
/**
|
|
1369
|
+
* Short, human-readable experiment name.
|
|
1370
|
+
*/
|
|
1371
|
+
name: string;
|
|
1372
|
+
/**
|
|
1373
|
+
* Lifecycle state. `draft` is editable, `running` is active, `paused` is
|
|
1374
|
+
* temporarily inactive, and `completed` is permanently stopped.
|
|
1375
|
+
*/
|
|
1376
|
+
status: 'completed' | 'draft' | 'paused' | 'running';
|
|
1377
|
+
/**
|
|
1378
|
+
* Percent of eligible traffic assigned into the experiment. Use 0 to fully disable
|
|
1379
|
+
* enrollment without deleting the experiment.
|
|
1380
|
+
*/
|
|
1381
|
+
trafficAllocation: number;
|
|
1382
|
+
/**
|
|
1383
|
+
* All persisted variants for this experiment, including the control variant. A
|
|
1384
|
+
* non-personalization experiment needs at least two variants before it can be
|
|
1385
|
+
* started. Reading variants is gated by the `experiment:find` permission: a key
|
|
1386
|
+
* holding the `experiment:find` scope always receives them, and a key created by
|
|
1387
|
+
* an org admin/member receives them too (that role satisfies the check). A key
|
|
1388
|
+
* that holds neither the scope nor a qualifying creator role receives an empty
|
|
1389
|
+
* array here.
|
|
1390
|
+
*/
|
|
1391
|
+
variants: Array<ExperimentDuplicateResponse.Variant>;
|
|
1392
|
+
/**
|
|
1393
|
+
* Normalized statistical analysis plan. Missing legacy rows resolve to Bayesian
|
|
1394
|
+
* analysis in GraphQL.
|
|
1395
|
+
*/
|
|
1396
|
+
analysisConfig?: unknown | null;
|
|
1397
|
+
/**
|
|
1398
|
+
* Primary metric definition frozen with the analysis plan at start time.
|
|
1399
|
+
*/
|
|
1400
|
+
analysisMetricSnapshot?: unknown | null;
|
|
1401
|
+
/**
|
|
1402
|
+
* ISO-8601 timestamp when the analysis plan was locked at experiment start.
|
|
1403
|
+
*/
|
|
1404
|
+
analysisStartedAt?: string | null;
|
|
1405
|
+
/**
|
|
1406
|
+
* Optional human-readable hypothesis or summary. In GraphQL this is backed by the
|
|
1407
|
+
* experiment hypothesis field.
|
|
1408
|
+
*/
|
|
1409
|
+
description?: string | null;
|
|
1410
|
+
/**
|
|
1411
|
+
* For redirect variants, whether the original page query string should be
|
|
1412
|
+
* forwarded onto the redirect URL.
|
|
1413
|
+
*/
|
|
1414
|
+
includeQueryString?: boolean | null;
|
|
1415
|
+
/**
|
|
1416
|
+
* Configured success metrics. The read shape mirrors the write shape — `metrics`
|
|
1417
|
+
* from a GET response can be PATCHed back without modification.
|
|
1418
|
+
*/
|
|
1419
|
+
metrics?: ExperimentDuplicateResponse.Metrics | null;
|
|
1420
|
+
/**
|
|
1421
|
+
* Variant currently rolled out to 100% of targeted traffic on a completed
|
|
1422
|
+
* experiment. When set (and not the control), the runtime keeps serving it to
|
|
1423
|
+
* every matching visitor — a winning redirect becomes an ongoing redirect.
|
|
1424
|
+
* Independent of `winnerVariantId`. Set via `POST /experiments/{id}/rollout`;
|
|
1425
|
+
* cleared via `POST /experiments/{id}/end-rollout`.
|
|
1426
|
+
*/
|
|
1427
|
+
rolloutVariantId?: string | null;
|
|
1428
|
+
/**
|
|
1429
|
+
* ISO-8601 timestamp when the experiment most recently entered a running state.
|
|
1430
|
+
*/
|
|
1431
|
+
startedAt?: string | null;
|
|
1432
|
+
/**
|
|
1433
|
+
* ISO-8601 timestamp when the experiment was completed, if it has been stopped.
|
|
1434
|
+
*/
|
|
1435
|
+
stoppedAt?: string | null;
|
|
1436
|
+
/**
|
|
1437
|
+
* Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
|
|
1438
|
+
* and runtime visitor-context or accumulated-property rules. Same shape as the
|
|
1439
|
+
* create/patch input.
|
|
1440
|
+
*/
|
|
1441
|
+
targetingRules?: ExperimentDuplicateResponse.TargetingRules | null;
|
|
1442
|
+
/**
|
|
1443
|
+
* Experiment mode. `ab` and `multivariate` use traffic allocation and results;
|
|
1444
|
+
* `personalization` is always-on targeting.
|
|
1445
|
+
*/
|
|
1446
|
+
type?: 'ab' | 'multivariate' | 'personalization' | null;
|
|
1447
|
+
/**
|
|
1448
|
+
* ISO-8601 timestamp for the last persisted update, if any.
|
|
1449
|
+
*/
|
|
1450
|
+
updatedAt?: string | null;
|
|
1451
|
+
/**
|
|
1452
|
+
* Declared winning variant — reporting metadata only. Records which variant won;
|
|
1453
|
+
* does NOT change what visitors are served. Set at stop time or later via
|
|
1454
|
+
* `POST /experiments/{id}/winner`.
|
|
1455
|
+
*/
|
|
1456
|
+
winnerVariantId?: string | null;
|
|
1457
|
+
}
|
|
1458
|
+
export declare namespace ExperimentDuplicateResponse {
|
|
1459
|
+
interface Variant {
|
|
1460
|
+
/**
|
|
1461
|
+
* Unique identifier for this experiment variant.
|
|
1462
|
+
*/
|
|
1463
|
+
id: string;
|
|
1464
|
+
/**
|
|
1465
|
+
* Parent experiment ID this variant belongs to.
|
|
1466
|
+
*/
|
|
1467
|
+
experimentId: string;
|
|
1468
|
+
/**
|
|
1469
|
+
* Whether this is the baseline control variant.
|
|
1470
|
+
*/
|
|
1471
|
+
isControl: boolean;
|
|
1472
|
+
/**
|
|
1473
|
+
* Human-readable variant name shown in the dashboard and results.
|
|
1474
|
+
*/
|
|
1475
|
+
name: string;
|
|
1476
|
+
/**
|
|
1477
|
+
* Relative traffic weight used when assigning visitors among variants in an active
|
|
1478
|
+
* experiment.
|
|
1479
|
+
*/
|
|
1480
|
+
weight: number;
|
|
1481
|
+
/**
|
|
1482
|
+
* Ordered list of declarative DOM mutations applied when this variant is assigned.
|
|
1483
|
+
*/
|
|
1484
|
+
domModifications?: Array<Variant.DomModification> | null;
|
|
1485
|
+
/**
|
|
1486
|
+
* Target URL for redirect variants. Use either a site-relative path such as
|
|
1487
|
+
* `/pricing-v2` or an absolute `https://` URL. Cross-origin `http://` URLs are
|
|
1488
|
+
* rejected. Omit for DOM modification variants.
|
|
1489
|
+
*/
|
|
1490
|
+
redirectUrl?: string | null;
|
|
1491
|
+
/**
|
|
1492
|
+
* How this variant changes the user experience. `dom_modifications` for on-page
|
|
1493
|
+
* changes or `redirect` for redirect tests.
|
|
1494
|
+
*/
|
|
1495
|
+
variantType?: string | null;
|
|
1496
|
+
}
|
|
1497
|
+
namespace Variant {
|
|
1498
|
+
interface DomModification {
|
|
1499
|
+
/**
|
|
1500
|
+
* Mutation to apply when the selector matches. Use `redirectUrl` instead of DOM
|
|
1501
|
+
* modifications for redirect variants.
|
|
1502
|
+
*/
|
|
1503
|
+
action: 'customCss' | 'customJs' | 'insertAfter' | 'insertBefore' | 'remove' | 'setAttribute' | 'setHtml' | 'setImage' | 'setStyle' | 'setText';
|
|
1504
|
+
/**
|
|
1505
|
+
* CSS selector used to find the element to modify on the page at runtime.
|
|
1506
|
+
*/
|
|
1507
|
+
selector: string;
|
|
1508
|
+
/**
|
|
1509
|
+
* Canonical action payload. For `setText` / `setHtml` / `customCss` / `customJs` /
|
|
1510
|
+
* `setImage` / `insertBefore` / `insertAfter` this is the literal
|
|
1511
|
+
* text/HTML/CSS/JS/URL. For `setStyle` and `setAttribute` it is a JSON-stringified
|
|
1512
|
+
* `{key: value}` object — prefer the structured `styles` / `attribute` fields
|
|
1513
|
+
* below to avoid manual JSON encoding.
|
|
1514
|
+
*/
|
|
1515
|
+
value: string;
|
|
1516
|
+
/**
|
|
1517
|
+
* Populated on read for `setAttribute` modifications, parsed from `value`.
|
|
1518
|
+
* Customers may also send this field instead of a JSON-stringified `value` on
|
|
1519
|
+
* write — see `domModificationInputSchema`.
|
|
1520
|
+
*/
|
|
1521
|
+
attribute?: unknown | null;
|
|
1522
|
+
/**
|
|
1523
|
+
* Populated on read for `setStyle` modifications, parsed from `value`. Customers
|
|
1524
|
+
* may also send this field instead of a JSON-stringified `value` on write — see
|
|
1525
|
+
* `domModificationInputSchema`.
|
|
1526
|
+
*/
|
|
1527
|
+
styles?: Array<DomModification.Style> | null;
|
|
1528
|
+
}
|
|
1529
|
+
namespace DomModification {
|
|
1530
|
+
interface Style {
|
|
1531
|
+
/**
|
|
1532
|
+
* CSS property name in camelCase or kebab-case.
|
|
1533
|
+
*/
|
|
1534
|
+
property: string;
|
|
1535
|
+
/**
|
|
1536
|
+
* CSS value to assign to the property.
|
|
1537
|
+
*/
|
|
1538
|
+
value: string;
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
/**
|
|
1543
|
+
* Configured success metrics. The read shape mirrors the write shape — `metrics`
|
|
1544
|
+
* from a GET response can be PATCHed back without modification.
|
|
1545
|
+
*/
|
|
1546
|
+
interface Metrics {
|
|
1547
|
+
/**
|
|
1548
|
+
* Primary success metric used in the results report.
|
|
1549
|
+
*/
|
|
1550
|
+
primary?: unknown | null;
|
|
1551
|
+
/**
|
|
1552
|
+
* Optional secondary metrics tracked alongside the primary goal.
|
|
1553
|
+
*/
|
|
1554
|
+
secondary?: Array<Metrics.Secondary> | null;
|
|
1555
|
+
}
|
|
1556
|
+
namespace Metrics {
|
|
1557
|
+
interface Secondary {
|
|
1558
|
+
/**
|
|
1559
|
+
* Name of the event used to measure success for this metric.
|
|
1560
|
+
*/
|
|
1561
|
+
eventName?: string | null;
|
|
1562
|
+
/**
|
|
1563
|
+
* Optional funnel identifier when the metric is derived from an existing funnel
|
|
1564
|
+
* definition.
|
|
1565
|
+
*/
|
|
1566
|
+
funnelId?: string | null;
|
|
1567
|
+
}
|
|
1568
|
+
}
|
|
1569
|
+
/**
|
|
1570
|
+
* Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
|
|
1571
|
+
* and runtime visitor-context or accumulated-property rules. Same shape as the
|
|
1572
|
+
* create/patch input.
|
|
1573
|
+
*/
|
|
1574
|
+
interface TargetingRules {
|
|
1575
|
+
/**
|
|
1576
|
+
* Glob-style URL patterns that must match for the experiment to be eligible. Each
|
|
1577
|
+
* pattern is either a path (`/pricing`, matched on any domain) or a host-qualified
|
|
1578
|
+
* pattern (`get.example.com/pricing` or `https://get.example.com/pricing`, matched
|
|
1579
|
+
* against the full URL so a single domain or subdomain can be targeted). Use `*`
|
|
1580
|
+
* to match within a path segment and `**` to match across segments. Up to 200
|
|
1581
|
+
* patterns; each pattern up to 2000 characters. An empty array (or omitting the
|
|
1582
|
+
* field) matches all URLs — equivalent to `['**']`. The host(s) targeted here must
|
|
1583
|
+
* also appear in the parent experiment settings' `whitelistDomains` — that
|
|
1584
|
+
* allowlist is what limits which domains can load your experiments (see
|
|
1585
|
+
* `GET /experiment-settings`). If the host is missing, the SDK refuses to load
|
|
1586
|
+
* there and the experiment never runs, even after `POST /experiments/{id}/start`
|
|
1587
|
+
* succeeds.
|
|
1588
|
+
*/
|
|
1589
|
+
urlPatterns: Array<string>;
|
|
1590
|
+
/**
|
|
1591
|
+
* Reserved audience identifier. It is stored with the experiment but is not
|
|
1592
|
+
* evaluated by the browser or server-side experiment runtime. Use
|
|
1593
|
+
* `visitorProperties`, URL patterns, query parameters, or visitor status for
|
|
1594
|
+
* runtime eligibility.
|
|
1595
|
+
*/
|
|
1596
|
+
audienceId?: string | null;
|
|
1597
|
+
/**
|
|
1598
|
+
* Additional query-string conditions that must all match for the visitor to
|
|
1599
|
+
* qualify.
|
|
1600
|
+
*/
|
|
1601
|
+
queryParams?: Array<TargetingRules.QueryParam> | null;
|
|
1602
|
+
/**
|
|
1603
|
+
* Optional runtime targeting rules. Recognized namespaced keys read visitor
|
|
1604
|
+
* context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
|
|
1605
|
+
* `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
|
|
1606
|
+
* accumulated personalization property.
|
|
1607
|
+
*/
|
|
1608
|
+
visitorProperties?: unknown | null;
|
|
1609
|
+
/**
|
|
1610
|
+
* Whether the experiment should target new visitors, returning visitors, or any
|
|
1611
|
+
* visitor.
|
|
1612
|
+
*/
|
|
1613
|
+
visitorStatus?: string | null;
|
|
1614
|
+
}
|
|
1615
|
+
namespace TargetingRules {
|
|
1616
|
+
interface QueryParam {
|
|
1617
|
+
/**
|
|
1618
|
+
* Query string key to inspect on the current page URL.
|
|
1619
|
+
*/
|
|
1620
|
+
key: string;
|
|
1621
|
+
/**
|
|
1622
|
+
* Comparison operator applied to the query string value.
|
|
1623
|
+
*/
|
|
1624
|
+
operator: 'contains' | 'equals' | 'exists' | 'not_equals' | 'not_exists' | 'regex';
|
|
1625
|
+
/**
|
|
1626
|
+
* Comparison value used by operators that require one. Omit for `exists` and
|
|
1627
|
+
* `not_exists`.
|
|
1628
|
+
*/
|
|
1629
|
+
value?: string | null;
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1243
1633
|
export interface ExperimentStartResponse {
|
|
1244
1634
|
/**
|
|
1245
1635
|
* Number of unpublished version changes detected at the time of the lifecycle
|
|
@@ -1284,6 +1674,19 @@ export declare namespace ExperimentStartResponse {
|
|
|
1284
1674
|
* enrollment without deleting the experiment.
|
|
1285
1675
|
*/
|
|
1286
1676
|
trafficAllocation: number;
|
|
1677
|
+
/**
|
|
1678
|
+
* Normalized statistical analysis plan. Missing legacy rows resolve to Bayesian
|
|
1679
|
+
* analysis in GraphQL.
|
|
1680
|
+
*/
|
|
1681
|
+
analysisConfig?: unknown | null;
|
|
1682
|
+
/**
|
|
1683
|
+
* Primary metric definition frozen with the analysis plan at start time.
|
|
1684
|
+
*/
|
|
1685
|
+
analysisMetricSnapshot?: unknown | null;
|
|
1686
|
+
/**
|
|
1687
|
+
* ISO-8601 timestamp when the analysis plan was locked at experiment start.
|
|
1688
|
+
*/
|
|
1689
|
+
analysisStartedAt?: string | null;
|
|
1287
1690
|
/**
|
|
1288
1691
|
* Optional human-readable hypothesis or summary. In GraphQL this is backed by the
|
|
1289
1692
|
* experiment hypothesis field.
|
|
@@ -1316,8 +1719,8 @@ export declare namespace ExperimentStartResponse {
|
|
|
1316
1719
|
*/
|
|
1317
1720
|
stoppedAt?: string | null;
|
|
1318
1721
|
/**
|
|
1319
|
-
* Eligibility rules: URL-pattern globs,
|
|
1320
|
-
* visitor
|
|
1722
|
+
* Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
|
|
1723
|
+
* and runtime visitor-context or accumulated-property rules. Same shape as the
|
|
1321
1724
|
* create/patch input.
|
|
1322
1725
|
*/
|
|
1323
1726
|
targetingRules?: Experiment.TargetingRules | null;
|
|
@@ -1366,8 +1769,8 @@ export declare namespace ExperimentStartResponse {
|
|
|
1366
1769
|
}
|
|
1367
1770
|
}
|
|
1368
1771
|
/**
|
|
1369
|
-
* Eligibility rules: URL-pattern globs,
|
|
1370
|
-
* visitor
|
|
1772
|
+
* Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
|
|
1773
|
+
* and runtime visitor-context or accumulated-property rules. Same shape as the
|
|
1371
1774
|
* create/patch input.
|
|
1372
1775
|
*/
|
|
1373
1776
|
interface TargetingRules {
|
|
@@ -1387,7 +1790,10 @@ export declare namespace ExperimentStartResponse {
|
|
|
1387
1790
|
*/
|
|
1388
1791
|
urlPatterns: Array<string>;
|
|
1389
1792
|
/**
|
|
1390
|
-
*
|
|
1793
|
+
* Reserved audience identifier. It is stored with the experiment but is not
|
|
1794
|
+
* evaluated by the browser or server-side experiment runtime. Use
|
|
1795
|
+
* `visitorProperties`, URL patterns, query parameters, or visitor status for
|
|
1796
|
+
* runtime eligibility.
|
|
1391
1797
|
*/
|
|
1392
1798
|
audienceId?: string | null;
|
|
1393
1799
|
/**
|
|
@@ -1396,8 +1802,10 @@ export declare namespace ExperimentStartResponse {
|
|
|
1396
1802
|
*/
|
|
1397
1803
|
queryParams?: Array<TargetingRules.QueryParam> | null;
|
|
1398
1804
|
/**
|
|
1399
|
-
* Optional
|
|
1400
|
-
*
|
|
1805
|
+
* Optional runtime targeting rules. Recognized namespaced keys read visitor
|
|
1806
|
+
* context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
|
|
1807
|
+
* `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
|
|
1808
|
+
* accumulated personalization property.
|
|
1401
1809
|
*/
|
|
1402
1810
|
visitorProperties?: unknown | null;
|
|
1403
1811
|
/**
|
|
@@ -1469,6 +1877,19 @@ export declare namespace ExperimentStopResponse {
|
|
|
1469
1877
|
* enrollment without deleting the experiment.
|
|
1470
1878
|
*/
|
|
1471
1879
|
trafficAllocation: number;
|
|
1880
|
+
/**
|
|
1881
|
+
* Normalized statistical analysis plan. Missing legacy rows resolve to Bayesian
|
|
1882
|
+
* analysis in GraphQL.
|
|
1883
|
+
*/
|
|
1884
|
+
analysisConfig?: unknown | null;
|
|
1885
|
+
/**
|
|
1886
|
+
* Primary metric definition frozen with the analysis plan at start time.
|
|
1887
|
+
*/
|
|
1888
|
+
analysisMetricSnapshot?: unknown | null;
|
|
1889
|
+
/**
|
|
1890
|
+
* ISO-8601 timestamp when the analysis plan was locked at experiment start.
|
|
1891
|
+
*/
|
|
1892
|
+
analysisStartedAt?: string | null;
|
|
1472
1893
|
/**
|
|
1473
1894
|
* Optional human-readable hypothesis or summary. In GraphQL this is backed by the
|
|
1474
1895
|
* experiment hypothesis field.
|
|
@@ -1501,8 +1922,8 @@ export declare namespace ExperimentStopResponse {
|
|
|
1501
1922
|
*/
|
|
1502
1923
|
stoppedAt?: string | null;
|
|
1503
1924
|
/**
|
|
1504
|
-
* Eligibility rules: URL-pattern globs,
|
|
1505
|
-
* visitor
|
|
1925
|
+
* Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
|
|
1926
|
+
* and runtime visitor-context or accumulated-property rules. Same shape as the
|
|
1506
1927
|
* create/patch input.
|
|
1507
1928
|
*/
|
|
1508
1929
|
targetingRules?: Experiment.TargetingRules | null;
|
|
@@ -1551,8 +1972,8 @@ export declare namespace ExperimentStopResponse {
|
|
|
1551
1972
|
}
|
|
1552
1973
|
}
|
|
1553
1974
|
/**
|
|
1554
|
-
* Eligibility rules: URL-pattern globs,
|
|
1555
|
-
* visitor
|
|
1975
|
+
* Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
|
|
1976
|
+
* and runtime visitor-context or accumulated-property rules. Same shape as the
|
|
1556
1977
|
* create/patch input.
|
|
1557
1978
|
*/
|
|
1558
1979
|
interface TargetingRules {
|
|
@@ -1572,7 +1993,10 @@ export declare namespace ExperimentStopResponse {
|
|
|
1572
1993
|
*/
|
|
1573
1994
|
urlPatterns: Array<string>;
|
|
1574
1995
|
/**
|
|
1575
|
-
*
|
|
1996
|
+
* Reserved audience identifier. It is stored with the experiment but is not
|
|
1997
|
+
* evaluated by the browser or server-side experiment runtime. Use
|
|
1998
|
+
* `visitorProperties`, URL patterns, query parameters, or visitor status for
|
|
1999
|
+
* runtime eligibility.
|
|
1576
2000
|
*/
|
|
1577
2001
|
audienceId?: string | null;
|
|
1578
2002
|
/**
|
|
@@ -1581,8 +2005,10 @@ export declare namespace ExperimentStopResponse {
|
|
|
1581
2005
|
*/
|
|
1582
2006
|
queryParams?: Array<TargetingRules.QueryParam> | null;
|
|
1583
2007
|
/**
|
|
1584
|
-
* Optional
|
|
1585
|
-
*
|
|
2008
|
+
* Optional runtime targeting rules. Recognized namespaced keys read visitor
|
|
2009
|
+
* context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
|
|
2010
|
+
* `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
|
|
2011
|
+
* accumulated personalization property.
|
|
1586
2012
|
*/
|
|
1587
2013
|
visitorProperties?: unknown | null;
|
|
1588
2014
|
/**
|
|
@@ -1654,6 +2080,19 @@ export declare namespace ExperimentRolloutResponse {
|
|
|
1654
2080
|
* enrollment without deleting the experiment.
|
|
1655
2081
|
*/
|
|
1656
2082
|
trafficAllocation: number;
|
|
2083
|
+
/**
|
|
2084
|
+
* Normalized statistical analysis plan. Missing legacy rows resolve to Bayesian
|
|
2085
|
+
* analysis in GraphQL.
|
|
2086
|
+
*/
|
|
2087
|
+
analysisConfig?: unknown | null;
|
|
2088
|
+
/**
|
|
2089
|
+
* Primary metric definition frozen with the analysis plan at start time.
|
|
2090
|
+
*/
|
|
2091
|
+
analysisMetricSnapshot?: unknown | null;
|
|
2092
|
+
/**
|
|
2093
|
+
* ISO-8601 timestamp when the analysis plan was locked at experiment start.
|
|
2094
|
+
*/
|
|
2095
|
+
analysisStartedAt?: string | null;
|
|
1657
2096
|
/**
|
|
1658
2097
|
* Optional human-readable hypothesis or summary. In GraphQL this is backed by the
|
|
1659
2098
|
* experiment hypothesis field.
|
|
@@ -1686,8 +2125,8 @@ export declare namespace ExperimentRolloutResponse {
|
|
|
1686
2125
|
*/
|
|
1687
2126
|
stoppedAt?: string | null;
|
|
1688
2127
|
/**
|
|
1689
|
-
* Eligibility rules: URL-pattern globs,
|
|
1690
|
-
* visitor
|
|
2128
|
+
* Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
|
|
2129
|
+
* and runtime visitor-context or accumulated-property rules. Same shape as the
|
|
1691
2130
|
* create/patch input.
|
|
1692
2131
|
*/
|
|
1693
2132
|
targetingRules?: Experiment.TargetingRules | null;
|
|
@@ -1736,8 +2175,8 @@ export declare namespace ExperimentRolloutResponse {
|
|
|
1736
2175
|
}
|
|
1737
2176
|
}
|
|
1738
2177
|
/**
|
|
1739
|
-
* Eligibility rules: URL-pattern globs,
|
|
1740
|
-
* visitor
|
|
2178
|
+
* Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
|
|
2179
|
+
* and runtime visitor-context or accumulated-property rules. Same shape as the
|
|
1741
2180
|
* create/patch input.
|
|
1742
2181
|
*/
|
|
1743
2182
|
interface TargetingRules {
|
|
@@ -1757,7 +2196,10 @@ export declare namespace ExperimentRolloutResponse {
|
|
|
1757
2196
|
*/
|
|
1758
2197
|
urlPatterns: Array<string>;
|
|
1759
2198
|
/**
|
|
1760
|
-
*
|
|
2199
|
+
* Reserved audience identifier. It is stored with the experiment but is not
|
|
2200
|
+
* evaluated by the browser or server-side experiment runtime. Use
|
|
2201
|
+
* `visitorProperties`, URL patterns, query parameters, or visitor status for
|
|
2202
|
+
* runtime eligibility.
|
|
1761
2203
|
*/
|
|
1762
2204
|
audienceId?: string | null;
|
|
1763
2205
|
/**
|
|
@@ -1766,8 +2208,10 @@ export declare namespace ExperimentRolloutResponse {
|
|
|
1766
2208
|
*/
|
|
1767
2209
|
queryParams?: Array<TargetingRules.QueryParam> | null;
|
|
1768
2210
|
/**
|
|
1769
|
-
* Optional
|
|
1770
|
-
*
|
|
2211
|
+
* Optional runtime targeting rules. Recognized namespaced keys read visitor
|
|
2212
|
+
* context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
|
|
2213
|
+
* `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
|
|
2214
|
+
* accumulated personalization property.
|
|
1771
2215
|
*/
|
|
1772
2216
|
visitorProperties?: unknown | null;
|
|
1773
2217
|
/**
|
|
@@ -1839,6 +2283,19 @@ export declare namespace ExperimentEndRolloutResponse {
|
|
|
1839
2283
|
* enrollment without deleting the experiment.
|
|
1840
2284
|
*/
|
|
1841
2285
|
trafficAllocation: number;
|
|
2286
|
+
/**
|
|
2287
|
+
* Normalized statistical analysis plan. Missing legacy rows resolve to Bayesian
|
|
2288
|
+
* analysis in GraphQL.
|
|
2289
|
+
*/
|
|
2290
|
+
analysisConfig?: unknown | null;
|
|
2291
|
+
/**
|
|
2292
|
+
* Primary metric definition frozen with the analysis plan at start time.
|
|
2293
|
+
*/
|
|
2294
|
+
analysisMetricSnapshot?: unknown | null;
|
|
2295
|
+
/**
|
|
2296
|
+
* ISO-8601 timestamp when the analysis plan was locked at experiment start.
|
|
2297
|
+
*/
|
|
2298
|
+
analysisStartedAt?: string | null;
|
|
1842
2299
|
/**
|
|
1843
2300
|
* Optional human-readable hypothesis or summary. In GraphQL this is backed by the
|
|
1844
2301
|
* experiment hypothesis field.
|
|
@@ -1871,8 +2328,8 @@ export declare namespace ExperimentEndRolloutResponse {
|
|
|
1871
2328
|
*/
|
|
1872
2329
|
stoppedAt?: string | null;
|
|
1873
2330
|
/**
|
|
1874
|
-
* Eligibility rules: URL-pattern globs,
|
|
1875
|
-
* visitor
|
|
2331
|
+
* Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
|
|
2332
|
+
* and runtime visitor-context or accumulated-property rules. Same shape as the
|
|
1876
2333
|
* create/patch input.
|
|
1877
2334
|
*/
|
|
1878
2335
|
targetingRules?: Experiment.TargetingRules | null;
|
|
@@ -1921,8 +2378,8 @@ export declare namespace ExperimentEndRolloutResponse {
|
|
|
1921
2378
|
}
|
|
1922
2379
|
}
|
|
1923
2380
|
/**
|
|
1924
|
-
* Eligibility rules: URL-pattern globs,
|
|
1925
|
-
* visitor
|
|
2381
|
+
* Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
|
|
2382
|
+
* and runtime visitor-context or accumulated-property rules. Same shape as the
|
|
1926
2383
|
* create/patch input.
|
|
1927
2384
|
*/
|
|
1928
2385
|
interface TargetingRules {
|
|
@@ -1942,7 +2399,10 @@ export declare namespace ExperimentEndRolloutResponse {
|
|
|
1942
2399
|
*/
|
|
1943
2400
|
urlPatterns: Array<string>;
|
|
1944
2401
|
/**
|
|
1945
|
-
*
|
|
2402
|
+
* Reserved audience identifier. It is stored with the experiment but is not
|
|
2403
|
+
* evaluated by the browser or server-side experiment runtime. Use
|
|
2404
|
+
* `visitorProperties`, URL patterns, query parameters, or visitor status for
|
|
2405
|
+
* runtime eligibility.
|
|
1946
2406
|
*/
|
|
1947
2407
|
audienceId?: string | null;
|
|
1948
2408
|
/**
|
|
@@ -1951,8 +2411,10 @@ export declare namespace ExperimentEndRolloutResponse {
|
|
|
1951
2411
|
*/
|
|
1952
2412
|
queryParams?: Array<TargetingRules.QueryParam> | null;
|
|
1953
2413
|
/**
|
|
1954
|
-
* Optional
|
|
1955
|
-
*
|
|
2414
|
+
* Optional runtime targeting rules. Recognized namespaced keys read visitor
|
|
2415
|
+
* context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
|
|
2416
|
+
* `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
|
|
2417
|
+
* accumulated personalization property.
|
|
1956
2418
|
*/
|
|
1957
2419
|
visitorProperties?: unknown | null;
|
|
1958
2420
|
/**
|
|
@@ -2009,6 +2471,19 @@ export interface ExperimentWinnerResponse {
|
|
|
2009
2471
|
* enrollment without deleting the experiment.
|
|
2010
2472
|
*/
|
|
2011
2473
|
trafficAllocation: number;
|
|
2474
|
+
/**
|
|
2475
|
+
* Normalized statistical analysis plan. Missing legacy rows resolve to Bayesian
|
|
2476
|
+
* analysis in GraphQL.
|
|
2477
|
+
*/
|
|
2478
|
+
analysisConfig?: unknown | null;
|
|
2479
|
+
/**
|
|
2480
|
+
* Primary metric definition frozen with the analysis plan at start time.
|
|
2481
|
+
*/
|
|
2482
|
+
analysisMetricSnapshot?: unknown | null;
|
|
2483
|
+
/**
|
|
2484
|
+
* ISO-8601 timestamp when the analysis plan was locked at experiment start.
|
|
2485
|
+
*/
|
|
2486
|
+
analysisStartedAt?: string | null;
|
|
2012
2487
|
/**
|
|
2013
2488
|
* Optional human-readable hypothesis or summary. In GraphQL this is backed by the
|
|
2014
2489
|
* experiment hypothesis field.
|
|
@@ -2041,8 +2516,8 @@ export interface ExperimentWinnerResponse {
|
|
|
2041
2516
|
*/
|
|
2042
2517
|
stoppedAt?: string | null;
|
|
2043
2518
|
/**
|
|
2044
|
-
* Eligibility rules: URL-pattern globs,
|
|
2045
|
-
* visitor
|
|
2519
|
+
* Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
|
|
2520
|
+
* and runtime visitor-context or accumulated-property rules. Same shape as the
|
|
2046
2521
|
* create/patch input.
|
|
2047
2522
|
*/
|
|
2048
2523
|
targetingRules?: ExperimentWinnerResponse.TargetingRules | null;
|
|
@@ -2091,8 +2566,8 @@ export declare namespace ExperimentWinnerResponse {
|
|
|
2091
2566
|
}
|
|
2092
2567
|
}
|
|
2093
2568
|
/**
|
|
2094
|
-
* Eligibility rules: URL-pattern globs,
|
|
2095
|
-
* visitor
|
|
2569
|
+
* Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
|
|
2570
|
+
* and runtime visitor-context or accumulated-property rules. Same shape as the
|
|
2096
2571
|
* create/patch input.
|
|
2097
2572
|
*/
|
|
2098
2573
|
interface TargetingRules {
|
|
@@ -2112,7 +2587,10 @@ export declare namespace ExperimentWinnerResponse {
|
|
|
2112
2587
|
*/
|
|
2113
2588
|
urlPatterns: Array<string>;
|
|
2114
2589
|
/**
|
|
2115
|
-
*
|
|
2590
|
+
* Reserved audience identifier. It is stored with the experiment but is not
|
|
2591
|
+
* evaluated by the browser or server-side experiment runtime. Use
|
|
2592
|
+
* `visitorProperties`, URL patterns, query parameters, or visitor status for
|
|
2593
|
+
* runtime eligibility.
|
|
2116
2594
|
*/
|
|
2117
2595
|
audienceId?: string | null;
|
|
2118
2596
|
/**
|
|
@@ -2121,8 +2599,10 @@ export declare namespace ExperimentWinnerResponse {
|
|
|
2121
2599
|
*/
|
|
2122
2600
|
queryParams?: Array<TargetingRules.QueryParam> | null;
|
|
2123
2601
|
/**
|
|
2124
|
-
* Optional
|
|
2125
|
-
*
|
|
2602
|
+
* Optional runtime targeting rules. Recognized namespaced keys read visitor
|
|
2603
|
+
* context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
|
|
2604
|
+
* `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
|
|
2605
|
+
* accumulated personalization property.
|
|
2126
2606
|
*/
|
|
2127
2607
|
visitorProperties?: unknown | null;
|
|
2128
2608
|
/**
|
|
@@ -2193,6 +2673,19 @@ export declare namespace ExperimentPauseResponse {
|
|
|
2193
2673
|
* enrollment without deleting the experiment.
|
|
2194
2674
|
*/
|
|
2195
2675
|
trafficAllocation: number;
|
|
2676
|
+
/**
|
|
2677
|
+
* Normalized statistical analysis plan. Missing legacy rows resolve to Bayesian
|
|
2678
|
+
* analysis in GraphQL.
|
|
2679
|
+
*/
|
|
2680
|
+
analysisConfig?: unknown | null;
|
|
2681
|
+
/**
|
|
2682
|
+
* Primary metric definition frozen with the analysis plan at start time.
|
|
2683
|
+
*/
|
|
2684
|
+
analysisMetricSnapshot?: unknown | null;
|
|
2685
|
+
/**
|
|
2686
|
+
* ISO-8601 timestamp when the analysis plan was locked at experiment start.
|
|
2687
|
+
*/
|
|
2688
|
+
analysisStartedAt?: string | null;
|
|
2196
2689
|
/**
|
|
2197
2690
|
* Optional human-readable hypothesis or summary. In GraphQL this is backed by the
|
|
2198
2691
|
* experiment hypothesis field.
|
|
@@ -2225,8 +2718,8 @@ export declare namespace ExperimentPauseResponse {
|
|
|
2225
2718
|
*/
|
|
2226
2719
|
stoppedAt?: string | null;
|
|
2227
2720
|
/**
|
|
2228
|
-
* Eligibility rules: URL-pattern globs,
|
|
2229
|
-
* visitor
|
|
2721
|
+
* Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
|
|
2722
|
+
* and runtime visitor-context or accumulated-property rules. Same shape as the
|
|
2230
2723
|
* create/patch input.
|
|
2231
2724
|
*/
|
|
2232
2725
|
targetingRules?: Experiment.TargetingRules | null;
|
|
@@ -2275,8 +2768,8 @@ export declare namespace ExperimentPauseResponse {
|
|
|
2275
2768
|
}
|
|
2276
2769
|
}
|
|
2277
2770
|
/**
|
|
2278
|
-
* Eligibility rules: URL-pattern globs,
|
|
2279
|
-
* visitor
|
|
2771
|
+
* Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
|
|
2772
|
+
* and runtime visitor-context or accumulated-property rules. Same shape as the
|
|
2280
2773
|
* create/patch input.
|
|
2281
2774
|
*/
|
|
2282
2775
|
interface TargetingRules {
|
|
@@ -2296,7 +2789,10 @@ export declare namespace ExperimentPauseResponse {
|
|
|
2296
2789
|
*/
|
|
2297
2790
|
urlPatterns: Array<string>;
|
|
2298
2791
|
/**
|
|
2299
|
-
*
|
|
2792
|
+
* Reserved audience identifier. It is stored with the experiment but is not
|
|
2793
|
+
* evaluated by the browser or server-side experiment runtime. Use
|
|
2794
|
+
* `visitorProperties`, URL patterns, query parameters, or visitor status for
|
|
2795
|
+
* runtime eligibility.
|
|
2300
2796
|
*/
|
|
2301
2797
|
audienceId?: string | null;
|
|
2302
2798
|
/**
|
|
@@ -2305,8 +2801,10 @@ export declare namespace ExperimentPauseResponse {
|
|
|
2305
2801
|
*/
|
|
2306
2802
|
queryParams?: Array<TargetingRules.QueryParam> | null;
|
|
2307
2803
|
/**
|
|
2308
|
-
* Optional
|
|
2309
|
-
*
|
|
2804
|
+
* Optional runtime targeting rules. Recognized namespaced keys read visitor
|
|
2805
|
+
* context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
|
|
2806
|
+
* `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
|
|
2807
|
+
* accumulated personalization property.
|
|
2310
2808
|
*/
|
|
2311
2809
|
visitorProperties?: unknown | null;
|
|
2312
2810
|
/**
|
|
@@ -2378,6 +2876,19 @@ export declare namespace ExperimentResumeResponse {
|
|
|
2378
2876
|
* enrollment without deleting the experiment.
|
|
2379
2877
|
*/
|
|
2380
2878
|
trafficAllocation: number;
|
|
2879
|
+
/**
|
|
2880
|
+
* Normalized statistical analysis plan. Missing legacy rows resolve to Bayesian
|
|
2881
|
+
* analysis in GraphQL.
|
|
2882
|
+
*/
|
|
2883
|
+
analysisConfig?: unknown | null;
|
|
2884
|
+
/**
|
|
2885
|
+
* Primary metric definition frozen with the analysis plan at start time.
|
|
2886
|
+
*/
|
|
2887
|
+
analysisMetricSnapshot?: unknown | null;
|
|
2888
|
+
/**
|
|
2889
|
+
* ISO-8601 timestamp when the analysis plan was locked at experiment start.
|
|
2890
|
+
*/
|
|
2891
|
+
analysisStartedAt?: string | null;
|
|
2381
2892
|
/**
|
|
2382
2893
|
* Optional human-readable hypothesis or summary. In GraphQL this is backed by the
|
|
2383
2894
|
* experiment hypothesis field.
|
|
@@ -2410,8 +2921,8 @@ export declare namespace ExperimentResumeResponse {
|
|
|
2410
2921
|
*/
|
|
2411
2922
|
stoppedAt?: string | null;
|
|
2412
2923
|
/**
|
|
2413
|
-
* Eligibility rules: URL-pattern globs,
|
|
2414
|
-
* visitor
|
|
2924
|
+
* Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
|
|
2925
|
+
* and runtime visitor-context or accumulated-property rules. Same shape as the
|
|
2415
2926
|
* create/patch input.
|
|
2416
2927
|
*/
|
|
2417
2928
|
targetingRules?: Experiment.TargetingRules | null;
|
|
@@ -2460,8 +2971,8 @@ export declare namespace ExperimentResumeResponse {
|
|
|
2460
2971
|
}
|
|
2461
2972
|
}
|
|
2462
2973
|
/**
|
|
2463
|
-
* Eligibility rules: URL-pattern globs,
|
|
2464
|
-
* visitor
|
|
2974
|
+
* Eligibility rules: URL-pattern globs, query-param conditions, visitor status,
|
|
2975
|
+
* and runtime visitor-context or accumulated-property rules. Same shape as the
|
|
2465
2976
|
* create/patch input.
|
|
2466
2977
|
*/
|
|
2467
2978
|
interface TargetingRules {
|
|
@@ -2481,7 +2992,10 @@ export declare namespace ExperimentResumeResponse {
|
|
|
2481
2992
|
*/
|
|
2482
2993
|
urlPatterns: Array<string>;
|
|
2483
2994
|
/**
|
|
2484
|
-
*
|
|
2995
|
+
* Reserved audience identifier. It is stored with the experiment but is not
|
|
2996
|
+
* evaluated by the browser or server-side experiment runtime. Use
|
|
2997
|
+
* `visitorProperties`, URL patterns, query parameters, or visitor status for
|
|
2998
|
+
* runtime eligibility.
|
|
2485
2999
|
*/
|
|
2486
3000
|
audienceId?: string | null;
|
|
2487
3001
|
/**
|
|
@@ -2490,8 +3004,10 @@ export declare namespace ExperimentResumeResponse {
|
|
|
2490
3004
|
*/
|
|
2491
3005
|
queryParams?: Array<TargetingRules.QueryParam> | null;
|
|
2492
3006
|
/**
|
|
2493
|
-
* Optional
|
|
2494
|
-
*
|
|
3007
|
+
* Optional runtime targeting rules. Recognized namespaced keys read visitor
|
|
3008
|
+
* context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
|
|
3009
|
+
* `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
|
|
3010
|
+
* accumulated personalization property.
|
|
2495
3011
|
*/
|
|
2496
3012
|
visitorProperties?: unknown | null;
|
|
2497
3013
|
/**
|
|
@@ -2562,6 +3078,39 @@ export declare namespace ExperimentResultsResponse {
|
|
|
2562
3078
|
probabilityToBeBest: number;
|
|
2563
3079
|
}
|
|
2564
3080
|
}
|
|
3081
|
+
export interface ExperimentAnalysisResponse {
|
|
3082
|
+
analysisCutoffAt: string;
|
|
3083
|
+
analysisState: 'ANALYSIS_UNAVAILABLE' | 'COLLECTING_DATA' | 'FINALIZING_OUTCOMES' | 'INCONCLUSIVE_STOPPED_EARLY' | 'READY';
|
|
3084
|
+
dataQuality: ExperimentAnalysisResponse.DataQuality;
|
|
3085
|
+
exploratory: boolean;
|
|
3086
|
+
exposureCutoffAt: string;
|
|
3087
|
+
method: 'BAYESIAN' | 'FREQUENTIST' | 'SEQUENTIAL';
|
|
3088
|
+
metricType: 'conversion' | 'value';
|
|
3089
|
+
variants: Array<ExperimentAnalysisResponse.Variant>;
|
|
3090
|
+
bayesian?: unknown | null;
|
|
3091
|
+
evidenceState?: 'EVIDENCE_OF_HARM' | 'EVIDENCE_OF_IMPROVEMENT' | 'NO_CONCLUSION' | null;
|
|
3092
|
+
frequentist?: unknown | null;
|
|
3093
|
+
sequential?: unknown | null;
|
|
3094
|
+
}
|
|
3095
|
+
export declare namespace ExperimentAnalysisResponse {
|
|
3096
|
+
interface DataQuality {
|
|
3097
|
+
crossoverVisitors: number;
|
|
3098
|
+
missingVisitorIdImpressions: number;
|
|
3099
|
+
sampleRatioMismatch: 'FAIL' | 'NOT_EVALUATED' | 'PASS';
|
|
3100
|
+
sampleRatioMismatchPValue?: number | null;
|
|
3101
|
+
}
|
|
3102
|
+
interface Variant {
|
|
3103
|
+
id: string;
|
|
3104
|
+
conversionRate: number;
|
|
3105
|
+
conversions: number;
|
|
3106
|
+
impressions: number;
|
|
3107
|
+
isControl: boolean;
|
|
3108
|
+
name: string;
|
|
3109
|
+
observedVisitors: number;
|
|
3110
|
+
visitors: number;
|
|
3111
|
+
meanValue?: number | null;
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
2565
3114
|
export interface ExperimentResultsTimeSeriesResponse {
|
|
2566
3115
|
/**
|
|
2567
3116
|
* Per-day metrics for each variant. Days with no impression rows are omitted from
|
|
@@ -2664,6 +3213,11 @@ export interface ExperimentCreateParams {
|
|
|
2664
3213
|
* Short experiment name.
|
|
2665
3214
|
*/
|
|
2666
3215
|
name: string;
|
|
3216
|
+
/**
|
|
3217
|
+
* Optional draft analysis method. Server-owned statistical constants are
|
|
3218
|
+
* normalized before storage.
|
|
3219
|
+
*/
|
|
3220
|
+
analysisConfig?: unknown | null;
|
|
2667
3221
|
/**
|
|
2668
3222
|
* Weight of the auto-created control variant, as a percentage (1–100). Defaults to
|
|
2669
3223
|
* 100 (a new experiment is all control until treatments are added). The control
|
|
@@ -2688,13 +3242,13 @@ export interface ExperimentCreateParams {
|
|
|
2688
3242
|
key?: string | null;
|
|
2689
3243
|
/**
|
|
2690
3244
|
* Goal events. If you send `metrics.primary`, `metrics.primary.eventName` must be
|
|
2691
|
-
* a non-blank string. A primary event
|
|
2692
|
-
*
|
|
3245
|
+
* a non-blank string. A primary event is required to start `ab` and `multivariate`
|
|
3246
|
+
* experiments, but not always-on `personalization`.
|
|
2693
3247
|
*/
|
|
2694
3248
|
metrics?: ExperimentCreateParams.Metrics | null;
|
|
2695
3249
|
/**
|
|
2696
|
-
* Eligibility rules — URL patterns,
|
|
2697
|
-
*
|
|
3250
|
+
* Eligibility rules — URL patterns, query-param conditions, visitor status, and
|
|
3251
|
+
* visitor-context or accumulated-property rules. Omit to inherit defaults.
|
|
2698
3252
|
*/
|
|
2699
3253
|
targetingRules?: ExperimentCreateParams.TargetingRules | null;
|
|
2700
3254
|
/**
|
|
@@ -2711,8 +3265,8 @@ export interface ExperimentCreateParams {
|
|
|
2711
3265
|
export declare namespace ExperimentCreateParams {
|
|
2712
3266
|
/**
|
|
2713
3267
|
* Goal events. If you send `metrics.primary`, `metrics.primary.eventName` must be
|
|
2714
|
-
* a non-blank string. A primary event
|
|
2715
|
-
*
|
|
3268
|
+
* a non-blank string. A primary event is required to start `ab` and `multivariate`
|
|
3269
|
+
* experiments, but not always-on `personalization`.
|
|
2716
3270
|
*/
|
|
2717
3271
|
interface Metrics {
|
|
2718
3272
|
/**
|
|
@@ -2752,8 +3306,8 @@ export declare namespace ExperimentCreateParams {
|
|
|
2752
3306
|
}
|
|
2753
3307
|
}
|
|
2754
3308
|
/**
|
|
2755
|
-
* Eligibility rules — URL patterns,
|
|
2756
|
-
*
|
|
3309
|
+
* Eligibility rules — URL patterns, query-param conditions, visitor status, and
|
|
3310
|
+
* visitor-context or accumulated-property rules. Omit to inherit defaults.
|
|
2757
3311
|
*/
|
|
2758
3312
|
interface TargetingRules {
|
|
2759
3313
|
/**
|
|
@@ -2772,7 +3326,10 @@ export declare namespace ExperimentCreateParams {
|
|
|
2772
3326
|
*/
|
|
2773
3327
|
urlPatterns: Array<string>;
|
|
2774
3328
|
/**
|
|
2775
|
-
*
|
|
3329
|
+
* Reserved audience identifier. It is stored with the experiment but is not
|
|
3330
|
+
* evaluated by the browser or server-side experiment runtime. Use
|
|
3331
|
+
* `visitorProperties`, URL patterns, query parameters, or visitor status for
|
|
3332
|
+
* runtime eligibility.
|
|
2776
3333
|
*/
|
|
2777
3334
|
audienceId?: string | null;
|
|
2778
3335
|
/**
|
|
@@ -2781,8 +3338,10 @@ export declare namespace ExperimentCreateParams {
|
|
|
2781
3338
|
*/
|
|
2782
3339
|
queryParams?: Array<TargetingRules.QueryParam> | null;
|
|
2783
3340
|
/**
|
|
2784
|
-
* Optional
|
|
2785
|
-
*
|
|
3341
|
+
* Optional runtime targeting rules. Recognized namespaced keys read visitor
|
|
3342
|
+
* context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
|
|
3343
|
+
* `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
|
|
3344
|
+
* accumulated personalization property.
|
|
2786
3345
|
*/
|
|
2787
3346
|
visitorProperties?: unknown | null;
|
|
2788
3347
|
/**
|
|
@@ -2810,6 +3369,10 @@ export declare namespace ExperimentCreateParams {
|
|
|
2810
3369
|
}
|
|
2811
3370
|
}
|
|
2812
3371
|
export interface ExperimentUpdateParams {
|
|
3372
|
+
/**
|
|
3373
|
+
* Updated draft analysis method. This field is locked once an experiment starts.
|
|
3374
|
+
*/
|
|
3375
|
+
analysisConfig?: unknown | null;
|
|
2813
3376
|
/**
|
|
2814
3377
|
* Updated experiment hypothesis or operator note.
|
|
2815
3378
|
*/
|
|
@@ -2908,7 +3471,10 @@ export declare namespace ExperimentUpdateParams {
|
|
|
2908
3471
|
*/
|
|
2909
3472
|
urlPatterns: Array<string>;
|
|
2910
3473
|
/**
|
|
2911
|
-
*
|
|
3474
|
+
* Reserved audience identifier. It is stored with the experiment but is not
|
|
3475
|
+
* evaluated by the browser or server-side experiment runtime. Use
|
|
3476
|
+
* `visitorProperties`, URL patterns, query parameters, or visitor status for
|
|
3477
|
+
* runtime eligibility.
|
|
2912
3478
|
*/
|
|
2913
3479
|
audienceId?: string | null;
|
|
2914
3480
|
/**
|
|
@@ -2917,8 +3483,10 @@ export declare namespace ExperimentUpdateParams {
|
|
|
2917
3483
|
*/
|
|
2918
3484
|
queryParams?: Array<TargetingRules.QueryParam> | null;
|
|
2919
3485
|
/**
|
|
2920
|
-
* Optional
|
|
2921
|
-
*
|
|
3486
|
+
* Optional runtime targeting rules. Recognized namespaced keys read visitor
|
|
3487
|
+
* context (`geo.*`, `utm.*`, `initial_utm.*`, `device.*`, `time.*`,
|
|
3488
|
+
* `query_params.*`, `visitor_status`, and `referrer`); any other bare key reads an
|
|
3489
|
+
* accumulated personalization property.
|
|
2922
3490
|
*/
|
|
2923
3491
|
visitorProperties?: unknown | null;
|
|
2924
3492
|
/**
|
|
@@ -3013,6 +3581,13 @@ export interface ExperimentResultsParams {
|
|
|
3013
3581
|
*/
|
|
3014
3582
|
eventName?: string;
|
|
3015
3583
|
}
|
|
3584
|
+
export interface ExperimentAnalysisParams {
|
|
3585
|
+
/**
|
|
3586
|
+
* Optional override for the conversion event name. When omitted, the experiment
|
|
3587
|
+
* primary metric event is used.
|
|
3588
|
+
*/
|
|
3589
|
+
eventName?: string;
|
|
3590
|
+
}
|
|
3016
3591
|
export interface ExperimentResultsTimeSeriesParams {
|
|
3017
3592
|
/**
|
|
3018
3593
|
* Inclusive upper bound of the response window, as a UTC calendar day in
|
|
@@ -3051,6 +3626,6 @@ export interface ExperimentSessionReplaysParams {
|
|
|
3051
3626
|
variant_id?: string;
|
|
3052
3627
|
}
|
|
3053
3628
|
export declare namespace Experiments {
|
|
3054
|
-
export { type ExperimentListResponse as ExperimentListResponse, type ExperimentCreateResponse as ExperimentCreateResponse, type ExperimentRetrieveResponse as ExperimentRetrieveResponse, type ExperimentUpdateResponse as ExperimentUpdateResponse, type ExperimentDeleteResponse as ExperimentDeleteResponse, type ExperimentStartResponse as ExperimentStartResponse, type ExperimentStopResponse as ExperimentStopResponse, type ExperimentRolloutResponse as ExperimentRolloutResponse, type ExperimentEndRolloutResponse as ExperimentEndRolloutResponse, type ExperimentWinnerResponse as ExperimentWinnerResponse, type ExperimentPauseResponse as ExperimentPauseResponse, type ExperimentResumeResponse as ExperimentResumeResponse, type ExperimentResultsResponse as ExperimentResultsResponse, type ExperimentResultsTimeSeriesResponse as ExperimentResultsTimeSeriesResponse, type ExperimentSessionReplaysResponse as ExperimentSessionReplaysResponse, type ExperimentListResponsesCursor as ExperimentListResponsesCursor, type ExperimentListParams as ExperimentListParams, type ExperimentCreateParams as ExperimentCreateParams, type ExperimentUpdateParams as ExperimentUpdateParams, type ExperimentStartParams as ExperimentStartParams, type ExperimentStopParams as ExperimentStopParams, type ExperimentRolloutParams as ExperimentRolloutParams, type ExperimentWinnerParams as ExperimentWinnerParams, type ExperimentPauseParams as ExperimentPauseParams, type ExperimentResumeParams as ExperimentResumeParams, type ExperimentResultsParams as ExperimentResultsParams, type ExperimentResultsTimeSeriesParams as ExperimentResultsTimeSeriesParams, type ExperimentSessionReplaysParams as ExperimentSessionReplaysParams, };
|
|
3629
|
+
export { type ExperimentListResponse as ExperimentListResponse, type ExperimentCreateResponse as ExperimentCreateResponse, type ExperimentRetrieveResponse as ExperimentRetrieveResponse, type ExperimentUpdateResponse as ExperimentUpdateResponse, type ExperimentDeleteResponse as ExperimentDeleteResponse, type ExperimentDuplicateResponse as ExperimentDuplicateResponse, type ExperimentStartResponse as ExperimentStartResponse, type ExperimentStopResponse as ExperimentStopResponse, type ExperimentRolloutResponse as ExperimentRolloutResponse, type ExperimentEndRolloutResponse as ExperimentEndRolloutResponse, type ExperimentWinnerResponse as ExperimentWinnerResponse, type ExperimentPauseResponse as ExperimentPauseResponse, type ExperimentResumeResponse as ExperimentResumeResponse, type ExperimentResultsResponse as ExperimentResultsResponse, type ExperimentAnalysisResponse as ExperimentAnalysisResponse, type ExperimentResultsTimeSeriesResponse as ExperimentResultsTimeSeriesResponse, type ExperimentSessionReplaysResponse as ExperimentSessionReplaysResponse, type ExperimentListResponsesCursor as ExperimentListResponsesCursor, type ExperimentListParams as ExperimentListParams, type ExperimentCreateParams as ExperimentCreateParams, type ExperimentUpdateParams as ExperimentUpdateParams, type ExperimentStartParams as ExperimentStartParams, type ExperimentStopParams as ExperimentStopParams, type ExperimentRolloutParams as ExperimentRolloutParams, type ExperimentWinnerParams as ExperimentWinnerParams, type ExperimentPauseParams as ExperimentPauseParams, type ExperimentResumeParams as ExperimentResumeParams, type ExperimentResultsParams as ExperimentResultsParams, type ExperimentAnalysisParams as ExperimentAnalysisParams, type ExperimentResultsTimeSeriesParams as ExperimentResultsTimeSeriesParams, type ExperimentSessionReplaysParams as ExperimentSessionReplaysParams, };
|
|
3055
3630
|
}
|
|
3056
3631
|
//# sourceMappingURL=experiments.d.ts.map
|