@oursprivacy/platform-sdk 1.66.0 → 1.68.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 (82) 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 +96 -1
  12. package/resources/analytics.d.mts.map +1 -1
  13. package/resources/analytics.d.ts +96 -1
  14. package/resources/analytics.d.ts.map +1 -1
  15. package/resources/analytics.js +12 -0
  16. package/resources/analytics.js.map +1 -1
  17. package/resources/analytics.mjs +12 -0
  18. package/resources/analytics.mjs.map +1 -1
  19. package/resources/dashboards.d.mts +50 -30
  20. package/resources/dashboards.d.mts.map +1 -1
  21. package/resources/dashboards.d.ts +50 -30
  22. package/resources/dashboards.d.ts.map +1 -1
  23. package/resources/funnels.d.mts +3 -3
  24. package/resources/funnels.d.ts +3 -3
  25. package/resources/funnels.js +1 -1
  26. package/resources/funnels.mjs +1 -1
  27. package/resources/index.d.mts +3 -1
  28. package/resources/index.d.mts.map +1 -1
  29. package/resources/index.d.ts +3 -1
  30. package/resources/index.d.ts.map +1 -1
  31. package/resources/index.js +5 -1
  32. package/resources/index.js.map +1 -1
  33. package/resources/index.mjs +2 -0
  34. package/resources/index.mjs.map +1 -1
  35. package/resources/insights.d.mts +105 -45
  36. package/resources/insights.d.mts.map +1 -1
  37. package/resources/insights.d.ts +105 -45
  38. package/resources/insights.d.ts.map +1 -1
  39. package/resources/query-events.d.mts +314 -0
  40. package/resources/query-events.d.mts.map +1 -0
  41. package/resources/query-events.d.ts +314 -0
  42. package/resources/query-events.d.ts.map +1 -0
  43. package/resources/query-events.js +64 -0
  44. package/resources/query-events.js.map +1 -0
  45. package/resources/query-events.mjs +60 -0
  46. package/resources/query-events.mjs.map +1 -0
  47. package/resources/query-visitors.d.mts +127 -0
  48. package/resources/query-visitors.d.mts.map +1 -0
  49. package/resources/query-visitors.d.ts +127 -0
  50. package/resources/query-visitors.d.ts.map +1 -0
  51. package/resources/query-visitors.js +35 -0
  52. package/resources/query-visitors.js.map +1 -0
  53. package/resources/query-visitors.mjs +31 -0
  54. package/resources/query-visitors.mjs.map +1 -0
  55. package/resources/tag-manager-tags.d.mts +8 -4
  56. package/resources/tag-manager-tags.d.mts.map +1 -1
  57. package/resources/tag-manager-tags.d.ts +8 -4
  58. package/resources/tag-manager-tags.d.ts.map +1 -1
  59. package/resources/test-events.d.mts +37 -0
  60. package/resources/test-events.d.mts.map +1 -1
  61. package/resources/test-events.d.ts +37 -0
  62. package/resources/test-events.d.ts.map +1 -1
  63. package/resources/web-analytics.d.mts +1 -1
  64. package/resources/web-analytics.d.mts.map +1 -1
  65. package/resources/web-analytics.d.ts +1 -1
  66. package/resources/web-analytics.d.ts.map +1 -1
  67. package/src/client.ts +52 -0
  68. package/src/resources/analytics.ts +104 -0
  69. package/src/resources/dashboards.ts +54 -30
  70. package/src/resources/funnels.ts +3 -3
  71. package/src/resources/index.ts +23 -0
  72. package/src/resources/insights.ts +117 -45
  73. package/src/resources/query-events.ts +447 -0
  74. package/src/resources/query-visitors.ts +190 -0
  75. package/src/resources/tag-manager-tags.ts +8 -4
  76. package/src/resources/test-events.ts +45 -0
  77. package/src/resources/web-analytics.ts +1 -1
  78. package/src/version.ts +1 -1
  79. package/version.d.mts +1 -1
  80. package/version.d.ts +1 -1
  81. package/version.js +1 -1
  82. 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
 
