@oursprivacy/platform-sdk 1.67.0 → 1.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +8 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +8 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/analytics.d.mts +10 -0
  12. package/resources/analytics.d.mts.map +1 -1
  13. package/resources/analytics.d.ts +10 -0
  14. package/resources/analytics.d.ts.map +1 -1
  15. package/resources/dashboards.d.mts +696 -34
  16. package/resources/dashboards.d.mts.map +1 -1
  17. package/resources/dashboards.d.ts +696 -34
  18. package/resources/dashboards.d.ts.map +1 -1
  19. package/resources/destinations.d.mts +7 -7
  20. package/resources/destinations.d.mts.map +1 -1
  21. package/resources/destinations.d.ts +7 -7
  22. package/resources/destinations.d.ts.map +1 -1
  23. package/resources/funnels.d.mts +255 -9
  24. package/resources/funnels.d.mts.map +1 -1
  25. package/resources/funnels.d.ts +255 -9
  26. package/resources/funnels.d.ts.map +1 -1
  27. package/resources/funnels.js +10 -7
  28. package/resources/funnels.js.map +1 -1
  29. package/resources/funnels.mjs +10 -7
  30. package/resources/funnels.mjs.map +1 -1
  31. package/resources/index.d.mts +3 -1
  32. package/resources/index.d.mts.map +1 -1
  33. package/resources/index.d.ts +3 -1
  34. package/resources/index.d.ts.map +1 -1
  35. package/resources/index.js +5 -1
  36. package/resources/index.js.map +1 -1
  37. package/resources/index.mjs +2 -0
  38. package/resources/index.mjs.map +1 -1
  39. package/resources/insights.d.mts +178 -57
  40. package/resources/insights.d.mts.map +1 -1
  41. package/resources/insights.d.ts +178 -57
  42. package/resources/insights.d.ts.map +1 -1
  43. package/resources/insights.js +9 -7
  44. package/resources/insights.js.map +1 -1
  45. package/resources/insights.mjs +9 -7
  46. package/resources/insights.mjs.map +1 -1
  47. package/resources/journey-flows.d.mts +242 -18
  48. package/resources/journey-flows.d.mts.map +1 -1
  49. package/resources/journey-flows.d.ts +242 -18
  50. package/resources/journey-flows.d.ts.map +1 -1
  51. package/resources/journey-flows.js +18 -12
  52. package/resources/journey-flows.js.map +1 -1
  53. package/resources/journey-flows.mjs +18 -12
  54. package/resources/journey-flows.mjs.map +1 -1
  55. package/resources/query-events.d.mts +324 -0
  56. package/resources/query-events.d.mts.map +1 -0
  57. package/resources/query-events.d.ts +324 -0
  58. package/resources/query-events.d.ts.map +1 -0
  59. package/resources/query-events.js +64 -0
  60. package/resources/query-events.js.map +1 -0
  61. package/resources/query-events.mjs +60 -0
  62. package/resources/query-events.mjs.map +1 -0
  63. package/resources/query-visitors.d.mts +127 -0
  64. package/resources/query-visitors.d.mts.map +1 -0
  65. package/resources/query-visitors.d.ts +127 -0
  66. package/resources/query-visitors.d.ts.map +1 -0
  67. package/resources/query-visitors.js +35 -0
  68. package/resources/query-visitors.js.map +1 -0
  69. package/resources/query-visitors.mjs +31 -0
  70. package/resources/query-visitors.mjs.map +1 -0
  71. package/resources/report-branding.d.mts +112 -28
  72. package/resources/report-branding.d.mts.map +1 -1
  73. package/resources/report-branding.d.ts +112 -28
  74. package/resources/report-branding.d.ts.map +1 -1
  75. package/resources/report-branding.js +29 -15
  76. package/resources/report-branding.js.map +1 -1
  77. package/resources/report-branding.mjs +29 -15
  78. package/resources/report-branding.mjs.map +1 -1
  79. package/resources/sources.d.mts +6 -6
  80. package/resources/sources.d.mts.map +1 -1
  81. package/resources/sources.d.ts +6 -6
  82. package/resources/sources.d.ts.map +1 -1
  83. package/resources/test-events.d.mts +28 -0
  84. package/resources/test-events.d.mts.map +1 -1
  85. package/resources/test-events.d.ts +28 -0
  86. package/resources/test-events.d.ts.map +1 -1
  87. package/resources/web-analytics.d.mts +25 -1
  88. package/resources/web-analytics.d.mts.map +1 -1
  89. package/resources/web-analytics.d.ts +25 -1
  90. package/resources/web-analytics.d.ts.map +1 -1
  91. package/src/client.ts +54 -0
  92. package/src/resources/analytics.ts +12 -0
  93. package/src/resources/dashboards.ts +939 -47
  94. package/src/resources/destinations.ts +23 -2
  95. package/src/resources/funnels.ts +334 -9
  96. package/src/resources/index.ts +24 -0
  97. package/src/resources/insights.ts +224 -57
  98. package/src/resources/journey-flows.ts +300 -22
  99. package/src/resources/query-events.ts +459 -0
  100. package/src/resources/query-visitors.ts +190 -0
  101. package/src/resources/report-branding.ts +132 -27
  102. package/src/resources/sources.ts +12 -0
  103. package/src/resources/test-events.ts +33 -0
  104. package/src/resources/web-analytics.ts +41 -1
  105. package/src/version.ts +1 -1
  106. package/version.d.mts +1 -1
  107. package/version.d.ts +1 -1
  108. package/version.js +1 -1
  109. package/version.mjs +1 -1
