@oursprivacy/platform-sdk 1.50.0 → 1.52.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 +10 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -4
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/analytics.d.mts +2 -2
- package/resources/analytics.d.ts +2 -2
- package/resources/analytics.js +2 -2
- package/resources/analytics.mjs +2 -2
- package/resources/destinations.d.mts +7 -7
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +7 -7
- package/resources/destinations.d.ts.map +1 -1
- package/resources/experiments.d.mts +661 -35
- package/resources/experiments.d.mts.map +1 -1
- package/resources/experiments.d.ts +661 -35
- package/resources/experiments.d.ts.map +1 -1
- package/resources/experiments.js +27 -19
- package/resources/experiments.js.map +1 -1
- package/resources/experiments.mjs +27 -19
- package/resources/experiments.mjs.map +1 -1
- package/resources/index.d.mts +4 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/journey-flows.d.mts +4155 -0
- package/resources/journey-flows.d.mts.map +1 -0
- package/resources/journey-flows.d.ts +4155 -0
- package/resources/journey-flows.d.ts.map +1 -0
- package/resources/journey-flows.js +90 -0
- package/resources/journey-flows.js.map +1 -0
- package/resources/journey-flows.mjs +86 -0
- package/resources/journey-flows.mjs.map +1 -0
- package/resources/short-links.d.mts +40 -0
- package/resources/short-links.d.mts.map +1 -1
- package/resources/short-links.d.ts +40 -0
- package/resources/short-links.d.ts.map +1 -1
- package/resources/sources.d.mts +20 -0
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +20 -0
- package/resources/sources.d.ts.map +1 -1
- package/resources/test-events.d.mts +540 -0
- package/resources/test-events.d.mts.map +1 -0
- package/resources/test-events.d.ts +540 -0
- package/resources/test-events.d.ts.map +1 -0
- package/resources/test-events.js +88 -0
- package/resources/test-events.js.map +1 -0
- package/resources/test-events.mjs +84 -0
- package/resources/test-events.mjs.map +1 -0
- package/resources/video-channels.d.mts +13 -0
- package/resources/video-channels.d.mts.map +1 -1
- package/resources/video-channels.d.ts +13 -0
- package/resources/video-channels.d.ts.map +1 -1
- package/resources/videos.d.mts +160 -2
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts +160 -2
- package/resources/videos.d.ts.map +1 -1
- package/resources/videos.js +32 -2
- package/resources/videos.js.map +1 -1
- package/resources/videos.mjs +32 -2
- package/resources/videos.mjs.map +1 -1
- package/resources/web-analytics.d.mts +9 -9
- package/resources/web-analytics.d.mts.map +1 -1
- package/resources/web-analytics.d.ts +9 -9
- package/resources/web-analytics.d.ts.map +1 -1
- package/resources/web-analytics.js +2 -2
- package/resources/web-analytics.js.map +1 -1
- package/resources/web-analytics.mjs +2 -2
- package/resources/web-analytics.mjs.map +1 -1
- package/resources/web-scanners.d.mts +28 -17
- package/resources/web-scanners.d.mts.map +1 -1
- package/resources/web-scanners.d.ts +28 -17
- package/resources/web-scanners.d.ts.map +1 -1
- package/resources/web-scanners.js +19 -14
- package/resources/web-scanners.js.map +1 -1
- package/resources/web-scanners.mjs +19 -14
- package/resources/web-scanners.mjs.map +1 -1
- package/src/client.ts +80 -4
- package/src/resources/analytics.ts +2 -2
- package/src/resources/destinations.ts +7 -0
- package/src/resources/experiments.ts +808 -35
- package/src/resources/index.ts +37 -2
- package/src/resources/journey-flows.ts +8244 -0
- package/src/resources/short-links.ts +47 -0
- package/src/resources/sources.ts +24 -0
- package/src/resources/test-events.ts +701 -0
- package/src/resources/video-channels.ts +22 -0
- package/src/resources/videos.ts +279 -2
- package/src/resources/web-analytics.ts +13 -13
- package/src/resources/web-scanners.ts +28 -17
- 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
|
@@ -9,11 +9,11 @@ import { path } from '../internal/utils/path';
|
|
|
9
9
|
export class Experiments extends APIResource {
|
|
10
10
|
/**
|
|
11
11
|
* List experiments for this account. Each experiment includes its full `variants`
|
|
12
|
-
* array
|
|
13
|
-
* a
|
|
14
|
-
* filtering by `status`, `type`,
|
|
15
|
-
* id, name, and description.
|
|
16
|
-
* experiment:list
|
|
12
|
+
* array and complete primary and secondary metric definitions with any filtered
|
|
13
|
+
* event matchers, so a single paginated call returns a complete client-side
|
|
14
|
+
* experiment config. Supports cursor pagination and filtering by `status`, `type`,
|
|
15
|
+
* and free-text `search` matched against experiment id, name, and description.
|
|
16
|
+
* Combine filters with AND semantics. Requires scope: experiment:list
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* ```ts
|
|
@@ -50,7 +50,9 @@ export class Experiments extends APIResource {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Retrieve one experiment with its variants, lifecycle state, and complete primary
|
|
54
|
+
* and secondary metric definitions, including any filtered event matchers.
|
|
55
|
+
* Requires scope: experiment:find
|
|
54
56
|
*
|
|
55
57
|
* @example
|
|
56
58
|
* ```ts
|
|
@@ -63,9 +65,12 @@ export class Experiments extends APIResource {
|
|
|
63
65
|
|
|
64
66
|
/**
|
|
65
67
|
* Partially update an experiment. Only the fields you send are changed, except
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
68
|
+
* `targetingRules` and `metrics`, which are full nested replacements. Preserve
|
|
69
|
+
* every filtered matcher and condition returned by GET or the request returns
|
|
70
|
+
* `FILTERED_EXPERIMENT_METRIC_REQUIRES_FULL_REPLACEMENT`. Renaming a non-draft
|
|
71
|
+
* legacy experiment with no stored key preserves its current name-derived key.
|
|
72
|
+
* Edits are allowed on draft, running, and paused experiments and are recorded in
|
|
73
|
+
* the change log. Only completed experiments return 409 with
|
|
69
74
|
* `A completed experiment can no longer be edited`. Use the lifecycle endpoints
|
|
70
75
|
* (`/start`, `/pause`, `/resume`, `/stop`) to change status. Requires scope:
|
|
71
76
|
* experiment:update
|
|
@@ -243,8 +248,9 @@ export class Experiments extends APIResource {
|
|
|
243
248
|
|
|
244
249
|
/**
|
|
245
250
|
* Aggregate per-variant impressions, conversions, conversion rate, and Bayesian
|
|
246
|
-
* probability-to-be-best across the experiment runtime window.
|
|
247
|
-
*
|
|
251
|
+
* probability-to-be-best across the experiment runtime window. Select a saved goal
|
|
252
|
+
* with `goalId`; `eventName` remains available as a legacy selector. Requires
|
|
253
|
+
* scope: experiment:find
|
|
248
254
|
*
|
|
249
255
|
* @example
|
|
250
256
|
* ```ts
|
|
@@ -265,8 +271,9 @@ export class Experiments extends APIResource {
|
|
|
265
271
|
* metrics. The response includes common visitor, impression, readiness, evidence,
|
|
266
272
|
* and data-quality fields plus the applicable method-specific result block.
|
|
267
273
|
* Visitors are the inferential unit; impressions remain a delivery diagnostic.
|
|
268
|
-
*
|
|
269
|
-
*
|
|
274
|
+
* Select a saved goal with `goalId`; `eventName` remains available as a legacy
|
|
275
|
+
* selector. Secondary event overrides are labeled exploratory, and unsupported
|
|
276
|
+
* legacy plans suppress official evidence. Requires scope: experiment:find
|
|
270
277
|
*
|
|
271
278
|
* @example
|
|
272
279
|
* ```ts
|
|
@@ -284,12 +291,13 @@ export class Experiments extends APIResource {
|
|
|
284
291
|
/**
|
|
285
292
|
* Per-day per-variant impressions, conversions, and conversion rate, sliced to a
|
|
286
293
|
* date range. Use this to chart trends, compare windows, or zoom in on a specific
|
|
287
|
-
* period. Pass `
|
|
288
|
-
*
|
|
289
|
-
*
|
|
290
|
-
*
|
|
291
|
-
*
|
|
292
|
-
*
|
|
294
|
+
* period. Pass `goalId` to select a saved goal; `eventName` remains available as a
|
|
295
|
+
* legacy selector. Pass `startDate` / `endDate` (`YYYY-MM-DD`, UTC, both
|
|
296
|
+
* inclusive) to set the window; both default to the full experiment runtime when
|
|
297
|
+
* omitted, so the no-arg call returns every day from start to today (or to
|
|
298
|
+
* `stoppedAt` for completed experiments). The response orders days oldest-first
|
|
299
|
+
* and omits days with no impressions, so an empty `days` array means there was no
|
|
300
|
+
* measured traffic in the window. Requires scope: experiment:find
|
|
293
301
|
*
|
|
294
302
|
* @example
|
|
295
303
|
* ```ts
|
|
@@ -584,6 +592,17 @@ export namespace ExperimentListResponse {
|
|
|
584
592
|
|
|
585
593
|
export namespace Metrics {
|
|
586
594
|
export interface Secondary {
|
|
595
|
+
/**
|
|
596
|
+
* Stable identifier for selecting this saved goal in experiment results queries.
|
|
597
|
+
*/
|
|
598
|
+
goalId: string;
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Complete OR-list of event matchers. Each matcher is an event name plus an
|
|
602
|
+
* optional analytics filter.
|
|
603
|
+
*/
|
|
604
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
605
|
+
|
|
587
606
|
/**
|
|
588
607
|
* Name of the event used to measure success for this metric.
|
|
589
608
|
*/
|
|
@@ -594,6 +613,41 @@ export namespace ExperimentListResponse {
|
|
|
594
613
|
* definition.
|
|
595
614
|
*/
|
|
596
615
|
funnelId?: string | null;
|
|
616
|
+
|
|
617
|
+
valueMode?: boolean | null;
|
|
618
|
+
|
|
619
|
+
winsorize?: boolean | null;
|
|
620
|
+
|
|
621
|
+
winsorizePercentile?: number | null;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
export namespace Secondary {
|
|
625
|
+
export interface EventMatcher {
|
|
626
|
+
/**
|
|
627
|
+
* Event name required by this OR branch.
|
|
628
|
+
*/
|
|
629
|
+
eventName: string;
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
633
|
+
*/
|
|
634
|
+
filter?: EventMatcher.Filter;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
export namespace EventMatcher {
|
|
638
|
+
/**
|
|
639
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
640
|
+
*/
|
|
641
|
+
export interface Filter {
|
|
642
|
+
/**
|
|
643
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
644
|
+
* supported properties and operators.
|
|
645
|
+
*/
|
|
646
|
+
filter: unknown;
|
|
647
|
+
|
|
648
|
+
version: 1;
|
|
649
|
+
}
|
|
650
|
+
}
|
|
597
651
|
}
|
|
598
652
|
}
|
|
599
653
|
|
|
@@ -921,6 +975,17 @@ export namespace ExperimentCreateResponse {
|
|
|
921
975
|
|
|
922
976
|
export namespace Metrics {
|
|
923
977
|
export interface Secondary {
|
|
978
|
+
/**
|
|
979
|
+
* Stable identifier for selecting this saved goal in experiment results queries.
|
|
980
|
+
*/
|
|
981
|
+
goalId: string;
|
|
982
|
+
|
|
983
|
+
/**
|
|
984
|
+
* Complete OR-list of event matchers. Each matcher is an event name plus an
|
|
985
|
+
* optional analytics filter.
|
|
986
|
+
*/
|
|
987
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
988
|
+
|
|
924
989
|
/**
|
|
925
990
|
* Name of the event used to measure success for this metric.
|
|
926
991
|
*/
|
|
@@ -931,6 +996,41 @@ export namespace ExperimentCreateResponse {
|
|
|
931
996
|
* definition.
|
|
932
997
|
*/
|
|
933
998
|
funnelId?: string | null;
|
|
999
|
+
|
|
1000
|
+
valueMode?: boolean | null;
|
|
1001
|
+
|
|
1002
|
+
winsorize?: boolean | null;
|
|
1003
|
+
|
|
1004
|
+
winsorizePercentile?: number | null;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
export namespace Secondary {
|
|
1008
|
+
export interface EventMatcher {
|
|
1009
|
+
/**
|
|
1010
|
+
* Event name required by this OR branch.
|
|
1011
|
+
*/
|
|
1012
|
+
eventName: string;
|
|
1013
|
+
|
|
1014
|
+
/**
|
|
1015
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
1016
|
+
*/
|
|
1017
|
+
filter?: EventMatcher.Filter;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
export namespace EventMatcher {
|
|
1021
|
+
/**
|
|
1022
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
1023
|
+
*/
|
|
1024
|
+
export interface Filter {
|
|
1025
|
+
/**
|
|
1026
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
1027
|
+
* supported properties and operators.
|
|
1028
|
+
*/
|
|
1029
|
+
filter: unknown;
|
|
1030
|
+
|
|
1031
|
+
version: 1;
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
934
1034
|
}
|
|
935
1035
|
}
|
|
936
1036
|
|
|
@@ -1258,6 +1358,17 @@ export namespace ExperimentRetrieveResponse {
|
|
|
1258
1358
|
|
|
1259
1359
|
export namespace Metrics {
|
|
1260
1360
|
export interface Secondary {
|
|
1361
|
+
/**
|
|
1362
|
+
* Stable identifier for selecting this saved goal in experiment results queries.
|
|
1363
|
+
*/
|
|
1364
|
+
goalId: string;
|
|
1365
|
+
|
|
1366
|
+
/**
|
|
1367
|
+
* Complete OR-list of event matchers. Each matcher is an event name plus an
|
|
1368
|
+
* optional analytics filter.
|
|
1369
|
+
*/
|
|
1370
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
1371
|
+
|
|
1261
1372
|
/**
|
|
1262
1373
|
* Name of the event used to measure success for this metric.
|
|
1263
1374
|
*/
|
|
@@ -1268,6 +1379,41 @@ export namespace ExperimentRetrieveResponse {
|
|
|
1268
1379
|
* definition.
|
|
1269
1380
|
*/
|
|
1270
1381
|
funnelId?: string | null;
|
|
1382
|
+
|
|
1383
|
+
valueMode?: boolean | null;
|
|
1384
|
+
|
|
1385
|
+
winsorize?: boolean | null;
|
|
1386
|
+
|
|
1387
|
+
winsorizePercentile?: number | null;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
export namespace Secondary {
|
|
1391
|
+
export interface EventMatcher {
|
|
1392
|
+
/**
|
|
1393
|
+
* Event name required by this OR branch.
|
|
1394
|
+
*/
|
|
1395
|
+
eventName: string;
|
|
1396
|
+
|
|
1397
|
+
/**
|
|
1398
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
1399
|
+
*/
|
|
1400
|
+
filter?: EventMatcher.Filter;
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
export namespace EventMatcher {
|
|
1404
|
+
/**
|
|
1405
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
1406
|
+
*/
|
|
1407
|
+
export interface Filter {
|
|
1408
|
+
/**
|
|
1409
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
1410
|
+
* supported properties and operators.
|
|
1411
|
+
*/
|
|
1412
|
+
filter: unknown;
|
|
1413
|
+
|
|
1414
|
+
version: 1;
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1271
1417
|
}
|
|
1272
1418
|
}
|
|
1273
1419
|
|
|
@@ -1595,6 +1741,17 @@ export namespace ExperimentUpdateResponse {
|
|
|
1595
1741
|
|
|
1596
1742
|
export namespace Metrics {
|
|
1597
1743
|
export interface Secondary {
|
|
1744
|
+
/**
|
|
1745
|
+
* Stable identifier for selecting this saved goal in experiment results queries.
|
|
1746
|
+
*/
|
|
1747
|
+
goalId: string;
|
|
1748
|
+
|
|
1749
|
+
/**
|
|
1750
|
+
* Complete OR-list of event matchers. Each matcher is an event name plus an
|
|
1751
|
+
* optional analytics filter.
|
|
1752
|
+
*/
|
|
1753
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
1754
|
+
|
|
1598
1755
|
/**
|
|
1599
1756
|
* Name of the event used to measure success for this metric.
|
|
1600
1757
|
*/
|
|
@@ -1605,6 +1762,41 @@ export namespace ExperimentUpdateResponse {
|
|
|
1605
1762
|
* definition.
|
|
1606
1763
|
*/
|
|
1607
1764
|
funnelId?: string | null;
|
|
1765
|
+
|
|
1766
|
+
valueMode?: boolean | null;
|
|
1767
|
+
|
|
1768
|
+
winsorize?: boolean | null;
|
|
1769
|
+
|
|
1770
|
+
winsorizePercentile?: number | null;
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
export namespace Secondary {
|
|
1774
|
+
export interface EventMatcher {
|
|
1775
|
+
/**
|
|
1776
|
+
* Event name required by this OR branch.
|
|
1777
|
+
*/
|
|
1778
|
+
eventName: string;
|
|
1779
|
+
|
|
1780
|
+
/**
|
|
1781
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
1782
|
+
*/
|
|
1783
|
+
filter?: EventMatcher.Filter;
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
export namespace EventMatcher {
|
|
1787
|
+
/**
|
|
1788
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
1789
|
+
*/
|
|
1790
|
+
export interface Filter {
|
|
1791
|
+
/**
|
|
1792
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
1793
|
+
* supported properties and operators.
|
|
1794
|
+
*/
|
|
1795
|
+
filter: unknown;
|
|
1796
|
+
|
|
1797
|
+
version: 1;
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1608
1800
|
}
|
|
1609
1801
|
}
|
|
1610
1802
|
|
|
@@ -1937,6 +2129,17 @@ export namespace ExperimentDuplicateResponse {
|
|
|
1937
2129
|
|
|
1938
2130
|
export namespace Metrics {
|
|
1939
2131
|
export interface Secondary {
|
|
2132
|
+
/**
|
|
2133
|
+
* Stable identifier for selecting this saved goal in experiment results queries.
|
|
2134
|
+
*/
|
|
2135
|
+
goalId: string;
|
|
2136
|
+
|
|
2137
|
+
/**
|
|
2138
|
+
* Complete OR-list of event matchers. Each matcher is an event name plus an
|
|
2139
|
+
* optional analytics filter.
|
|
2140
|
+
*/
|
|
2141
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
2142
|
+
|
|
1940
2143
|
/**
|
|
1941
2144
|
* Name of the event used to measure success for this metric.
|
|
1942
2145
|
*/
|
|
@@ -1947,6 +2150,41 @@ export namespace ExperimentDuplicateResponse {
|
|
|
1947
2150
|
* definition.
|
|
1948
2151
|
*/
|
|
1949
2152
|
funnelId?: string | null;
|
|
2153
|
+
|
|
2154
|
+
valueMode?: boolean | null;
|
|
2155
|
+
|
|
2156
|
+
winsorize?: boolean | null;
|
|
2157
|
+
|
|
2158
|
+
winsorizePercentile?: number | null;
|
|
2159
|
+
}
|
|
2160
|
+
|
|
2161
|
+
export namespace Secondary {
|
|
2162
|
+
export interface EventMatcher {
|
|
2163
|
+
/**
|
|
2164
|
+
* Event name required by this OR branch.
|
|
2165
|
+
*/
|
|
2166
|
+
eventName: string;
|
|
2167
|
+
|
|
2168
|
+
/**
|
|
2169
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
2170
|
+
*/
|
|
2171
|
+
filter?: EventMatcher.Filter;
|
|
2172
|
+
}
|
|
2173
|
+
|
|
2174
|
+
export namespace EventMatcher {
|
|
2175
|
+
/**
|
|
2176
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
2177
|
+
*/
|
|
2178
|
+
export interface Filter {
|
|
2179
|
+
/**
|
|
2180
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
2181
|
+
* supported properties and operators.
|
|
2182
|
+
*/
|
|
2183
|
+
filter: unknown;
|
|
2184
|
+
|
|
2185
|
+
version: 1;
|
|
2186
|
+
}
|
|
2187
|
+
}
|
|
1950
2188
|
}
|
|
1951
2189
|
}
|
|
1952
2190
|
|
|
@@ -2173,6 +2411,17 @@ export namespace ExperimentStartResponse {
|
|
|
2173
2411
|
|
|
2174
2412
|
export namespace Metrics {
|
|
2175
2413
|
export interface Secondary {
|
|
2414
|
+
/**
|
|
2415
|
+
* Stable identifier for selecting this saved goal in experiment results queries.
|
|
2416
|
+
*/
|
|
2417
|
+
goalId: string;
|
|
2418
|
+
|
|
2419
|
+
/**
|
|
2420
|
+
* Complete OR-list of event matchers. Each matcher is an event name plus an
|
|
2421
|
+
* optional analytics filter.
|
|
2422
|
+
*/
|
|
2423
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
2424
|
+
|
|
2176
2425
|
/**
|
|
2177
2426
|
* Name of the event used to measure success for this metric.
|
|
2178
2427
|
*/
|
|
@@ -2183,6 +2432,41 @@ export namespace ExperimentStartResponse {
|
|
|
2183
2432
|
* definition.
|
|
2184
2433
|
*/
|
|
2185
2434
|
funnelId?: string | null;
|
|
2435
|
+
|
|
2436
|
+
valueMode?: boolean | null;
|
|
2437
|
+
|
|
2438
|
+
winsorize?: boolean | null;
|
|
2439
|
+
|
|
2440
|
+
winsorizePercentile?: number | null;
|
|
2441
|
+
}
|
|
2442
|
+
|
|
2443
|
+
export namespace Secondary {
|
|
2444
|
+
export interface EventMatcher {
|
|
2445
|
+
/**
|
|
2446
|
+
* Event name required by this OR branch.
|
|
2447
|
+
*/
|
|
2448
|
+
eventName: string;
|
|
2449
|
+
|
|
2450
|
+
/**
|
|
2451
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
2452
|
+
*/
|
|
2453
|
+
filter?: EventMatcher.Filter;
|
|
2454
|
+
}
|
|
2455
|
+
|
|
2456
|
+
export namespace EventMatcher {
|
|
2457
|
+
/**
|
|
2458
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
2459
|
+
*/
|
|
2460
|
+
export interface Filter {
|
|
2461
|
+
/**
|
|
2462
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
2463
|
+
* supported properties and operators.
|
|
2464
|
+
*/
|
|
2465
|
+
filter: unknown;
|
|
2466
|
+
|
|
2467
|
+
version: 1;
|
|
2468
|
+
}
|
|
2469
|
+
}
|
|
2186
2470
|
}
|
|
2187
2471
|
}
|
|
2188
2472
|
|
|
@@ -2410,6 +2694,17 @@ export namespace ExperimentStopResponse {
|
|
|
2410
2694
|
|
|
2411
2695
|
export namespace Metrics {
|
|
2412
2696
|
export interface Secondary {
|
|
2697
|
+
/**
|
|
2698
|
+
* Stable identifier for selecting this saved goal in experiment results queries.
|
|
2699
|
+
*/
|
|
2700
|
+
goalId: string;
|
|
2701
|
+
|
|
2702
|
+
/**
|
|
2703
|
+
* Complete OR-list of event matchers. Each matcher is an event name plus an
|
|
2704
|
+
* optional analytics filter.
|
|
2705
|
+
*/
|
|
2706
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
2707
|
+
|
|
2413
2708
|
/**
|
|
2414
2709
|
* Name of the event used to measure success for this metric.
|
|
2415
2710
|
*/
|
|
@@ -2420,6 +2715,41 @@ export namespace ExperimentStopResponse {
|
|
|
2420
2715
|
* definition.
|
|
2421
2716
|
*/
|
|
2422
2717
|
funnelId?: string | null;
|
|
2718
|
+
|
|
2719
|
+
valueMode?: boolean | null;
|
|
2720
|
+
|
|
2721
|
+
winsorize?: boolean | null;
|
|
2722
|
+
|
|
2723
|
+
winsorizePercentile?: number | null;
|
|
2724
|
+
}
|
|
2725
|
+
|
|
2726
|
+
export namespace Secondary {
|
|
2727
|
+
export interface EventMatcher {
|
|
2728
|
+
/**
|
|
2729
|
+
* Event name required by this OR branch.
|
|
2730
|
+
*/
|
|
2731
|
+
eventName: string;
|
|
2732
|
+
|
|
2733
|
+
/**
|
|
2734
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
2735
|
+
*/
|
|
2736
|
+
filter?: EventMatcher.Filter;
|
|
2737
|
+
}
|
|
2738
|
+
|
|
2739
|
+
export namespace EventMatcher {
|
|
2740
|
+
/**
|
|
2741
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
2742
|
+
*/
|
|
2743
|
+
export interface Filter {
|
|
2744
|
+
/**
|
|
2745
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
2746
|
+
* supported properties and operators.
|
|
2747
|
+
*/
|
|
2748
|
+
filter: unknown;
|
|
2749
|
+
|
|
2750
|
+
version: 1;
|
|
2751
|
+
}
|
|
2752
|
+
}
|
|
2423
2753
|
}
|
|
2424
2754
|
}
|
|
2425
2755
|
|
|
@@ -2647,6 +2977,17 @@ export namespace ExperimentRolloutResponse {
|
|
|
2647
2977
|
|
|
2648
2978
|
export namespace Metrics {
|
|
2649
2979
|
export interface Secondary {
|
|
2980
|
+
/**
|
|
2981
|
+
* Stable identifier for selecting this saved goal in experiment results queries.
|
|
2982
|
+
*/
|
|
2983
|
+
goalId: string;
|
|
2984
|
+
|
|
2985
|
+
/**
|
|
2986
|
+
* Complete OR-list of event matchers. Each matcher is an event name plus an
|
|
2987
|
+
* optional analytics filter.
|
|
2988
|
+
*/
|
|
2989
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
2990
|
+
|
|
2650
2991
|
/**
|
|
2651
2992
|
* Name of the event used to measure success for this metric.
|
|
2652
2993
|
*/
|
|
@@ -2657,6 +2998,41 @@ export namespace ExperimentRolloutResponse {
|
|
|
2657
2998
|
* definition.
|
|
2658
2999
|
*/
|
|
2659
3000
|
funnelId?: string | null;
|
|
3001
|
+
|
|
3002
|
+
valueMode?: boolean | null;
|
|
3003
|
+
|
|
3004
|
+
winsorize?: boolean | null;
|
|
3005
|
+
|
|
3006
|
+
winsorizePercentile?: number | null;
|
|
3007
|
+
}
|
|
3008
|
+
|
|
3009
|
+
export namespace Secondary {
|
|
3010
|
+
export interface EventMatcher {
|
|
3011
|
+
/**
|
|
3012
|
+
* Event name required by this OR branch.
|
|
3013
|
+
*/
|
|
3014
|
+
eventName: string;
|
|
3015
|
+
|
|
3016
|
+
/**
|
|
3017
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
3018
|
+
*/
|
|
3019
|
+
filter?: EventMatcher.Filter;
|
|
3020
|
+
}
|
|
3021
|
+
|
|
3022
|
+
export namespace EventMatcher {
|
|
3023
|
+
/**
|
|
3024
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
3025
|
+
*/
|
|
3026
|
+
export interface Filter {
|
|
3027
|
+
/**
|
|
3028
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
3029
|
+
* supported properties and operators.
|
|
3030
|
+
*/
|
|
3031
|
+
filter: unknown;
|
|
3032
|
+
|
|
3033
|
+
version: 1;
|
|
3034
|
+
}
|
|
3035
|
+
}
|
|
2660
3036
|
}
|
|
2661
3037
|
}
|
|
2662
3038
|
|
|
@@ -2884,6 +3260,17 @@ export namespace ExperimentEndRolloutResponse {
|
|
|
2884
3260
|
|
|
2885
3261
|
export namespace Metrics {
|
|
2886
3262
|
export interface Secondary {
|
|
3263
|
+
/**
|
|
3264
|
+
* Stable identifier for selecting this saved goal in experiment results queries.
|
|
3265
|
+
*/
|
|
3266
|
+
goalId: string;
|
|
3267
|
+
|
|
3268
|
+
/**
|
|
3269
|
+
* Complete OR-list of event matchers. Each matcher is an event name plus an
|
|
3270
|
+
* optional analytics filter.
|
|
3271
|
+
*/
|
|
3272
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
3273
|
+
|
|
2887
3274
|
/**
|
|
2888
3275
|
* Name of the event used to measure success for this metric.
|
|
2889
3276
|
*/
|
|
@@ -2894,6 +3281,41 @@ export namespace ExperimentEndRolloutResponse {
|
|
|
2894
3281
|
* definition.
|
|
2895
3282
|
*/
|
|
2896
3283
|
funnelId?: string | null;
|
|
3284
|
+
|
|
3285
|
+
valueMode?: boolean | null;
|
|
3286
|
+
|
|
3287
|
+
winsorize?: boolean | null;
|
|
3288
|
+
|
|
3289
|
+
winsorizePercentile?: number | null;
|
|
3290
|
+
}
|
|
3291
|
+
|
|
3292
|
+
export namespace Secondary {
|
|
3293
|
+
export interface EventMatcher {
|
|
3294
|
+
/**
|
|
3295
|
+
* Event name required by this OR branch.
|
|
3296
|
+
*/
|
|
3297
|
+
eventName: string;
|
|
3298
|
+
|
|
3299
|
+
/**
|
|
3300
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
3301
|
+
*/
|
|
3302
|
+
filter?: EventMatcher.Filter;
|
|
3303
|
+
}
|
|
3304
|
+
|
|
3305
|
+
export namespace EventMatcher {
|
|
3306
|
+
/**
|
|
3307
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
3308
|
+
*/
|
|
3309
|
+
export interface Filter {
|
|
3310
|
+
/**
|
|
3311
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
3312
|
+
* supported properties and operators.
|
|
3313
|
+
*/
|
|
3314
|
+
filter: unknown;
|
|
3315
|
+
|
|
3316
|
+
version: 1;
|
|
3317
|
+
}
|
|
3318
|
+
}
|
|
2897
3319
|
}
|
|
2898
3320
|
}
|
|
2899
3321
|
|
|
@@ -3103,6 +3525,17 @@ export namespace ExperimentWinnerResponse {
|
|
|
3103
3525
|
|
|
3104
3526
|
export namespace Metrics {
|
|
3105
3527
|
export interface Secondary {
|
|
3528
|
+
/**
|
|
3529
|
+
* Stable identifier for selecting this saved goal in experiment results queries.
|
|
3530
|
+
*/
|
|
3531
|
+
goalId: string;
|
|
3532
|
+
|
|
3533
|
+
/**
|
|
3534
|
+
* Complete OR-list of event matchers. Each matcher is an event name plus an
|
|
3535
|
+
* optional analytics filter.
|
|
3536
|
+
*/
|
|
3537
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
3538
|
+
|
|
3106
3539
|
/**
|
|
3107
3540
|
* Name of the event used to measure success for this metric.
|
|
3108
3541
|
*/
|
|
@@ -3113,6 +3546,41 @@ export namespace ExperimentWinnerResponse {
|
|
|
3113
3546
|
* definition.
|
|
3114
3547
|
*/
|
|
3115
3548
|
funnelId?: string | null;
|
|
3549
|
+
|
|
3550
|
+
valueMode?: boolean | null;
|
|
3551
|
+
|
|
3552
|
+
winsorize?: boolean | null;
|
|
3553
|
+
|
|
3554
|
+
winsorizePercentile?: number | null;
|
|
3555
|
+
}
|
|
3556
|
+
|
|
3557
|
+
export namespace Secondary {
|
|
3558
|
+
export interface EventMatcher {
|
|
3559
|
+
/**
|
|
3560
|
+
* Event name required by this OR branch.
|
|
3561
|
+
*/
|
|
3562
|
+
eventName: string;
|
|
3563
|
+
|
|
3564
|
+
/**
|
|
3565
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
3566
|
+
*/
|
|
3567
|
+
filter?: EventMatcher.Filter;
|
|
3568
|
+
}
|
|
3569
|
+
|
|
3570
|
+
export namespace EventMatcher {
|
|
3571
|
+
/**
|
|
3572
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
3573
|
+
*/
|
|
3574
|
+
export interface Filter {
|
|
3575
|
+
/**
|
|
3576
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
3577
|
+
* supported properties and operators.
|
|
3578
|
+
*/
|
|
3579
|
+
filter: unknown;
|
|
3580
|
+
|
|
3581
|
+
version: 1;
|
|
3582
|
+
}
|
|
3583
|
+
}
|
|
3116
3584
|
}
|
|
3117
3585
|
}
|
|
3118
3586
|
|
|
@@ -3339,6 +3807,17 @@ export namespace ExperimentPauseResponse {
|
|
|
3339
3807
|
|
|
3340
3808
|
export namespace Metrics {
|
|
3341
3809
|
export interface Secondary {
|
|
3810
|
+
/**
|
|
3811
|
+
* Stable identifier for selecting this saved goal in experiment results queries.
|
|
3812
|
+
*/
|
|
3813
|
+
goalId: string;
|
|
3814
|
+
|
|
3815
|
+
/**
|
|
3816
|
+
* Complete OR-list of event matchers. Each matcher is an event name plus an
|
|
3817
|
+
* optional analytics filter.
|
|
3818
|
+
*/
|
|
3819
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
3820
|
+
|
|
3342
3821
|
/**
|
|
3343
3822
|
* Name of the event used to measure success for this metric.
|
|
3344
3823
|
*/
|
|
@@ -3349,6 +3828,41 @@ export namespace ExperimentPauseResponse {
|
|
|
3349
3828
|
* definition.
|
|
3350
3829
|
*/
|
|
3351
3830
|
funnelId?: string | null;
|
|
3831
|
+
|
|
3832
|
+
valueMode?: boolean | null;
|
|
3833
|
+
|
|
3834
|
+
winsorize?: boolean | null;
|
|
3835
|
+
|
|
3836
|
+
winsorizePercentile?: number | null;
|
|
3837
|
+
}
|
|
3838
|
+
|
|
3839
|
+
export namespace Secondary {
|
|
3840
|
+
export interface EventMatcher {
|
|
3841
|
+
/**
|
|
3842
|
+
* Event name required by this OR branch.
|
|
3843
|
+
*/
|
|
3844
|
+
eventName: string;
|
|
3845
|
+
|
|
3846
|
+
/**
|
|
3847
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
3848
|
+
*/
|
|
3849
|
+
filter?: EventMatcher.Filter;
|
|
3850
|
+
}
|
|
3851
|
+
|
|
3852
|
+
export namespace EventMatcher {
|
|
3853
|
+
/**
|
|
3854
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
3855
|
+
*/
|
|
3856
|
+
export interface Filter {
|
|
3857
|
+
/**
|
|
3858
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
3859
|
+
* supported properties and operators.
|
|
3860
|
+
*/
|
|
3861
|
+
filter: unknown;
|
|
3862
|
+
|
|
3863
|
+
version: 1;
|
|
3864
|
+
}
|
|
3865
|
+
}
|
|
3352
3866
|
}
|
|
3353
3867
|
}
|
|
3354
3868
|
|
|
@@ -3576,6 +4090,17 @@ export namespace ExperimentResumeResponse {
|
|
|
3576
4090
|
|
|
3577
4091
|
export namespace Metrics {
|
|
3578
4092
|
export interface Secondary {
|
|
4093
|
+
/**
|
|
4094
|
+
* Stable identifier for selecting this saved goal in experiment results queries.
|
|
4095
|
+
*/
|
|
4096
|
+
goalId: string;
|
|
4097
|
+
|
|
4098
|
+
/**
|
|
4099
|
+
* Complete OR-list of event matchers. Each matcher is an event name plus an
|
|
4100
|
+
* optional analytics filter.
|
|
4101
|
+
*/
|
|
4102
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
4103
|
+
|
|
3579
4104
|
/**
|
|
3580
4105
|
* Name of the event used to measure success for this metric.
|
|
3581
4106
|
*/
|
|
@@ -3586,6 +4111,41 @@ export namespace ExperimentResumeResponse {
|
|
|
3586
4111
|
* definition.
|
|
3587
4112
|
*/
|
|
3588
4113
|
funnelId?: string | null;
|
|
4114
|
+
|
|
4115
|
+
valueMode?: boolean | null;
|
|
4116
|
+
|
|
4117
|
+
winsorize?: boolean | null;
|
|
4118
|
+
|
|
4119
|
+
winsorizePercentile?: number | null;
|
|
4120
|
+
}
|
|
4121
|
+
|
|
4122
|
+
export namespace Secondary {
|
|
4123
|
+
export interface EventMatcher {
|
|
4124
|
+
/**
|
|
4125
|
+
* Event name required by this OR branch.
|
|
4126
|
+
*/
|
|
4127
|
+
eventName: string;
|
|
4128
|
+
|
|
4129
|
+
/**
|
|
4130
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
4131
|
+
*/
|
|
4132
|
+
filter?: EventMatcher.Filter;
|
|
4133
|
+
}
|
|
4134
|
+
|
|
4135
|
+
export namespace EventMatcher {
|
|
4136
|
+
/**
|
|
4137
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
4138
|
+
*/
|
|
4139
|
+
export interface Filter {
|
|
4140
|
+
/**
|
|
4141
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
4142
|
+
* supported properties and operators.
|
|
4143
|
+
*/
|
|
4144
|
+
filter: unknown;
|
|
4145
|
+
|
|
4146
|
+
version: 1;
|
|
4147
|
+
}
|
|
4148
|
+
}
|
|
3589
4149
|
}
|
|
3590
4150
|
}
|
|
3591
4151
|
|
|
@@ -3967,7 +4527,8 @@ export namespace ExperimentCreateParams {
|
|
|
3967
4527
|
*/
|
|
3968
4528
|
export interface Metrics {
|
|
3969
4529
|
/**
|
|
3970
|
-
* Primary success metric.
|
|
4530
|
+
* Primary success metric. Filtered goals require an explicit stable `eventName`
|
|
4531
|
+
* anchor plus the complete `eventMatchers` array.
|
|
3971
4532
|
*/
|
|
3972
4533
|
primary?: Metrics.Primary | null;
|
|
3973
4534
|
|
|
@@ -3979,9 +4540,16 @@ export namespace ExperimentCreateParams {
|
|
|
3979
4540
|
|
|
3980
4541
|
export namespace Metrics {
|
|
3981
4542
|
/**
|
|
3982
|
-
* Primary success metric.
|
|
4543
|
+
* Primary success metric. Filtered goals require an explicit stable `eventName`
|
|
4544
|
+
* anchor plus the complete `eventMatchers` array.
|
|
3983
4545
|
*/
|
|
3984
4546
|
export interface Primary {
|
|
4547
|
+
/**
|
|
4548
|
+
* Complete OR-list of event matchers. Filtered goals require the explicit stable
|
|
4549
|
+
* `eventName` anchor and every matcher on replacement.
|
|
4550
|
+
*/
|
|
4551
|
+
eventMatchers?: Array<Primary.EventMatcher> | null;
|
|
4552
|
+
|
|
3985
4553
|
/**
|
|
3986
4554
|
* Event name to use as the goal for this metric.
|
|
3987
4555
|
*/
|
|
@@ -3992,9 +4560,56 @@ export namespace ExperimentCreateParams {
|
|
|
3992
4560
|
* funnel definition.
|
|
3993
4561
|
*/
|
|
3994
4562
|
funnelId?: string | null;
|
|
4563
|
+
|
|
4564
|
+
/**
|
|
4565
|
+
* Optional stable identifier for this goal. Use the returned identifier to select
|
|
4566
|
+
* this saved goal in results queries.
|
|
4567
|
+
*/
|
|
4568
|
+
goalId?: string | null;
|
|
4569
|
+
|
|
4570
|
+
valueMode?: boolean | null;
|
|
4571
|
+
|
|
4572
|
+
winsorize?: boolean | null;
|
|
4573
|
+
|
|
4574
|
+
winsorizePercentile?: number | null;
|
|
4575
|
+
}
|
|
4576
|
+
|
|
4577
|
+
export namespace Primary {
|
|
4578
|
+
export interface EventMatcher {
|
|
4579
|
+
/**
|
|
4580
|
+
* Event name required by this OR branch.
|
|
4581
|
+
*/
|
|
4582
|
+
eventName: string;
|
|
4583
|
+
|
|
4584
|
+
/**
|
|
4585
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
4586
|
+
*/
|
|
4587
|
+
filter?: EventMatcher.Filter;
|
|
4588
|
+
}
|
|
4589
|
+
|
|
4590
|
+
export namespace EventMatcher {
|
|
4591
|
+
/**
|
|
4592
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
4593
|
+
*/
|
|
4594
|
+
export interface Filter {
|
|
4595
|
+
/**
|
|
4596
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
4597
|
+
* supported properties and operators.
|
|
4598
|
+
*/
|
|
4599
|
+
filter: unknown;
|
|
4600
|
+
|
|
4601
|
+
version: 1;
|
|
4602
|
+
}
|
|
4603
|
+
}
|
|
3995
4604
|
}
|
|
3996
4605
|
|
|
3997
4606
|
export interface Secondary {
|
|
4607
|
+
/**
|
|
4608
|
+
* Complete OR-list of event matchers. Filtered goals require the explicit stable
|
|
4609
|
+
* `eventName` anchor and every matcher on replacement.
|
|
4610
|
+
*/
|
|
4611
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
4612
|
+
|
|
3998
4613
|
/**
|
|
3999
4614
|
* Event name to use as the goal for this metric.
|
|
4000
4615
|
*/
|
|
@@ -4005,6 +4620,47 @@ export namespace ExperimentCreateParams {
|
|
|
4005
4620
|
* funnel definition.
|
|
4006
4621
|
*/
|
|
4007
4622
|
funnelId?: string | null;
|
|
4623
|
+
|
|
4624
|
+
/**
|
|
4625
|
+
* Optional stable identifier for this goal. Use the returned identifier to select
|
|
4626
|
+
* this saved goal in results queries.
|
|
4627
|
+
*/
|
|
4628
|
+
goalId?: string | null;
|
|
4629
|
+
|
|
4630
|
+
valueMode?: boolean | null;
|
|
4631
|
+
|
|
4632
|
+
winsorize?: boolean | null;
|
|
4633
|
+
|
|
4634
|
+
winsorizePercentile?: number | null;
|
|
4635
|
+
}
|
|
4636
|
+
|
|
4637
|
+
export namespace Secondary {
|
|
4638
|
+
export interface EventMatcher {
|
|
4639
|
+
/**
|
|
4640
|
+
* Event name required by this OR branch.
|
|
4641
|
+
*/
|
|
4642
|
+
eventName: string;
|
|
4643
|
+
|
|
4644
|
+
/**
|
|
4645
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
4646
|
+
*/
|
|
4647
|
+
filter?: EventMatcher.Filter;
|
|
4648
|
+
}
|
|
4649
|
+
|
|
4650
|
+
export namespace EventMatcher {
|
|
4651
|
+
/**
|
|
4652
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
4653
|
+
*/
|
|
4654
|
+
export interface Filter {
|
|
4655
|
+
/**
|
|
4656
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
4657
|
+
* supported properties and operators.
|
|
4658
|
+
*/
|
|
4659
|
+
filter: unknown;
|
|
4660
|
+
|
|
4661
|
+
version: 1;
|
|
4662
|
+
}
|
|
4663
|
+
}
|
|
4008
4664
|
}
|
|
4009
4665
|
}
|
|
4010
4666
|
|
|
@@ -4103,9 +4759,9 @@ export interface ExperimentUpdateParams {
|
|
|
4103
4759
|
key?: string | null;
|
|
4104
4760
|
|
|
4105
4761
|
/**
|
|
4106
|
-
* Updated goal
|
|
4107
|
-
* not merged.
|
|
4108
|
-
*
|
|
4762
|
+
* Updated goal metrics. Send the full nested object — replaces the previous value,
|
|
4763
|
+
* not merged. Preserve every filtered matcher and filter returned by GET or the
|
|
4764
|
+
* request returns `FILTERED_EXPERIMENT_METRIC_REQUIRES_FULL_REPLACEMENT`.
|
|
4109
4765
|
*/
|
|
4110
4766
|
metrics?: ExperimentUpdateParams.Metrics | null;
|
|
4111
4767
|
|
|
@@ -4128,13 +4784,14 @@ export interface ExperimentUpdateParams {
|
|
|
4128
4784
|
|
|
4129
4785
|
export namespace ExperimentUpdateParams {
|
|
4130
4786
|
/**
|
|
4131
|
-
* Updated goal
|
|
4132
|
-
* not merged.
|
|
4133
|
-
*
|
|
4787
|
+
* Updated goal metrics. Send the full nested object — replaces the previous value,
|
|
4788
|
+
* not merged. Preserve every filtered matcher and filter returned by GET or the
|
|
4789
|
+
* request returns `FILTERED_EXPERIMENT_METRIC_REQUIRES_FULL_REPLACEMENT`.
|
|
4134
4790
|
*/
|
|
4135
4791
|
export interface Metrics {
|
|
4136
4792
|
/**
|
|
4137
|
-
* Primary success metric.
|
|
4793
|
+
* Primary success metric. Filtered goals require an explicit stable `eventName`
|
|
4794
|
+
* anchor plus the complete `eventMatchers` array.
|
|
4138
4795
|
*/
|
|
4139
4796
|
primary?: Metrics.Primary | null;
|
|
4140
4797
|
|
|
@@ -4146,9 +4803,16 @@ export namespace ExperimentUpdateParams {
|
|
|
4146
4803
|
|
|
4147
4804
|
export namespace Metrics {
|
|
4148
4805
|
/**
|
|
4149
|
-
* Primary success metric.
|
|
4806
|
+
* Primary success metric. Filtered goals require an explicit stable `eventName`
|
|
4807
|
+
* anchor plus the complete `eventMatchers` array.
|
|
4150
4808
|
*/
|
|
4151
4809
|
export interface Primary {
|
|
4810
|
+
/**
|
|
4811
|
+
* Complete OR-list of event matchers. Filtered goals require the explicit stable
|
|
4812
|
+
* `eventName` anchor and every matcher on replacement.
|
|
4813
|
+
*/
|
|
4814
|
+
eventMatchers?: Array<Primary.EventMatcher> | null;
|
|
4815
|
+
|
|
4152
4816
|
/**
|
|
4153
4817
|
* Event name to use as the goal for this metric.
|
|
4154
4818
|
*/
|
|
@@ -4159,9 +4823,56 @@ export namespace ExperimentUpdateParams {
|
|
|
4159
4823
|
* funnel definition.
|
|
4160
4824
|
*/
|
|
4161
4825
|
funnelId?: string | null;
|
|
4826
|
+
|
|
4827
|
+
/**
|
|
4828
|
+
* Optional stable identifier for this goal. Use the returned identifier to select
|
|
4829
|
+
* this saved goal in results queries.
|
|
4830
|
+
*/
|
|
4831
|
+
goalId?: string | null;
|
|
4832
|
+
|
|
4833
|
+
valueMode?: boolean | null;
|
|
4834
|
+
|
|
4835
|
+
winsorize?: boolean | null;
|
|
4836
|
+
|
|
4837
|
+
winsorizePercentile?: number | null;
|
|
4838
|
+
}
|
|
4839
|
+
|
|
4840
|
+
export namespace Primary {
|
|
4841
|
+
export interface EventMatcher {
|
|
4842
|
+
/**
|
|
4843
|
+
* Event name required by this OR branch.
|
|
4844
|
+
*/
|
|
4845
|
+
eventName: string;
|
|
4846
|
+
|
|
4847
|
+
/**
|
|
4848
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
4849
|
+
*/
|
|
4850
|
+
filter?: EventMatcher.Filter;
|
|
4851
|
+
}
|
|
4852
|
+
|
|
4853
|
+
export namespace EventMatcher {
|
|
4854
|
+
/**
|
|
4855
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
4856
|
+
*/
|
|
4857
|
+
export interface Filter {
|
|
4858
|
+
/**
|
|
4859
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
4860
|
+
* supported properties and operators.
|
|
4861
|
+
*/
|
|
4862
|
+
filter: unknown;
|
|
4863
|
+
|
|
4864
|
+
version: 1;
|
|
4865
|
+
}
|
|
4866
|
+
}
|
|
4162
4867
|
}
|
|
4163
4868
|
|
|
4164
4869
|
export interface Secondary {
|
|
4870
|
+
/**
|
|
4871
|
+
* Complete OR-list of event matchers. Filtered goals require the explicit stable
|
|
4872
|
+
* `eventName` anchor and every matcher on replacement.
|
|
4873
|
+
*/
|
|
4874
|
+
eventMatchers?: Array<Secondary.EventMatcher> | null;
|
|
4875
|
+
|
|
4165
4876
|
/**
|
|
4166
4877
|
* Event name to use as the goal for this metric.
|
|
4167
4878
|
*/
|
|
@@ -4172,6 +4883,47 @@ export namespace ExperimentUpdateParams {
|
|
|
4172
4883
|
* funnel definition.
|
|
4173
4884
|
*/
|
|
4174
4885
|
funnelId?: string | null;
|
|
4886
|
+
|
|
4887
|
+
/**
|
|
4888
|
+
* Optional stable identifier for this goal. Use the returned identifier to select
|
|
4889
|
+
* this saved goal in results queries.
|
|
4890
|
+
*/
|
|
4891
|
+
goalId?: string | null;
|
|
4892
|
+
|
|
4893
|
+
valueMode?: boolean | null;
|
|
4894
|
+
|
|
4895
|
+
winsorize?: boolean | null;
|
|
4896
|
+
|
|
4897
|
+
winsorizePercentile?: number | null;
|
|
4898
|
+
}
|
|
4899
|
+
|
|
4900
|
+
export namespace Secondary {
|
|
4901
|
+
export interface EventMatcher {
|
|
4902
|
+
/**
|
|
4903
|
+
* Event name required by this OR branch.
|
|
4904
|
+
*/
|
|
4905
|
+
eventName: string;
|
|
4906
|
+
|
|
4907
|
+
/**
|
|
4908
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
4909
|
+
*/
|
|
4910
|
+
filter?: EventMatcher.Filter;
|
|
4911
|
+
}
|
|
4912
|
+
|
|
4913
|
+
export namespace EventMatcher {
|
|
4914
|
+
/**
|
|
4915
|
+
* Optional analytics filter evaluated against the same event row as `eventName`.
|
|
4916
|
+
*/
|
|
4917
|
+
export interface Filter {
|
|
4918
|
+
/**
|
|
4919
|
+
* Analytics predicate or and/or/not tree. Use the analytics query catalog for
|
|
4920
|
+
* supported properties and operators.
|
|
4921
|
+
*/
|
|
4922
|
+
filter: unknown;
|
|
4923
|
+
|
|
4924
|
+
version: 1;
|
|
4925
|
+
}
|
|
4926
|
+
}
|
|
4175
4927
|
}
|
|
4176
4928
|
}
|
|
4177
4929
|
|
|
@@ -4316,18 +5068,32 @@ export interface ExperimentResumeParams {
|
|
|
4316
5068
|
|
|
4317
5069
|
export interface ExperimentResultsParams {
|
|
4318
5070
|
/**
|
|
4319
|
-
*
|
|
4320
|
-
*
|
|
5071
|
+
* Legacy selector or override for the conversion event name. Use `goalId` to
|
|
5072
|
+
* select a specific saved goal when multiple goals share an event name. When both
|
|
5073
|
+
* are omitted, the experiment primary metric is used.
|
|
4321
5074
|
*/
|
|
4322
5075
|
eventName?: string;
|
|
5076
|
+
|
|
5077
|
+
/**
|
|
5078
|
+
* Optional identifier of a saved goal to report. Use this to distinguish goals
|
|
5079
|
+
* that share an event name.
|
|
5080
|
+
*/
|
|
5081
|
+
goalId?: string;
|
|
4323
5082
|
}
|
|
4324
5083
|
|
|
4325
5084
|
export interface ExperimentAnalysisParams {
|
|
4326
5085
|
/**
|
|
4327
|
-
*
|
|
4328
|
-
*
|
|
5086
|
+
* Legacy selector or override for the conversion event name. Use `goalId` to
|
|
5087
|
+
* select a specific saved goal when multiple goals share an event name. When both
|
|
5088
|
+
* are omitted, the experiment primary metric is used.
|
|
4329
5089
|
*/
|
|
4330
5090
|
eventName?: string;
|
|
5091
|
+
|
|
5092
|
+
/**
|
|
5093
|
+
* Optional identifier of a saved goal to report. Use this to distinguish goals
|
|
5094
|
+
* that share an event name.
|
|
5095
|
+
*/
|
|
5096
|
+
goalId?: string;
|
|
4331
5097
|
}
|
|
4332
5098
|
|
|
4333
5099
|
export interface ExperimentResultsTimeSeriesParams {
|
|
@@ -4340,11 +5106,18 @@ export interface ExperimentResultsTimeSeriesParams {
|
|
|
4340
5106
|
endDate?: string;
|
|
4341
5107
|
|
|
4342
5108
|
/**
|
|
4343
|
-
*
|
|
4344
|
-
*
|
|
5109
|
+
* Legacy selector or override for the conversion event name. Use `goalId` to
|
|
5110
|
+
* select a specific saved goal when multiple goals share an event name. When both
|
|
5111
|
+
* are omitted, the experiment primary metric is used.
|
|
4345
5112
|
*/
|
|
4346
5113
|
eventName?: string;
|
|
4347
5114
|
|
|
5115
|
+
/**
|
|
5116
|
+
* Optional identifier of a saved goal to report. Use this to distinguish goals
|
|
5117
|
+
* that share an event name.
|
|
5118
|
+
*/
|
|
5119
|
+
goalId?: string;
|
|
5120
|
+
|
|
4348
5121
|
/**
|
|
4349
5122
|
* Inclusive lower bound of the response window, as a UTC calendar day in
|
|
4350
5123
|
* `YYYY-MM-DD` format. Defaults to the experiment start date when omitted. Values
|