@@ -4963,9 +4975,10 @@ export namespace DashboardResultsResponse {
4963
4975
  createdByUserId: string;
4964
4976
 
4965
4977
  /**
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.
4978
+ * Version 1 Insight definition: one to ten metrics and an hour, day, week, or
4979
+ * month interval (up to 366 buckets). Sum and average require a numeric event
4980
+ * property. Metrics select eventNames or allEvents. includeBots defaults to false.
4981
+ * Filters use the analytics property catalog.
4969
4982
  */
4970
4983
  definition: Report.Definition;
4971
4984
 
@@ -5000,12 +5013,13 @@ export namespace DashboardResultsResponse {
5000
5013
 
5001
5014
  export namespace Report {
5002
5015
  /**
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.
5016
+ * Version 1 Insight definition: one to ten metrics and an hour, day, week, or
5017
+ * month interval (up to 366 buckets). Sum and average require a numeric event
5018
+ * property. Metrics select eventNames or allEvents. includeBots defaults to false.
5019
+ * Filters use the analytics property catalog.
5006
5020
  */
5007
5021
  export interface Definition {
5008
- interval: 'day' | 'week' | 'month';
5022
+ interval: 'hour' | 'day' | 'week' | 'month';
5009
5023
 
5010
5024
  kind: 'insight';
5011
5025
 
@@ -5014,6 +5028,11 @@ export namespace DashboardResultsResponse {
5014
5028
  version: 1;
5015
5029
 
5016
5030
  filter?: Definition.Filter;
5031
+
5032
+ /**
5033
+ * Include bot events and sessions; test events remain excluded. Defaults to false.
5034
+ */
5035
+ includeBots?: boolean;
5017
5036
  }
5018
5037
 
5019
5038
  export namespace Definition {
@@ -5030,6 +5049,11 @@ export namespace DashboardResultsResponse {
5030
5049
 
5031
5050
  name: string;
5032
5051
 
5052
+ /**
5053
+ * Count every event name. Requires an empty eventNames array.
5054
+ */
5055
+ allEvents?: boolean;
5056
+
5033
5057
  filter?: Metric.Filter;
5034
5058
 
5035
5059
  property?: Metric.Property;
@@ -5254,7 +5278,7 @@ export namespace DashboardResultsResponse {
5254
5278
 
5255
5279
  from: string;
5256
5280
 
5257
- interval: 'day' | 'week' | 'month';
5281
+ interval: 'hour' | 'day' | 'week' | 'month';
5258
5282
 
5259
5283
  sourceCompleteness: 'unknown';
5260
5284
 
@@ -8052,7 +8076,7 @@ export interface DashboardCreateParams {
8052
8076
 
8053
8077
  /**
8054
8078
  * 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
8079
+ * Journey tiles support up to 93 inclusive days; Insights retain their native
8056
8080
  * range limit.
8057
8081
  */
8058
8082
  reportContext: DashboardCreateParams.ReportContext;
@@ -8089,7 +8113,7 @@ export interface DashboardCreateParams {
8089
8113
  export namespace DashboardCreateParams {
8090
8114
  /**
8091
8115
  * 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
8116
+ * Journey tiles support up to 93 inclusive days; Insights retain their native
8093
8117
  * range limit.
8094
8118
  */
8095
8119
  export interface ReportContext {
@@ -8415,7 +8439,7 @@ export interface DashboardUpdateParams {
8415
8439
 
8416
8440
  /**
8417
8441
  * 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
8442
+ * Journey tiles support up to 93 inclusive days; Insights retain their native
8419
8443
  * range limit.
8420
8444
  */
8421
8445
  reportContext?: DashboardUpdateParams.ReportContext;
@@ -8586,7 +8610,7 @@ export namespace DashboardUpdateParams {
8586
8610
 
8587
8611
  /**
8588
8612
  * 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
8613
+ * Journey tiles support up to 93 inclusive days; Insights retain their native
8590
8614
  * range limit.
8591
8615
  */
8592
8616
  export interface ReportContext {
@@ -72,7 +72,7 @@ export class Funnels extends APIResource {
72
72
  * data at request time; ad hoc filter, saved-scope, and web-source overrides are
73
73
  * not accepted. Observation completeness is null when the source coverage
74
74
  * watermark is unavailable. `to` must be on or after `from`, and the window may
75
- * span at most 91 days including both endpoints. Requires API-key scope or current
75
+ * span at most 93 days including both endpoints. Requires API-key scope or current
76
76
  * OAuth user permission: web-analytics:view
77
77
  */
78
78
  results(
@@ -1787,7 +1787,7 @@ export namespace FunnelUpdateParams {
1787
1787
  export interface FunnelResultsParams {
1788
1788
  /**
1789
1789
  * Inclusive lower bound of the analysis window, as a UTC calendar day in
1790
- * `YYYY-MM-DD` format. The window may span at most 91 days including both
1790
+ * `YYYY-MM-DD` format. The window may span at most 93 days including both
1791
1791
  * endpoints.
1792
1792
  */
1793
1793
  from: string;
@@ -1795,7 +1795,7 @@ export interface FunnelResultsParams {
1795
1795
  /**
1796
1796
  * Inclusive upper bound of the analysis window, as a UTC calendar day in
1797
1797
  * `YYYY-MM-DD` format. Must be on or after `from`, and the window may span at most
1798
- * 91 days including both endpoints.
1798
+ * 93 days including both endpoints.
1799
1799
  */
1800
1800
  to: string;
1801
1801
 
@@ -14,6 +14,7 @@ export {
14
14
  Analytics,
15
15
  type AnalyticsQueryCatalogResponse,
16
16
  type AnalyticsPropertySuggestionsResponse,
17
+ type AnalyticsEventNamesResponse,
17
18
  type AnalyticsPropertySuggestionsParams,
18
19
  } from './analytics';
19
20
  export {
@@ -327,6 +328,28 @@ export {
327
328
  type PersonalizationPropertyUpdateParams,
328
329
  type PersonalizationPropertyListResponsesCursor,
329
330
  } from './personalization-properties';
331
+ export {
332
+ QueryEvents,
333
+ type QueryEventListResponse,
334
+ type QueryEventCapabilitiesResponse,
335
+ type QueryEventCatalogResponse,
336
+ type QueryEventPropertySuggestionsResponse,
337
+ type QueryEventEventNamesResponse,
338
+ type QueryEventOccurrenceResponse,
339
+ type QueryEventExportResponse,
340
+ type QueryEventListParams,
341
+ type QueryEventPropertySuggestionsParams,
342
+ type QueryEventOccurrenceParams,
343
+ type QueryEventExportParams,
344
+ } from './query-events';
345
+ export {
346
+ QueryVisitors,
347
+ type QueryVisitorListResponse,
348
+ type QueryVisitorCapabilitiesResponse,
349
+ type QueryVisitorProfileSearchResponse,
350
+ type QueryVisitorListParams,
351
+ type QueryVisitorProfileSearchParams,
352
+ } from './query-visitors';
330
353
  export {
331
354
  ReplaySettings,
332
355
  type ReplaySettingListResponse,
@@ -107,9 +107,10 @@ export interface InsightListResponse {
107
107
  createdByUserId: string;
108
108
 
109
109
  /**
110
- * Version 1 Insight definition: one to ten metrics and a day, week, or month
111
- * interval. Sum and average require a numeric event property. Filters use the
112
- * analytics property catalog.
110
+ * Version 1 Insight definition: one to ten metrics and an hour, day, week, or
111
+ * month interval (up to 366 buckets). Sum and average require a numeric event
112
+ * property. Metrics select eventNames or allEvents. includeBots defaults to false.
113
+ * Filters use the analytics property catalog.
113
114
  */
114
115
  definition: InsightListResponse.Definition;
115
116
 
@@ -144,12 +145,13 @@ export interface InsightListResponse {
144
145
 
145
146
  export namespace InsightListResponse {
146
147
  /**
147
- * Version 1 Insight definition: one to ten metrics and a day, week, or month
148
- * interval. Sum and average require a numeric event property. Filters use the
149
- * analytics property catalog.
148
+ * Version 1 Insight definition: one to ten metrics and an hour, day, week, or
149
+ * month interval (up to 366 buckets). Sum and average require a numeric event
150
+ * property. Metrics select eventNames or allEvents. includeBots defaults to false.
151
+ * Filters use the analytics property catalog.
150
152
  */
151
153
  export interface Definition {
152
- interval: 'day' | 'week' | 'month';
154
+ interval: 'hour' | 'day' | 'week' | 'month';
153
155
 
154
156
  kind: 'insight';
155
157
 
@@ -158,6 +160,11 @@ export namespace InsightListResponse {
158
160
  version: 1;
159
161
 
160
162
  filter?: Definition.Filter;
163
+
164
+ /**
165
+ * Include bot events and sessions; test events remain excluded. Defaults to false.
166
+ */
167
+ includeBots?: boolean;
161
168
  }
162
169
 
163
170
  export namespace Definition {
@@ -174,6 +181,11 @@ export namespace InsightListResponse {
174
181
 
175
182
  name: string;
176
183
 
184
+ /**
185
+ * Count every event name. Requires an empty eventNames array.
186
+ */
187
+ allEvents?: boolean;
188
+
177
189
  filter?: Metric.Filter;
178
190
 
179
191
  property?: Metric.Property;
@@ -372,9 +384,10 @@ export interface InsightCreateResponse {
372
384
  createdByUserId: string;
373
385
 
374
386
  /**
375
- * Version 1 Insight definition: one to ten metrics and a day, week, or month
376
- * interval. Sum and average require a numeric event property. Filters use the
377
- * analytics property catalog.
387
+ * Version 1 Insight definition: one to ten metrics and an hour, day, week, or
388
+ * month interval (up to 366 buckets). Sum and average require a numeric event
389
+ * property. Metrics select eventNames or allEvents. includeBots defaults to false.
390
+ * Filters use the analytics property catalog.
378
391
  */
379
392
  definition: InsightCreateResponse.Definition;
380
393
 
@@ -409,12 +422,13 @@ export interface InsightCreateResponse {
409
422
 
410
423
  export namespace InsightCreateResponse {
411
424
  /**
412
- * Version 1 Insight definition: one to ten metrics and a day, week, or month
413
- * interval. Sum and average require a numeric event property. Filters use the
414
- * analytics property catalog.
425
+ * Version 1 Insight definition: one to ten metrics and an hour, day, week, or
426
+ * month interval (up to 366 buckets). Sum and average require a numeric event
427
+ * property. Metrics select eventNames or allEvents. includeBots defaults to false.
428
+ * Filters use the analytics property catalog.
415
429
  */
416
430
  export interface Definition {
417
- interval: 'day' | 'week' | 'month';
431
+ interval: 'hour' | 'day' | 'week' | 'month';
418
432
 
419
433
  kind: 'insight';
420
434
 
@@ -423,6 +437,11 @@ export namespace InsightCreateResponse {
423
437
  version: 1;
424
438
 
425
439
  filter?: Definition.Filter;
440
+
441
+ /**
442
+ * Include bot events and sessions; test events remain excluded. Defaults to false.
443
+ */
444
+ includeBots?: boolean;
426
445
  }
427
446
 
428
447
  export namespace Definition {
@@ -439,6 +458,11 @@ export namespace InsightCreateResponse {
439
458
 
440
459
  name: string;
441
460
 
461
+ /**
462
+ * Count every event name. Requires an empty eventNames array.
463
+ */
464
+ allEvents?: boolean;
465
+
442
466
  filter?: Metric.Filter;
443
467
 
444
468
  property?: Metric.Property;
@@ -637,9 +661,10 @@ export interface InsightRetrieveResponse {
637
661
  createdByUserId: string;
638
662
 
639
663
  /**
640
- * Version 1 Insight definition: one to ten metrics and a day, week, or month
641
- * interval. Sum and average require a numeric event property. Filters use the
642
- * analytics property catalog.
664
+ * Version 1 Insight definition: one to ten metrics and an hour, day, week, or
665
+ * month interval (up to 366 buckets). Sum and average require a numeric event
666
+ * property. Metrics select eventNames or allEvents. includeBots defaults to false.
667
+ * Filters use the analytics property catalog.
643
668
  */
644
669
  definition: InsightRetrieveResponse.Definition;
645
670
 
@@ -674,12 +699,13 @@ export interface InsightRetrieveResponse {
674
699
 
675
700
  export namespace InsightRetrieveResponse {
676
701
  /**
677
- * Version 1 Insight definition: one to ten metrics and a day, week, or month
678
- * interval. Sum and average require a numeric event property. Filters use the
679
- * analytics property catalog.
702
+ * Version 1 Insight definition: one to ten metrics and an hour, day, week, or
703
+ * month interval (up to 366 buckets). Sum and average require a numeric event
704
+ * property. Metrics select eventNames or allEvents. includeBots defaults to false.
705
+ * Filters use the analytics property catalog.
680
706
  */
681
707
  export interface Definition {
682
- interval: 'day' | 'week' | 'month';
708
+ interval: 'hour' | 'day' | 'week' | 'month';
683
709
 
684
710
  kind: 'insight';
685
711
 
@@ -688,6 +714,11 @@ export namespace InsightRetrieveResponse {
688
714
  version: 1;
689
715
 
690
716
  filter?: Definition.Filter;
717
+
718
+ /**
719
+ * Include bot events and sessions; test events remain excluded. Defaults to false.
720
+ */
721
+ includeBots?: boolean;
691
722
  }
692
723
 
693
724
  export namespace Definition {
@@ -704,6 +735,11 @@ export namespace InsightRetrieveResponse {
704
735
 
705
736
  name: string;
706
737
 
738
+ /**
739
+ * Count every event name. Requires an empty eventNames array.
740
+ */
741
+ allEvents?: boolean;
742
+
707
743
  filter?: Metric.Filter;
708
744
 
709
745
  property?: Metric.Property;
@@ -902,9 +938,10 @@ export interface InsightUpdateResponse {
902
938
  createdByUserId: string;
903
939
 
904
940
  /**
905
- * Version 1 Insight definition: one to ten metrics and a day, week, or month
906
- * interval. Sum and average require a numeric event property. Filters use the
907
- * analytics property catalog.
941
+ * Version 1 Insight definition: one to ten metrics and an hour, day, week, or
942
+ * month interval (up to 366 buckets). Sum and average require a numeric event
943
+ * property. Metrics select eventNames or allEvents. includeBots defaults to false.
944
+ * Filters use the analytics property catalog.
908
945
  */
909
946
  definition: InsightUpdateResponse.Definition;
910
947
 
@@ -939,12 +976,13 @@ export interface InsightUpdateResponse {
939
976
 
940
977
  export namespace InsightUpdateResponse {
941
978
  /**
942
- * Version 1 Insight definition: one to ten metrics and a day, week, or month
943
- * interval. Sum and average require a numeric event property. Filters use the
944
- * analytics property catalog.
979
+ * Version 1 Insight definition: one to ten metrics and an hour, day, week, or
980
+ * month interval (up to 366 buckets). Sum and average require a numeric event
981
+ * property. Metrics select eventNames or allEvents. includeBots defaults to false.
982
+ * Filters use the analytics property catalog.
945
983
  */
946
984
  export interface Definition {
947
- interval: 'day' | 'week' | 'month';
985
+ interval: 'hour' | 'day' | 'week' | 'month';
948
986
 
949
987
  kind: 'insight';
950
988
 
@@ -953,6 +991,11 @@ export namespace InsightUpdateResponse {
953
991
  version: 1;
954
992
 
955
993
  filter?: Definition.Filter;
994
+
995
+ /**
996
+ * Include bot events and sessions; test events remain excluded. Defaults to false.
997
+ */
998
+ includeBots?: boolean;
956
999
  }
957
1000
 
958
1001
  export namespace Definition {
@@ -969,6 +1012,11 @@ export namespace InsightUpdateResponse {
969
1012
 
970
1013
  name: string;
971
1014
 
1015
+ /**
1016
+ * Count every event name. Requires an empty eventNames array.
1017
+ */
1018
+ allEvents?: boolean;
1019
+
972
1020
  filter?: Metric.Filter;
973
1021
 
974
1022
  property?: Metric.Property;
@@ -1200,7 +1248,7 @@ export interface InsightCapabilitiesResponse {
1200
1248
  | 'year_to_date'
1201
1249
  >;
1202
1250
 
1203
- supportedIntervals: Array<'day' | 'week' | 'month'>;
1251
+ supportedIntervals: Array<'hour' | 'day' | 'week' | 'month'>;
1204
1252
 
1205
1253
  supportedSmoothing: Array<'none' | 'rolling_average'>;
1206
1254
 
@@ -1253,7 +1301,7 @@ export namespace InsightResultsResponse {
1253
1301
 
1254
1302
  from: string;
1255
1303
 
1256
- interval: 'day' | 'week' | 'month';
1304
+ interval: 'hour' | 'day' | 'week' | 'month';
1257
1305
 
1258
1306
  sourceCompleteness: 'unknown';
1259
1307
 
@@ -1349,7 +1397,7 @@ export namespace InsightPreviewResponse {
1349
1397
 
1350
1398
  from: string;
1351
1399
 
1352
- interval: 'day' | 'week' | 'month';
1400
+ interval: 'hour' | 'day' | 'week' | 'month';
1353
1401
 
1354
1402
  sourceCompleteness: 'unknown';
1355
1403
 
@@ -1420,9 +1468,10 @@ export interface InsightListParams extends CursorParams {
1420
1468
 
1421
1469
  export interface InsightCreateParams {
1422
1470
  /**
1423
- * Version 1 Insight definition: one to ten metrics and a day, week, or month
1424
- * interval. Sum and average require a numeric event property. Filters use the
1425
- * analytics property catalog.
1471
+ * Version 1 Insight definition: one to ten metrics and an hour, day, week, or
1472
+ * month interval (up to 366 buckets). Sum and average require a numeric event
1473
+ * property. Metrics select eventNames or allEvents. includeBots defaults to false.
1474
+ * Filters use the analytics property catalog.
1426
1475
  */
1427
1476
  definition: InsightCreateParams.Definition;
1428
1477
 
@@ -1451,12 +1500,13 @@ export interface InsightCreateParams {
1451
1500
 
1452
1501
  export namespace InsightCreateParams {
1453
1502
  /**
1454
- * Version 1 Insight definition: one to ten metrics and a day, week, or month
1455
- * interval. Sum and average require a numeric event property. Filters use the
1456
- * analytics property catalog.
1503
+ * Version 1 Insight definition: one to ten metrics and an hour, day, week, or
1504
+ * month interval (up to 366 buckets). Sum and average require a numeric event
1505
+ * property. Metrics select eventNames or allEvents. includeBots defaults to false.
1506
+ * Filters use the analytics property catalog.
1457
1507
  */
1458
1508
  export interface Definition {
1459
- interval: 'day' | 'week' | 'month';
1509
+ interval: 'hour' | 'day' | 'week' | 'month';
1460
1510
 
1461
1511
  kind: 'insight';
1462
1512
 
@@ -1465,6 +1515,11 @@ export namespace InsightCreateParams {
1465
1515
  version: 1;
1466
1516
 
1467
1517
  filter?: Definition.Filter;
1518
+
1519
+ /**
1520
+ * Include bot events and sessions; test events remain excluded. Defaults to false.
1521
+ */
1522
+ includeBots?: boolean;
1468
1523
  }
1469
1524
 
1470
1525
  export namespace Definition {
@@ -1481,6 +1536,11 @@ export namespace InsightCreateParams {
1481
1536
 
1482
1537
  name: string;
1483
1538
 
1539
+ /**
1540
+ * Count every event name. Requires an empty eventNames array.
1541
+ */
1542
+ allEvents?: boolean;
1543
+
1484
1544
  filter?: Metric.Filter;
1485
1545
 
1486
1546
  property?: Metric.Property;
@@ -1679,9 +1739,10 @@ export interface InsightUpdateParams {
1679
1739
  expectedRevision: string;
1680
1740
 
1681
1741
  /**
1682
- * Version 1 Insight definition: one to ten metrics and a day, week, or month
1683
- * interval. Sum and average require a numeric event property. Filters use the
1684
- * analytics property catalog.
1742
+ * Version 1 Insight definition: one to ten metrics and an hour, day, week, or
1743
+ * month interval (up to 366 buckets). Sum and average require a numeric event
1744
+ * property. Metrics select eventNames or allEvents. includeBots defaults to false.
1745
+ * Filters use the analytics property catalog.
1685
1746
  */
1686
1747
  definition?: InsightUpdateParams.Definition;
1687
1748
 
@@ -1710,12 +1771,13 @@ export interface InsightUpdateParams {
1710
1771
 
1711
1772
  export namespace InsightUpdateParams {
1712
1773
  /**
1713
- * Version 1 Insight definition: one to ten metrics and a day, week, or month
1714
- * interval. Sum and average require a numeric event property. Filters use the
1715
- * analytics property catalog.
1774
+ * Version 1 Insight definition: one to ten metrics and an hour, day, week, or
1775
+ * month interval (up to 366 buckets). Sum and average require a numeric event
1776
+ * property. Metrics select eventNames or allEvents. includeBots defaults to false.
1777
+ * Filters use the analytics property catalog.
1716
1778
  */
1717
1779
  export interface Definition {
1718
- interval: 'day' | 'week' | 'month';
1780
+ interval: 'hour' | 'day' | 'week' | 'month';
1719
1781
 
1720
1782
  kind: 'insight';
1721
1783
 
@@ -1724,6 +1786,11 @@ export namespace InsightUpdateParams {
1724
1786
  version: 1;
1725
1787
 
1726
1788
  filter?: Definition.Filter;
1789
+
1790
+ /**
1791
+ * Include bot events and sessions; test events remain excluded. Defaults to false.
1792
+ */
1793
+ includeBots?: boolean;
1727
1794
  }
1728
1795
 
1729
1796
  export namespace Definition {
@@ -1740,6 +1807,11 @@ export namespace InsightUpdateParams {
1740
1807
 
1741
1808
  name: string;
1742
1809
 
1810
+ /**
1811
+ * Count every event name. Requires an empty eventNames array.
1812
+ */
1813
+ allEvents?: boolean;
1814
+
1743
1815
  filter?: Metric.Filter;
1744
1816
 
1745
1817
  property?: Metric.Property;