@@ -173,7 +173,7 @@ export interface DashboardListResponse {
173
173
 
174
174
  /**
175
175
  * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
176
- * Journey tiles support up to 91 inclusive days; Insights retain their native
176
+ * Journey tiles support up to 93 inclusive days; Insights retain their native
177
177
  * range limit.
178
178
  */
179
179
  reportContext: DashboardListResponse.ReportContext;
@@ -216,7 +216,7 @@ export interface DashboardListResponse {
216
216
  export namespace DashboardListResponse {
217
217
  /**
218
218
  * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
219
- * Journey tiles support up to 91 inclusive days; Insights retain their native
219
+ * Journey tiles support up to 93 inclusive days; Insights retain their native
220
220
  * range limit.
221
221
  */
222
222
  export interface ReportContext {
@@ -531,7 +531,7 @@ export interface DashboardCreateResponse {
531
531
 
532
532
  /**
533
533
  * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
534
- * Journey tiles support up to 91 inclusive days; Insights retain their native
534
+ * Journey tiles support up to 93 inclusive days; Insights retain their native
535
535
  * range limit.
536
536
  */
537
537
  reportContext: DashboardCreateResponse.ReportContext;
@@ -574,7 +574,7 @@ export interface DashboardCreateResponse {
574
574
  export namespace DashboardCreateResponse {
575
575
  /**
576
576
  * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
577
- * Journey tiles support up to 91 inclusive days; Insights retain their native
577
+ * Journey tiles support up to 93 inclusive days; Insights retain their native
578
578
  * range limit.
579
579
  */
580
580
  export interface ReportContext {
@@ -889,7 +889,7 @@ export interface DashboardRetrieveResponse {
889
889
 
890
890
  /**
891
891
  * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
892
- * Journey tiles support up to 91 inclusive days; Insights retain their native
892
+ * Journey tiles support up to 93 inclusive days; Insights retain their native
893
893
  * range limit.
894
894
  */
895
895
  reportContext: DashboardRetrieveResponse.ReportContext;
@@ -932,7 +932,7 @@ export interface DashboardRetrieveResponse {
932
932
  export namespace DashboardRetrieveResponse {
933
933
  /**
934
934
  * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
935
- * Journey tiles support up to 91 inclusive days; Insights retain their native
935
+ * Journey tiles support up to 93 inclusive days; Insights retain their native
936
936
  * range limit.
937
937
  */
938
938
  export interface ReportContext {
@@ -1247,7 +1247,7 @@ export interface DashboardUpdateResponse {
1247
1247
 
1248
1248
  /**
1249
1249
  * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
1250
- * Journey tiles support up to 91 inclusive days; Insights retain their native
1250
+ * Journey tiles support up to 93 inclusive days; Insights retain their native
1251
1251
  * range limit.
1252
1252
  */
1253
1253
  reportContext: DashboardUpdateResponse.ReportContext;
@@ -1290,7 +1290,7 @@ export interface DashboardUpdateResponse {
1290
1290
  export namespace DashboardUpdateResponse {
1291
1291
  /**
1292
1292
  * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
1293
- * Journey tiles support up to 91 inclusive days; Insights retain their native
1293
+ * Journey tiles support up to 93 inclusive days; Insights retain their native
1294
1294
  * range limit.
1295
1295
  */
1296
1296
  export interface ReportContext {
@@ -1613,7 +1613,7 @@ export interface DashboardDuplicateResponse {
1613
1613
 
1614
1614
  /**
1615
1615
  * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
1616
- * Journey tiles support up to 91 inclusive days; Insights retain their native
1616
+ * Journey tiles support up to 93 inclusive days; Insights retain their native
1617
1617
  * range limit.
1618
1618
  */
1619
1619
  reportContext: DashboardDuplicateResponse.ReportContext;
@@ -1656,7 +1656,7 @@ export interface DashboardDuplicateResponse {
1656
1656
  export namespace DashboardDuplicateResponse {
1657
1657
  /**
1658
1658
  * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
1659
- * Journey tiles support up to 91 inclusive days; Insights retain their native
1659
+ * Journey tiles support up to 93 inclusive days; Insights retain their native
1660
1660
  * range limit.
1661
1661
  */
1662
1662
  export interface ReportContext {
@@ -1988,9 +1988,10 @@ export namespace DashboardPreviewResponse {
1988
1988
  createdByUserId: string;
1989
1989
 
1990
1990
  /**
1991
- * Version 1 Insight definition: one to ten metrics and a day, week, or month
1992
- * interval. Sum and average require a numeric event property. Filters use the
1993
- * analytics property catalog.
1991
+ * Version 1 Insight definition: one to ten metrics and an hour, day, week, or
1992
+ * month interval (up to 366 buckets). Sum and average require a numeric event
1993
+ * property. Metrics select eventNames or allEvents. includeBots defaults to false.
1994
+ * Filters use the analytics property catalog.
1994
1995
  */
1995
1996
  definition: Report.Definition;
1996
1997
 
@@ -2025,12 +2026,13 @@ export namespace DashboardPreviewResponse {
2025
2026
 
2026
2027
  export namespace Report {
2027
2028
  /**
2028
- * Version 1 Insight definition: one to ten metrics and a day, week, or month
2029
- * interval. Sum and average require a numeric event property. Filters use the
2030
- * analytics property catalog.
2029
+ * Version 1 Insight definition: one to ten metrics and an hour, day, week, or
2030
+ * month interval (up to 366 buckets). Sum and average require a numeric event
2031
+ * property. Metrics select eventNames or allEvents. includeBots defaults to false.
2032
+ * Filters use the analytics property catalog.
2031
2033
  */
2032
2034
  export interface Definition {
2033
- interval: 'day' | 'week' | 'month';
2035
+ interval: 'hour' | 'day' | 'week' | 'month';
2034
2036
 
2035
2037
  kind: 'insight';
2036
2038
 
@@ -2039,6 +2041,11 @@ export namespace DashboardPreviewResponse {
2039
2041
  version: 1;
2040
2042
 
2041
2043
  filter?: Definition.Filter;
2044
+
2045
+ /**
2046
+ * Include bot events and sessions; test events remain excluded. Defaults to false.
2047
+ */
2048
+ includeBots?: boolean;
2042
2049
  }
2043
2050
 
2044
2051
  export namespace Definition {
@@ -2055,6 +2062,11 @@ export namespace DashboardPreviewResponse {
2055
2062
 
2056
2063
  name: string;
2057
2064
 
2065
+ /**
2066
+ * Count every event name. Requires an empty eventNames array.
2067
+ */
2068
+ allEvents?: boolean;
2069
+
2058
2070
  filter?: Metric.Filter;
2059
2071
 
2060
2072
  property?: Metric.Property;
@@ -2279,7 +2291,7 @@ export namespace DashboardPreviewResponse {
2279
2291
 
2280
2292
  from: string;
2281
2293
 
2282
- interval: 'day' | 'week' | 'month';
2294
+ interval: 'hour' | 'day' | 'week' | 'month';
2283
2295
 
2284
2296
  sourceCompleteness: 'unknown';
2285
2297
 
@@ -2287,10 +2299,36 @@ export namespace DashboardPreviewResponse {
2287
2299
 
2288
2300
  to: string;
2289
2301
 
2302
+ breakdown?: Scope.Breakdown | null;
2303
+
2290
2304
  comparison?: Scope.Comparison | null;
2291
2305
  }
2292
2306
 
2293
2307
  export namespace Scope {
2308
+ export interface Breakdown {
2309
+ atAnchorId: string | null;
2310
+
2311
+ limit: number;
2312
+
2313
+ property: Breakdown.Property;
2314
+
2315
+ stepNumber: number | null;
2316
+
2317
+ truncated: boolean;
2318
+
2319
+ valueCount: number;
2320
+ }
2321
+
2322
+ export namespace Breakdown {
2323
+ export interface Property {
2324
+ property: string;
2325
+
2326
+ type: 'string' | 'number' | 'boolean';
2327
+
2328
+ path?: Array<string>;
2329
+ }
2330
+ }
2331
+
2294
2332
  export interface Comparison {
2295
2333
  from: string;
2296
2334
 
@@ -2316,6 +2354,8 @@ export namespace DashboardPreviewResponse {
2316
2354
  points: Array<Series.Point>;
2317
2355
 
2318
2356
  rangeValue: number | null;
2357
+
2358
+ segment?: Series.Segment | null;
2319
2359
  }
2320
2360
 
2321
2361
  export namespace Series {
@@ -2338,6 +2378,18 @@ export namespace DashboardPreviewResponse {
2338
2378
 
2339
2379
  smoothed: number | null;
2340
2380
  }
2381
+
2382
+ export interface Segment {
2383
+ key: string;
2384
+
2385
+ kind: 'value' | 'other' | 'not_set';
2386
+
2387
+ label: string;
2388
+
2389
+ rank: number;
2390
+
2391
+ value: string | null;
2392
+ }
2341
2393
  }
2342
2394
  }
2343
2395
  }
@@ -2629,6 +2681,16 @@ export namespace DashboardPreviewResponse {
2629
2681
  */
2630
2682
  totalVisitors: number;
2631
2683
 
2684
+ /**
2685
+ * Per-segment results when `breakdown` was requested; null otherwise.
2686
+ */
2687
+ breakdown?: Result.Breakdown | null;
2688
+
2689
+ /**
2690
+ * Results for the compared dates when `comparison` was requested; null otherwise.
2691
+ */
2692
+ comparison?: Result.Comparison | null;
2693
+
2632
2694
  /**
2633
2695
  * Average time from first step to last step in seconds. Null when no completions.
2634
2696
  */
@@ -2698,6 +2760,291 @@ export namespace DashboardPreviewResponse {
2698
2760
  */
2699
2761
  avgTimeToNextStep?: number | null;
2700
2762
  }
2763
+
2764
+ /**
2765
+ * Per-segment results when `breakdown` was requested; null otherwise.
2766
+ */
2767
+ export interface Breakdown {
2768
+ scope: Breakdown.Scope;
2769
+
2770
+ /**
2771
+ * Segments in rank order.
2772
+ */
2773
+ segments: Array<Breakdown.Segment>;
2774
+ }
2775
+
2776
+ export namespace Breakdown {
2777
+ export interface Scope {
2778
+ atAnchorId: string | null;
2779
+
2780
+ limit: number;
2781
+
2782
+ property: Scope.Property;
2783
+
2784
+ stepNumber: number | null;
2785
+
2786
+ truncated: boolean;
2787
+
2788
+ /**
2789
+ * Distinct values seen.
2790
+ */
2791
+ valueCount: number;
2792
+ }
2793
+
2794
+ export namespace Scope {
2795
+ export interface Property {
2796
+ property: string;
2797
+
2798
+ type: 'string' | 'number' | 'boolean';
2799
+
2800
+ path?: Array<string>;
2801
+ }
2802
+ }
2803
+
2804
+ export interface Segment {
2805
+ /**
2806
+ * Ratio of last-step to first-step volume in this segment, as a percentage.
2807
+ */
2808
+ overallConversionRate: number;
2809
+
2810
+ segment: Segment.Segment;
2811
+
2812
+ /**
2813
+ * Per-step results for this segment.
2814
+ */
2815
+ steps: Array<Segment.Step>;
2816
+
2817
+ /**
2818
+ * First-step volume in this segment.
2819
+ */
2820
+ totalVisitors: number;
2821
+
2822
+ /**
2823
+ * Average time from first step to last step in seconds. Null when no completions.
2824
+ */
2825
+ overallAvgTimeToConversion?: number | null;
2826
+ }
2827
+
2828
+ export namespace Segment {
2829
+ export interface Segment {
2830
+ /**
2831
+ * Segment key: v:<value>, $other, or $none.
2832
+ */
2833
+ key: string;
2834
+
2835
+ kind: 'value' | 'other' | 'not_set';
2836
+
2837
+ label: string;
2838
+
2839
+ rank: number;
2840
+
2841
+ /**
2842
+ * Null for other and not_set.
2843
+ */
2844
+ value: string | null;
2845
+ }
2846
+
2847
+ export interface Step {
2848
+ conversionCount: number;
2849
+
2850
+ /**
2851
+ * Step ratio as a percentage. Event-counting ratios may exceed 100%.
2852
+ */
2853
+ conversionRate: number;
2854
+
2855
+ /**
2856
+ * Drop-off percentage for participant counting; zero when the previous step volume
2857
+ * is zero. Not a participant loss measure for event counting.
2858
+ */
2859
+ dropOffRate: number;
2860
+
2861
+ dropOffSessionIds: Array<string>;
2862
+
2863
+ dropOffVisitorIds: Array<string>;
2864
+
2865
+ /**
2866
+ * Ratio to first-step volume as a percentage. Event-counting ratios may exceed
2867
+ * 100%.
2868
+ */
2869
+ overallConversionRate: number;
2870
+
2871
+ sessionIds: Array<string>;
2872
+
2873
+ stepNumber: number;
2874
+
2875
+ /**
2876
+ * Step volume using the saved counting method: unique people, sessions, or events.
2877
+ */
2878
+ visitorCount: number;
2879
+
2880
+ visitorIds: Array<string>;
2881
+
2882
+ /**
2883
+ * Average incoming hop time from the previous step to this step, in seconds.
2884
+ */
2885
+ avgTimeToNextStep?: number | null;
2886
+ }
2887
+ }
2888
+ }
2889
+
2890
+ /**
2891
+ * Results for the compared dates when `comparison` was requested; null otherwise.
2892
+ */
2893
+ export interface Comparison {
2894
+ overallConversionRate: number;
2895
+
2896
+ scope: Comparison.Scope;
2897
+
2898
+ /**
2899
+ * Same keys and order as `breakdown.segments`.
2900
+ */
2901
+ segments: Array<Comparison.Segment>;
2902
+
2903
+ /**
2904
+ * Per-step results for the compared dates. Sample ID arrays are empty.
2905
+ */
2906
+ steps: Array<Comparison.Step>;
2907
+
2908
+ totalVisitors: number;
2909
+
2910
+ overallAvgTimeToConversion?: number | null;
2911
+ }
2912
+
2913
+ export namespace Comparison {
2914
+ export interface Scope {
2915
+ from: string;
2916
+
2917
+ kind: 'previous_period' | 'previous_year' | 'custom';
2918
+
2919
+ to: string;
2920
+ }
2921
+
2922
+ export interface Segment {
2923
+ /**
2924
+ * Ratio of last-step to first-step volume in this segment, as a percentage.
2925
+ */
2926
+ overallConversionRate: number;
2927
+
2928
+ segment: Segment.Segment;
2929
+
2930
+ /**
2931
+ * Per-step results for this segment.
2932
+ */
2933
+ steps: Array<Segment.Step>;
2934
+
2935
+ /**
2936
+ * First-step volume in this segment.
2937
+ */
2938
+ totalVisitors: number;
2939
+
2940
+ /**
2941
+ * Average time from first step to last step in seconds. Null when no completions.
2942
+ */
2943
+ overallAvgTimeToConversion?: number | null;
2944
+ }
2945
+
2946
+ export namespace Segment {
2947
+ export interface Segment {
2948
+ /**
2949
+ * Segment key: v:<value>, $other, or $none.
2950
+ */
2951
+ key: string;
2952
+
2953
+ kind: 'value' | 'other' | 'not_set';
2954
+
2955
+ label: string;
2956
+
2957
+ rank: number;
2958
+
2959
+ /**
2960
+ * Null for other and not_set.
2961
+ */
2962
+ value: string | null;
2963
+ }
2964
+
2965
+ export interface Step {
2966
+ conversionCount: number;
2967
+
2968
+ /**
2969
+ * Step ratio as a percentage. Event-counting ratios may exceed 100%.
2970
+ */
2971
+ conversionRate: number;
2972
+
2973
+ /**
2974
+ * Drop-off percentage for participant counting; zero when the previous step volume
2975
+ * is zero. Not a participant loss measure for event counting.
2976
+ */
2977
+ dropOffRate: number;
2978
+
2979
+ dropOffSessionIds: Array<string>;
2980
+
2981
+ dropOffVisitorIds: Array<string>;
2982
+
2983
+ /**
2984
+ * Ratio to first-step volume as a percentage. Event-counting ratios may exceed
2985
+ * 100%.
2986
+ */
2987
+ overallConversionRate: number;
2988
+
2989
+ sessionIds: Array<string>;
2990
+
2991
+ stepNumber: number;
2992
+
2993
+ /**
2994
+ * Step volume using the saved counting method: unique people, sessions, or events.
2995
+ */
2996
+ visitorCount: number;
2997
+
2998
+ visitorIds: Array<string>;
2999
+
3000
+ /**
3001
+ * Average incoming hop time from the previous step to this step, in seconds.
3002
+ */
3003
+ avgTimeToNextStep?: number | null;
3004
+ }
3005
+ }
3006
+
3007
+ export interface Step {
3008
+ conversionCount: number;
3009
+
3010
+ /**
3011
+ * Step ratio as a percentage. Event-counting ratios may exceed 100%.
3012
+ */
3013
+ conversionRate: number;
3014
+
3015
+ /**
3016
+ * Drop-off percentage for participant counting; zero when the previous step volume
3017
+ * is zero. Not a participant loss measure for event counting.
3018
+ */
3019
+ dropOffRate: number;
3020
+
3021
+ dropOffSessionIds: Array<string>;
3022
+
3023
+ dropOffVisitorIds: Array<string>;
3024
+
3025
+ /**
3026
+ * Ratio to first-step volume as a percentage. Event-counting ratios may exceed
3027
+ * 100%.
3028
+ */
3029
+ overallConversionRate: number;
3030
+
3031
+ sessionIds: Array<string>;
3032
+
3033
+ stepNumber: number;
3034
+
3035
+ /**
3036
+ * Step volume using the saved counting method: unique people, sessions, or events.
3037
+ */
3038
+ visitorCount: number;
3039
+
3040
+ visitorIds: Array<string>;
3041
+
3042
+ /**
3043
+ * Average incoming hop time from the previous step to this step, in seconds.
3044
+ */
3045
+ avgTimeToNextStep?: number | null;
3046
+ }
3047
+ }
2701
3048
  }
2702
3049
  }
2703
3050
 
@@ -3993,6 +4340,16 @@ export namespace DashboardPreviewResponse {
3993
4340
  reentry: 'FIRST' | 'BEST';
3994
4341
 
3995
4342
  sourceIds: Array<string>;
4343
+
4344
+ /**
4345
+ * The requested breakdown; null without one.
4346
+ */
4347
+ breakdown?: EffectiveContext.Breakdown | null;
4348
+
4349
+ /**
4350
+ * The compared dates; null without a comparison.
4351
+ */
4352
+ comparison?: EffectiveContext.Comparison | null;
3996
4353
  }
3997
4354
 
3998
4355
  export namespace EffectiveContext {
@@ -4171,11 +4528,50 @@ export namespace DashboardPreviewResponse {
4171
4528
 
4172
4529
  to: string;
4173
4530
  }
4531
+
4532
+ /**
4533
+ * The requested breakdown; null without one.
4534
+ */
4535
+ export interface Breakdown {
4536
+ atAnchorId: string | null;
4537
+
4538
+ limit: number;
4539
+
4540
+ property: Breakdown.Property;
4541
+
4542
+ stepNumber: number | null;
4543
+
4544
+ truncated: boolean;
4545
+
4546
+ /**
4547
+ * Distinct values seen.
4548
+ */
4549
+ valueCount: number;
4550
+ }
4551
+
4552
+ export namespace Breakdown {
4553
+ export interface Property {
4554
+ property: string;
4555
+
4556
+ type: 'string' | 'number' | 'boolean';
4557
+
4558
+ path?: Array<string>;
4559
+ }
4560
+ }
4561
+
4562
+ /**
4563
+ * The compared dates; null without a comparison.
4564
+ */
4565
+ export interface Comparison {
4566
+ from: string;
4567
+
4568
+ kind: 'previous_period' | 'previous_year' | 'custom';
4569
+
4570
+ to: string;
4571
+ }
4174
4572
  }
4175
4573
 
4176
4574
  export interface Execution {
4177
- cacheHit: boolean;
4178
-
4179
4575
  generatedAt: string;
4180
4576
 
4181
4577
  queryId: string;
@@ -4183,8 +4579,6 @@ export namespace DashboardPreviewResponse {
4183
4579
  sampled: boolean;
4184
4580
 
4185
4581
  warnings: Array<Execution.Warning>;
4186
-
4187
- cacheAgeMs?: number | null;
4188
4582
  }
4189
4583
 
4190
4584
  export namespace Execution {
@@ -4256,15 +4650,27 @@ export namespace DashboardPreviewResponse {
4256
4650
  }
4257
4651
 
4258
4652
  export interface Series {
4653
+ /**
4654
+ * Period: '' for the selected dates, or the comparison kind (previous_period,
4655
+ * previous_year, custom).
4656
+ */
4259
4657
  id: string;
4260
4658
 
4261
4659
  label: string;
4262
4660
 
4263
4661
  segments: Array<Series.Segment>;
4662
+
4663
+ /**
4664
+ * The compared dates on a comparison series; null on the selected dates.
4665
+ */
4666
+ comparison?: Series.Comparison | null;
4264
4667
  }
4265
4668
 
4266
4669
  export namespace Series {
4267
4670
  export interface Segment {
4671
+ /**
4672
+ * '' for All traffic (always first), otherwise the breakdown segment key.
4673
+ */
4268
4674
  id: string;
4269
4675
 
4270
4676
  columns: Array<Segment.Column>;
@@ -4291,6 +4697,11 @@ export namespace DashboardPreviewResponse {
4291
4697
 
4292
4698
  unfocusedEntryCount: string;
4293
4699
 
4700
+ /**
4701
+ * The breakdown segment; null on All traffic.
4702
+ */
4703
+ breakdown?: Segment.Breakdown | null;
4704
+
4294
4705
  observationIncompleteCount?: string | null;
4295
4706
 
4296
4707
  timedOutCount?: string | null;
@@ -4364,6 +4775,9 @@ export namespace DashboardPreviewResponse {
4364
4775
 
4365
4776
  denominator: string;
4366
4777
 
4778
+ /**
4779
+ * Stable across segments and periods; id is not.
4780
+ */
4367
4781
  key: string;
4368
4782
 
4369
4783
  kind: 'ANCHOR' | 'EVENT' | 'PAGE' | 'TERMINAL' | 'OMITTED_STEPS' | 'OTHER_EVENTS';
@@ -4902,21 +5316,53 @@ export namespace DashboardPreviewResponse {
4902
5316
  }
4903
5317
  }
4904
5318
  }
4905
- }
4906
- }
4907
5319
 
4908
- export interface Timing {
4909
- count: string;
5320
+ /**
5321
+ * The breakdown segment; null on All traffic.
5322
+ */
5323
+ export interface Breakdown {
5324
+ /**
5325
+ * Segment key: v:<value>, $other, or $none.
5326
+ */
5327
+ key: string;
4910
5328
 
4911
- direction: 'FORWARD' | 'BACKWARD';
5329
+ kind: 'value' | 'other' | 'not_set';
4912
5330
 
4913
- fromPosition: string;
5331
+ label: string;
4914
5332
 
4915
- kind: 'EDGE' | 'ANCHOR' | 'OVERALL';
5333
+ rank: number;
4916
5334
 
4917
- sourceNodeId: string;
5335
+ /**
5336
+ * Null for other and not_set.
5337
+ */
5338
+ value: string | null;
5339
+ }
5340
+ }
4918
5341
 
4919
- targetNodeId: string;
5342
+ /**
5343
+ * The compared dates on a comparison series; null on the selected dates.
5344
+ */
5345
+ export interface Comparison {
5346
+ from: string;
5347
+
5348
+ kind: 'previous_period' | 'previous_year' | 'custom';
5349
+
5350
+ to: string;
5351
+ }
5352
+ }
5353
+
5354
+ export interface Timing {
5355
+ count: string;
5356
+
5357
+ direction: 'FORWARD' | 'BACKWARD';
5358
+
5359
+ fromPosition: string;
5360
+
5361
+ kind: 'EDGE' | 'ANCHOR' | 'OVERALL';
5362
+
5363
+ sourceNodeId: string;
5364
+
5365
+ targetNodeId: string;
4920
5366
 
4921
5367
  toPosition: string;
4922
5368
 
@@ -4963,9 +5409,10 @@ export namespace DashboardResultsResponse {
4963
5409
  createdByUserId: string;
4964
5410
 
4965
5411
  /**
4966
- * Version 1 Insight definition: one to ten metrics and a day, week, or month
4967
- * interval. Sum and average require a numeric event property. Filters use the
4968
- * analytics property catalog.
5412
+ * Version 1 Insight definition: one to ten metrics and an hour, day, week, or
5413
+ * month interval (up to 366 buckets). Sum and average require a numeric event
5414
+ * property. Metrics select eventNames or allEvents. includeBots defaults to false.
5415
+ * Filters use the analytics property catalog.
4969
5416
  */
4970
5417
  definition: Report.Definition;
4971
5418
 
@@ -5000,12 +5447,13 @@ export namespace DashboardResultsResponse {
5000
5447
 
5001
5448
  export namespace Report {
5002
5449
  /**
5003
- * Version 1 Insight definition: one to ten metrics and a day, week, or month
5004
- * interval. Sum and average require a numeric event property. Filters use the
5005
- * analytics property catalog.
5450
+ * Version 1 Insight definition: one to ten metrics and an hour, day, week, or
5451
+ * month interval (up to 366 buckets). Sum and average require a numeric event
5452
+ * property. Metrics select eventNames or allEvents. includeBots defaults to false.
5453
+ * Filters use the analytics property catalog.
5006
5454
  */
5007
5455
  export interface Definition {
5008
- interval: 'day' | 'week' | 'month';
5456
+ interval: 'hour' | 'day' | 'week' | 'month';
5009
5457
 
5010
5458
  kind: 'insight';
5011
5459
 
@@ -5014,6 +5462,11 @@ export namespace DashboardResultsResponse {
5014
5462
  version: 1;
5015
5463
 
5016
5464
  filter?: Definition.Filter;
5465
+
5466
+ /**
5467
+ * Include bot events and sessions; test events remain excluded. Defaults to false.
5468
+ */
5469
+ includeBots?: boolean;
5017
5470
  }
5018
5471
 
5019
5472
  export namespace Definition {
@@ -5030,6 +5483,11 @@ export namespace DashboardResultsResponse {
5030
5483
 
5031
5484
  name: string;
5032
5485
 
5486
+ /**
5487
+ * Count every event name. Requires an empty eventNames array.
5488
+ */
5489
+ allEvents?: boolean;
5490
+
5033
5491
  filter?: Metric.Filter;
5034
5492
 
5035
5493
  property?: Metric.Property;
@@ -5254,7 +5712,7 @@ export namespace DashboardResultsResponse {
5254
5712
 
5255
5713
  from: string;
5256
5714
 
5257
- interval: 'day' | 'week' | 'month';
5715
+ interval: 'hour' | 'day' | 'week' | 'month';
5258
5716
 
5259
5717
  sourceCompleteness: 'unknown';
5260
5718
 
@@ -5262,10 +5720,36 @@ export namespace DashboardResultsResponse {
5262
5720
 
5263
5721
  to: string;
5264
5722
 
5723
+ breakdown?: Scope.Breakdown | null;
5724
+
5265
5725
  comparison?: Scope.Comparison | null;
5266
5726
  }
5267
5727
 
5268
5728
  export namespace Scope {
5729
+ export interface Breakdown {
5730
+ atAnchorId: string | null;
5731
+
5732
+ limit: number;
5733
+
5734
+ property: Breakdown.Property;
5735
+
5736
+ stepNumber: number | null;
5737
+
5738
+ truncated: boolean;
5739
+
5740
+ valueCount: number;
5741
+ }
5742
+
5743
+ export namespace Breakdown {
5744
+ export interface Property {
5745
+ property: string;
5746
+
5747
+ type: 'string' | 'number' | 'boolean';
5748
+
5749
+ path?: Array<string>;
5750
+ }
5751
+ }
5752
+
5269
5753
  export interface Comparison {
5270
5754
  from: string;
5271
5755
 
@@ -5291,6 +5775,8 @@ export namespace DashboardResultsResponse {
5291
5775
  points: Array<Series.Point>;
5292
5776
 
5293
5777
  rangeValue: number | null;
5778
+
5779
+ segment?: Series.Segment | null;
5294
5780
  }
5295
5781
 
5296
5782
  export namespace Series {
@@ -5313,6 +5799,18 @@ export namespace DashboardResultsResponse {
5313
5799
 
5314
5800
  smoothed: number | null;
5315
5801
  }
5802
+
5803
+ export interface Segment {
5804
+ key: string;
5805
+
5806
+ kind: 'value' | 'other' | 'not_set';
5807
+
5808
+ label: string;
5809
+
5810
+ rank: number;
5811
+
5812
+ value: string | null;
5813
+ }
5316
5814
  }
5317
5815
  }
5318
5816
  }
@@ -5604,6 +6102,16 @@ export namespace DashboardResultsResponse {
5604
6102
  */
5605
6103
  totalVisitors: number;
5606
6104
 
6105
+ /**
6106
+ * Per-segment results when `breakdown` was requested; null otherwise.
6107
+ */
6108
+ breakdown?: Result.Breakdown | null;
6109
+
6110
+ /**
6111
+ * Results for the compared dates when `comparison` was requested; null otherwise.
6112
+ */
6113
+ comparison?: Result.Comparison | null;
6114
+
5607
6115
  /**
5608
6116
  * Average time from first step to last step in seconds. Null when no completions.
5609
6117
  */
@@ -5673,6 +6181,291 @@ export namespace DashboardResultsResponse {
5673
6181
  */
5674
6182
  avgTimeToNextStep?: number | null;
5675
6183
  }
6184
+
6185
+ /**
6186
+ * Per-segment results when `breakdown` was requested; null otherwise.
6187
+ */
6188
+ export interface Breakdown {
6189
+ scope: Breakdown.Scope;
6190
+
6191
+ /**
6192
+ * Segments in rank order.
6193
+ */
6194
+ segments: Array<Breakdown.Segment>;
6195
+ }
6196
+
6197
+ export namespace Breakdown {
6198
+ export interface Scope {
6199
+ atAnchorId: string | null;
6200
+
6201
+ limit: number;
6202
+
6203
+ property: Scope.Property;
6204
+
6205
+ stepNumber: number | null;
6206
+
6207
+ truncated: boolean;
6208
+
6209
+ /**
6210
+ * Distinct values seen.
6211
+ */
6212
+ valueCount: number;
6213
+ }
6214
+
6215
+ export namespace Scope {
6216
+ export interface Property {
6217
+ property: string;
6218
+
6219
+ type: 'string' | 'number' | 'boolean';
6220
+
6221
+ path?: Array<string>;
6222
+ }
6223
+ }
6224
+
6225
+ export interface Segment {
6226
+ /**
6227
+ * Ratio of last-step to first-step volume in this segment, as a percentage.
6228
+ */
6229
+ overallConversionRate: number;
6230
+
6231
+ segment: Segment.Segment;
6232
+
6233
+ /**
6234
+ * Per-step results for this segment.
6235
+ */
6236
+ steps: Array<Segment.Step>;
6237
+
6238
+ /**
6239
+ * First-step volume in this segment.
6240
+ */
6241
+ totalVisitors: number;
6242
+
6243
+ /**
6244
+ * Average time from first step to last step in seconds. Null when no completions.
6245
+ */
6246
+ overallAvgTimeToConversion?: number | null;
6247
+ }
6248
+
6249
+ export namespace Segment {
6250
+ export interface Segment {
6251
+ /**
6252
+ * Segment key: v:<value>, $other, or $none.
6253
+ */
6254
+ key: string;
6255
+
6256
+ kind: 'value' | 'other' | 'not_set';
6257
+
6258
+ label: string;
6259
+
6260
+ rank: number;
6261
+
6262
+ /**
6263
+ * Null for other and not_set.
6264
+ */
6265
+ value: string | null;
6266
+ }
6267
+
6268
+ export interface Step {
6269
+ conversionCount: number;
6270
+
6271
+ /**
6272
+ * Step ratio as a percentage. Event-counting ratios may exceed 100%.
6273
+ */
6274
+ conversionRate: number;
6275
+
6276
+ /**
6277
+ * Drop-off percentage for participant counting; zero when the previous step volume
6278
+ * is zero. Not a participant loss measure for event counting.
6279
+ */
6280
+ dropOffRate: number;
6281
+
6282
+ dropOffSessionIds: Array<string>;
6283
+
6284
+ dropOffVisitorIds: Array<string>;
6285
+
6286
+ /**
6287
+ * Ratio to first-step volume as a percentage. Event-counting ratios may exceed
6288
+ * 100%.
6289
+ */
6290
+ overallConversionRate: number;
6291
+
6292
+ sessionIds: Array<string>;
6293
+
6294
+ stepNumber: number;
6295
+
6296
+ /**
6297
+ * Step volume using the saved counting method: unique people, sessions, or events.
6298
+ */
6299
+ visitorCount: number;
6300
+
6301
+ visitorIds: Array<string>;
6302
+
6303
+ /**
6304
+ * Average incoming hop time from the previous step to this step, in seconds.
6305
+ */
6306
+ avgTimeToNextStep?: number | null;
6307
+ }
6308
+ }
6309
+ }
6310
+
6311
+ /**
6312
+ * Results for the compared dates when `comparison` was requested; null otherwise.
6313
+ */
6314
+ export interface Comparison {
6315
+ overallConversionRate: number;
6316
+
6317
+ scope: Comparison.Scope;
6318
+
6319
+ /**
6320
+ * Same keys and order as `breakdown.segments`.
6321
+ */
6322
+ segments: Array<Comparison.Segment>;
6323
+
6324
+ /**
6325
+ * Per-step results for the compared dates. Sample ID arrays are empty.
6326
+ */
6327
+ steps: Array<Comparison.Step>;
6328
+
6329
+ totalVisitors: number;
6330
+
6331
+ overallAvgTimeToConversion?: number | null;
6332
+ }
6333
+
6334
+ export namespace Comparison {
6335
+ export interface Scope {
6336
+ from: string;
6337
+
6338
+ kind: 'previous_period' | 'previous_year' | 'custom';
6339
+
6340
+ to: string;
6341
+ }
6342
+
6343
+ export interface Segment {
6344
+ /**
6345
+ * Ratio of last-step to first-step volume in this segment, as a percentage.
6346
+ */
6347
+ overallConversionRate: number;
6348
+
6349
+ segment: Segment.Segment;
6350
+
6351
+ /**
6352
+ * Per-step results for this segment.
6353
+ */
6354
+ steps: Array<Segment.Step>;
6355
+
6356
+ /**
6357
+ * First-step volume in this segment.
6358
+ */
6359
+ totalVisitors: number;
6360
+
6361
+ /**
6362
+ * Average time from first step to last step in seconds. Null when no completions.
6363
+ */
6364
+ overallAvgTimeToConversion?: number | null;
6365
+ }
6366
+
6367
+ export namespace Segment {
6368
+ export interface Segment {
6369
+ /**
6370
+ * Segment key: v:<value>, $other, or $none.
6371
+ */
6372
+ key: string;
6373
+
6374
+ kind: 'value' | 'other' | 'not_set';
6375
+
6376
+ label: string;
6377
+
6378
+ rank: number;
6379
+
6380
+ /**
6381
+ * Null for other and not_set.
6382
+ */
6383
+ value: string | null;
6384
+ }
6385
+
6386
+ export interface Step {
6387
+ conversionCount: number;
6388
+
6389
+ /**
6390
+ * Step ratio as a percentage. Event-counting ratios may exceed 100%.
6391
+ */
6392
+ conversionRate: number;
6393
+
6394
+ /**
6395
+ * Drop-off percentage for participant counting; zero when the previous step volume
6396
+ * is zero. Not a participant loss measure for event counting.
6397
+ */
6398
+ dropOffRate: number;
6399
+
6400
+ dropOffSessionIds: Array<string>;
6401
+
6402
+ dropOffVisitorIds: Array<string>;
6403
+
6404
+ /**
6405
+ * Ratio to first-step volume as a percentage. Event-counting ratios may exceed
6406
+ * 100%.
6407
+ */
6408
+ overallConversionRate: number;
6409
+
6410
+ sessionIds: Array<string>;
6411
+
6412
+ stepNumber: number;
6413
+
6414
+ /**
6415
+ * Step volume using the saved counting method: unique people, sessions, or events.
6416
+ */
6417
+ visitorCount: number;
6418
+
6419
+ visitorIds: Array<string>;
6420
+
6421
+ /**
6422
+ * Average incoming hop time from the previous step to this step, in seconds.
6423
+ */
6424
+ avgTimeToNextStep?: number | null;
6425
+ }
6426
+ }
6427
+
6428
+ export interface Step {
6429
+ conversionCount: number;
6430
+
6431
+ /**
6432
+ * Step ratio as a percentage. Event-counting ratios may exceed 100%.
6433
+ */
6434
+ conversionRate: number;
6435
+
6436
+ /**
6437
+ * Drop-off percentage for participant counting; zero when the previous step volume
6438
+ * is zero. Not a participant loss measure for event counting.
6439
+ */
6440
+ dropOffRate: number;
6441
+
6442
+ dropOffSessionIds: Array<string>;
6443
+
6444
+ dropOffVisitorIds: Array<string>;
6445
+
6446
+ /**
6447
+ * Ratio to first-step volume as a percentage. Event-counting ratios may exceed
6448
+ * 100%.
6449
+ */
6450
+ overallConversionRate: number;
6451
+
6452
+ sessionIds: Array<string>;
6453
+
6454
+ stepNumber: number;
6455
+
6456
+ /**
6457
+ * Step volume using the saved counting method: unique people, sessions, or events.
6458
+ */
6459
+ visitorCount: number;
6460
+
6461
+ visitorIds: Array<string>;
6462
+
6463
+ /**
6464
+ * Average incoming hop time from the previous step to this step, in seconds.
6465
+ */
6466
+ avgTimeToNextStep?: number | null;
6467
+ }
6468
+ }
5676
6469
  }
5677
6470
  }
5678
6471
 
@@ -6968,6 +7761,16 @@ export namespace DashboardResultsResponse {
6968
7761
  reentry: 'FIRST' | 'BEST';
6969
7762
 
6970
7763
  sourceIds: Array<string>;
7764
+
7765
+ /**
7766
+ * The requested breakdown; null without one.
7767
+ */
7768
+ breakdown?: EffectiveContext.Breakdown | null;
7769
+
7770
+ /**
7771
+ * The compared dates; null without a comparison.
7772
+ */
7773
+ comparison?: EffectiveContext.Comparison | null;
6971
7774
  }
6972
7775
 
6973
7776
  export namespace EffectiveContext {
@@ -7146,11 +7949,50 @@ export namespace DashboardResultsResponse {
7146
7949
 
7147
7950
  to: string;
7148
7951
  }
7952
+
7953
+ /**
7954
+ * The requested breakdown; null without one.
7955
+ */
7956
+ export interface Breakdown {
7957
+ atAnchorId: string | null;
7958
+
7959
+ limit: number;
7960
+
7961
+ property: Breakdown.Property;
7962
+
7963
+ stepNumber: number | null;
7964
+
7965
+ truncated: boolean;
7966
+
7967
+ /**
7968
+ * Distinct values seen.
7969
+ */
7970
+ valueCount: number;
7971
+ }
7972
+
7973
+ export namespace Breakdown {
7974
+ export interface Property {
7975
+ property: string;
7976
+
7977
+ type: 'string' | 'number' | 'boolean';
7978
+
7979
+ path?: Array<string>;
7980
+ }
7981
+ }
7982
+
7983
+ /**
7984
+ * The compared dates; null without a comparison.
7985
+ */
7986
+ export interface Comparison {
7987
+ from: string;
7988
+
7989
+ kind: 'previous_period' | 'previous_year' | 'custom';
7990
+
7991
+ to: string;
7992
+ }
7149
7993
  }
7150
7994
 
7151
7995
  export interface Execution {
7152
- cacheHit: boolean;
7153
-
7154
7996
  generatedAt: string;
7155
7997
 
7156
7998
  queryId: string;
@@ -7158,8 +8000,6 @@ export namespace DashboardResultsResponse {
7158
8000
  sampled: boolean;
7159
8001
 
7160
8002
  warnings: Array<Execution.Warning>;
7161
-
7162
- cacheAgeMs?: number | null;
7163
8003
  }
7164
8004
 
7165
8005
  export namespace Execution {
@@ -7231,15 +8071,27 @@ export namespace DashboardResultsResponse {
7231
8071
  }
7232
8072
 
7233
8073
  export interface Series {
8074
+ /**
8075
+ * Period: '' for the selected dates, or the comparison kind (previous_period,
8076
+ * previous_year, custom).
8077
+ */
7234
8078
  id: string;
7235
8079
 
7236
8080
  label: string;
7237
8081
 
7238
8082
  segments: Array<Series.Segment>;
8083
+
8084
+ /**
8085
+ * The compared dates on a comparison series; null on the selected dates.
8086
+ */
8087
+ comparison?: Series.Comparison | null;
7239
8088
  }
7240
8089
 
7241
8090
  export namespace Series {
7242
8091
  export interface Segment {
8092
+ /**
8093
+ * '' for All traffic (always first), otherwise the breakdown segment key.
8094
+ */
7243
8095
  id: string;
7244
8096
 
7245
8097
  columns: Array<Segment.Column>;
@@ -7266,6 +8118,11 @@ export namespace DashboardResultsResponse {
7266
8118
 
7267
8119
  unfocusedEntryCount: string;
7268
8120
 
8121
+ /**
8122
+ * The breakdown segment; null on All traffic.
8123
+ */
8124
+ breakdown?: Segment.Breakdown | null;
8125
+
7269
8126
  observationIncompleteCount?: string | null;
7270
8127
 
7271
8128
  timedOutCount?: string | null;
@@ -7339,6 +8196,9 @@ export namespace DashboardResultsResponse {
7339
8196
 
7340
8197
  denominator: string;
7341
8198
 
8199
+ /**
8200
+ * Stable across segments and periods; id is not.
8201
+ */
7342
8202
  key: string;
7343
8203
 
7344
8204
  kind: 'ANCHOR' | 'EVENT' | 'PAGE' | 'TERMINAL' | 'OMITTED_STEPS' | 'OTHER_EVENTS';
@@ -7877,6 +8737,38 @@ export namespace DashboardResultsResponse {
7877
8737
  }
7878
8738
  }
7879
8739
  }
8740
+
8741
+ /**
8742
+ * The breakdown segment; null on All traffic.
8743
+ */
8744
+ export interface Breakdown {
8745
+ /**
8746
+ * Segment key: v:<value>, $other, or $none.
8747
+ */
8748
+ key: string;
8749
+
8750
+ kind: 'value' | 'other' | 'not_set';
8751
+
8752
+ label: string;
8753
+
8754
+ rank: number;
8755
+
8756
+ /**
8757
+ * Null for other and not_set.
8758
+ */
8759
+ value: string | null;
8760
+ }
8761
+ }
8762
+
8763
+ /**
8764
+ * The compared dates on a comparison series; null on the selected dates.
8765
+ */
8766
+ export interface Comparison {
8767
+ from: string;
8768
+
8769
+ kind: 'previous_period' | 'previous_year' | 'custom';
8770
+
8771
+ to: string;
7880
8772
  }
7881
8773
  }
7882
8774
 
@@ -8052,7 +8944,7 @@ export interface DashboardCreateParams {
8052
8944
 
8053
8945
  /**
8054
8946
  * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
8055
- * Journey tiles support up to 91 inclusive days; Insights retain their native
8947
+ * Journey tiles support up to 93 inclusive days; Insights retain their native
8056
8948
  * range limit.
8057
8949
  */
8058
8950
  reportContext: DashboardCreateParams.ReportContext;
@@ -8089,7 +8981,7 @@ export interface DashboardCreateParams {
8089
8981
  export namespace DashboardCreateParams {
8090
8982
  /**
8091
8983
  * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
8092
- * Journey tiles support up to 91 inclusive days; Insights retain their native
8984
+ * Journey tiles support up to 93 inclusive days; Insights retain their native
8093
8985
  * range limit.
8094
8986
  */
8095
8987
  export interface ReportContext {
@@ -8415,7 +9307,7 @@ export interface DashboardUpdateParams {
8415
9307
 
8416
9308
  /**
8417
9309
  * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
8418
- * Journey tiles support up to 91 inclusive days; Insights retain their native
9310
+ * Journey tiles support up to 93 inclusive days; Insights retain their native
8419
9311
  * range limit.
8420
9312
  */
8421
9313
  reportContext?: DashboardUpdateParams.ReportContext;
@@ -8586,7 +9478,7 @@ export namespace DashboardUpdateParams {
8586
9478
 
8587
9479
  /**
8588
9480
  * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
8589
- * Journey tiles support up to 91 inclusive days; Insights retain their native
9481
+ * Journey tiles support up to 93 inclusive days; Insights retain their native
8590
9482
  * range limit.
8591
9483
  */
8592
9484
  export interface ReportContext {