@oursprivacy/platform-sdk 1.46.0 → 1.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +20 -11
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +20 -11
  5. package/client.d.ts.map +1 -1
  6. package/client.js +11 -2
  7. package/client.js.map +1 -1
  8. package/client.mjs +11 -2
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/attribution.d.mts +9 -1
  12. package/resources/attribution.d.mts.map +1 -1
  13. package/resources/attribution.d.ts +9 -1
  14. package/resources/attribution.d.ts.map +1 -1
  15. package/resources/consent-settings.d.mts +48 -0
  16. package/resources/consent-settings.d.mts.map +1 -1
  17. package/resources/consent-settings.d.ts +48 -0
  18. package/resources/consent-settings.d.ts.map +1 -1
  19. package/resources/conversion-journey-summaries.d.mts +38 -0
  20. package/resources/conversion-journey-summaries.d.mts.map +1 -1
  21. package/resources/conversion-journey-summaries.d.ts +38 -0
  22. package/resources/conversion-journey-summaries.d.ts.map +1 -1
  23. package/resources/conversion-journey-summaries.js +38 -0
  24. package/resources/conversion-journey-summaries.js.map +1 -1
  25. package/resources/conversion-journey-summaries.mjs +38 -0
  26. package/resources/conversion-journey-summaries.mjs.map +1 -1
  27. package/resources/data-governance.d.mts +5 -5
  28. package/resources/data-governance.d.mts.map +1 -1
  29. package/resources/data-governance.d.ts +5 -5
  30. package/resources/data-governance.d.ts.map +1 -1
  31. package/resources/destinations.d.mts +7 -27
  32. package/resources/destinations.d.mts.map +1 -1
  33. package/resources/destinations.d.ts +7 -27
  34. package/resources/destinations.d.ts.map +1 -1
  35. package/resources/experiment-variants.d.mts +4 -2
  36. package/resources/experiment-variants.d.mts.map +1 -1
  37. package/resources/experiment-variants.d.ts +4 -2
  38. package/resources/experiment-variants.d.ts.map +1 -1
  39. package/resources/experiments.d.mts +677 -102
  40. package/resources/experiments.d.mts.map +1 -1
  41. package/resources/experiments.d.ts +677 -102
  42. package/resources/experiments.d.ts.map +1 -1
  43. package/resources/experiments.js +32 -2
  44. package/resources/experiments.js.map +1 -1
  45. package/resources/experiments.mjs +32 -2
  46. package/resources/experiments.mjs.map +1 -1
  47. package/resources/funnels.d.mts +172 -22
  48. package/resources/funnels.d.mts.map +1 -1
  49. package/resources/funnels.d.ts +172 -22
  50. package/resources/funnels.d.ts.map +1 -1
  51. package/resources/funnels.js +10 -2
  52. package/resources/funnels.js.map +1 -1
  53. package/resources/funnels.mjs +10 -2
  54. package/resources/funnels.mjs.map +1 -1
  55. package/resources/heatmap-pages.d.mts +42 -14
  56. package/resources/heatmap-pages.d.mts.map +1 -1
  57. package/resources/heatmap-pages.d.ts +42 -14
  58. package/resources/heatmap-pages.d.ts.map +1 -1
  59. package/resources/heatmap-pages.js +11 -7
  60. package/resources/heatmap-pages.js.map +1 -1
  61. package/resources/heatmap-pages.mjs +11 -7
  62. package/resources/heatmap-pages.mjs.map +1 -1
  63. package/resources/index.d.mts +8 -5
  64. package/resources/index.d.mts.map +1 -1
  65. package/resources/index.d.ts +8 -5
  66. package/resources/index.d.ts.map +1 -1
  67. package/resources/index.js +7 -1
  68. package/resources/index.js.map +1 -1
  69. package/resources/index.mjs +3 -0
  70. package/resources/index.mjs.map +1 -1
  71. package/resources/mappings.d.mts +2 -2
  72. package/resources/mappings.d.mts.map +1 -1
  73. package/resources/mappings.d.ts +2 -2
  74. package/resources/mappings.d.ts.map +1 -1
  75. package/resources/session-replays.d.mts +91 -0
  76. package/resources/session-replays.d.mts.map +1 -0
  77. package/resources/session-replays.d.ts +91 -0
  78. package/resources/session-replays.d.ts.map +1 -0
  79. package/resources/session-replays.js +24 -0
  80. package/resources/session-replays.js.map +1 -0
  81. package/resources/session-replays.mjs +20 -0
  82. package/resources/session-replays.mjs.map +1 -0
  83. package/resources/short-links.d.mts +138 -37
  84. package/resources/short-links.d.mts.map +1 -1
  85. package/resources/short-links.d.ts +138 -37
  86. package/resources/short-links.d.ts.map +1 -1
  87. package/resources/short-links.js +27 -12
  88. package/resources/short-links.js.map +1 -1
  89. package/resources/short-links.mjs +27 -12
  90. package/resources/short-links.mjs.map +1 -1
  91. package/resources/sources.d.mts +10 -6
  92. package/resources/sources.d.mts.map +1 -1
  93. package/resources/sources.d.ts +10 -6
  94. package/resources/sources.d.ts.map +1 -1
  95. package/resources/tag-manager-tags.d.mts +2 -2
  96. package/resources/tag-manager-tags.d.ts +2 -2
  97. package/resources/tag-manager-tags.js +2 -2
  98. package/resources/tag-manager-tags.mjs +2 -2
  99. package/resources/tag-manager-triggers.d.mts +18 -1
  100. package/resources/tag-manager-triggers.d.mts.map +1 -1
  101. package/resources/tag-manager-triggers.d.ts +18 -1
  102. package/resources/tag-manager-triggers.d.ts.map +1 -1
  103. package/resources/translation-widgets.d.mts +355 -0
  104. package/resources/translation-widgets.d.mts.map +1 -0
  105. package/resources/translation-widgets.d.ts +355 -0
  106. package/resources/translation-widgets.d.ts.map +1 -0
  107. package/resources/translation-widgets.js +72 -0
  108. package/resources/translation-widgets.js.map +1 -0
  109. package/resources/translation-widgets.mjs +68 -0
  110. package/resources/translation-widgets.mjs.map +1 -0
  111. package/resources/video-channels.d.mts +17 -17
  112. package/resources/video-channels.d.mts.map +1 -1
  113. package/resources/video-channels.d.ts +17 -17
  114. package/resources/video-channels.d.ts.map +1 -1
  115. package/resources/video-channels.js +17 -16
  116. package/resources/video-channels.js.map +1 -1
  117. package/resources/video-channels.mjs +17 -16
  118. package/resources/video-channels.mjs.map +1 -1
  119. package/resources/web-analytics.d.mts +345 -0
  120. package/resources/web-analytics.d.mts.map +1 -0
  121. package/resources/web-analytics.d.ts +345 -0
  122. package/resources/web-analytics.d.ts.map +1 -0
  123. package/resources/web-analytics.js +61 -0
  124. package/resources/web-analytics.js.map +1 -0
  125. package/resources/web-analytics.mjs +57 -0
  126. package/resources/web-analytics.mjs.map +1 -0
  127. package/resources/web-scanners.d.mts +314 -14
  128. package/resources/web-scanners.d.mts.map +1 -1
  129. package/resources/web-scanners.d.ts +314 -14
  130. package/resources/web-scanners.d.ts.map +1 -1
  131. package/resources/web-scanners.js +139 -13
  132. package/resources/web-scanners.js.map +1 -1
  133. package/resources/web-scanners.mjs +139 -13
  134. package/resources/web-scanners.mjs.map +1 -1
  135. package/src/client.ts +124 -19
  136. package/src/resources/attribution.ts +11 -1
  137. package/src/resources/consent-settings.ts +56 -0
  138. package/src/resources/conversion-journey-summaries.ts +38 -0
  139. package/src/resources/data-governance.ts +5 -5
  140. package/src/resources/destinations.ts +18 -115
  141. package/src/resources/experiment-variants.ts +4 -2
  142. package/src/resources/experiments.ts +812 -101
  143. package/src/resources/funnels.ts +276 -21
  144. package/src/resources/heatmap-pages.ts +49 -14
  145. package/src/resources/index.ts +51 -3
  146. package/src/resources/mappings.ts +2 -2
  147. package/src/resources/session-replays.ts +138 -0
  148. package/src/resources/short-links.ts +164 -36
  149. package/src/resources/sources.ts +11 -0
  150. package/src/resources/tag-manager-tags.ts +2 -2
  151. package/src/resources/tag-manager-triggers.ts +18 -1
  152. package/src/resources/translation-widgets.ts +528 -0
  153. package/src/resources/video-channels.ts +19 -18
  154. package/src/resources/web-analytics.ts +494 -0
  155. package/src/resources/web-scanners.ts +443 -13
  156. package/src/version.ts +1 -1
  157. package/version.d.mts +1 -1
  158. package/version.d.ts +1 -1
  159. package/version.js +1 -1
  160. package/version.mjs +1 -1
@@ -0,0 +1,494 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { RequestOptions } from '../internal/request-options';
6
+
7
+ export class WebAnalytics extends APIResource {
8
+ /**
9
+ * Return privacy-first traffic metrics and a timeseries for the requested date
10
+ * range. Filter by source, geography, page, campaign, device, or other supported
11
+ * dimensions with the JSON-encoded `filters` query parameter. Requires scope:
12
+ * web-analytics:view
13
+ */
14
+ overview(
15
+ query: WebAnalyticsOverviewParams,
16
+ options?: RequestOptions,
17
+ ): APIPromise<WebAnalyticsOverviewResponse> {
18
+ return this._client.get('/rest/v1/web-analytics/overview', { query, ...options });
19
+ }
20
+
21
+ /**
22
+ * Return visitor counts grouped by referrer or UTM source dimension for the
23
+ * requested date range. Requires scope: web-analytics:view
24
+ */
25
+ sources(
26
+ query: WebAnalyticsSourcesParams,
27
+ options?: RequestOptions,
28
+ ): APIPromise<WebAnalyticsSourcesResponse> {
29
+ return this._client.get('/rest/v1/web-analytics/sources', { query, ...options });
30
+ }
31
+
32
+ /**
33
+ * Return page-level traffic metrics for top pages, entry pages, or exit pages in
34
+ * the requested date range. Requires scope: web-analytics:view
35
+ */
36
+ pages(query: WebAnalyticsPagesParams, options?: RequestOptions): APIPromise<WebAnalyticsPagesResponse> {
37
+ return this._client.get('/rest/v1/web-analytics/pages', { query, ...options });
38
+ }
39
+
40
+ /**
41
+ * Return visitor counts grouped by country, region, or city for the requested date
42
+ * range. Requires scope: web-analytics:view
43
+ */
44
+ locations(
45
+ query: WebAnalyticsLocationsParams,
46
+ options?: RequestOptions,
47
+ ): APIPromise<WebAnalyticsLocationsResponse> {
48
+ return this._client.get('/rest/v1/web-analytics/locations', { query, ...options });
49
+ }
50
+
51
+ /**
52
+ * Return visitor counts grouped by device type, browser, or operating system for
53
+ * the requested date range. Requires scope: web-analytics:view
54
+ */
55
+ devices(
56
+ query: WebAnalyticsDevicesParams,
57
+ options?: RequestOptions,
58
+ ): APIPromise<WebAnalyticsDevicesResponse> {
59
+ return this._client.get('/rest/v1/web-analytics/devices', { query, ...options });
60
+ }
61
+
62
+ /**
63
+ * Return the distinct visitors active in the most recent 15-minute window,
64
+ * optionally scoped to one web source. Requires scope: web-analytics:view
65
+ */
66
+ currentVisitors(
67
+ query: WebAnalyticsCurrentVisitorsParams | null | undefined = {},
68
+ options?: RequestOptions,
69
+ ): APIPromise<WebAnalyticsCurrentVisitorsResponse> {
70
+ return this._client.get('/rest/v1/web-analytics/current-visitors', { query, ...options });
71
+ }
72
+
73
+ /**
74
+ * Return the next or previous journey steps for a pinned path. The `path` and
75
+ * `filters` query parameters are JSON-encoded arrays. Requires scope:
76
+ * web-analytics:view
77
+ */
78
+ journey(
79
+ query: WebAnalyticsJourneyParams,
80
+ options?: RequestOptions,
81
+ ): APIPromise<WebAnalyticsJourneyResponse> {
82
+ return this._client.get('/rest/v1/web-analytics/journey', { query, ...options });
83
+ }
84
+ }
85
+
86
+ export interface WebAnalyticsOverviewResponse {
87
+ dataUpdatedAt: string;
88
+
89
+ metrics: WebAnalyticsOverviewResponse.Metrics | null;
90
+
91
+ timeseries: Array<WebAnalyticsOverviewResponse.Timesery> | null;
92
+ }
93
+
94
+ export namespace WebAnalyticsOverviewResponse {
95
+ export interface Metrics {
96
+ /**
97
+ * Percentage from 0 to 100 of visits with exactly one pageview.
98
+ */
99
+ bounceRate: number;
100
+
101
+ pageviews: number;
102
+
103
+ totalVisits: number;
104
+
105
+ uniqueVisitors: number;
106
+
107
+ /**
108
+ * Average pageviews per visit.
109
+ */
110
+ viewsPerVisit: number;
111
+
112
+ /**
113
+ * Average visit duration in seconds.
114
+ */
115
+ visitDuration: number;
116
+ }
117
+
118
+ export interface Timesery {
119
+ date: string;
120
+
121
+ value: number;
122
+ }
123
+ }
124
+
125
+ export interface WebAnalyticsSourcesResponse {
126
+ dataUpdatedAt: string;
127
+
128
+ rows: Array<WebAnalyticsSourcesResponse.Row>;
129
+
130
+ totalCount: number;
131
+ }
132
+
133
+ export namespace WebAnalyticsSourcesResponse {
134
+ export interface Row {
135
+ name: string;
136
+
137
+ visitors: number;
138
+ }
139
+ }
140
+
141
+ export interface WebAnalyticsPagesResponse {
142
+ dataUpdatedAt: string;
143
+
144
+ rows: Array<WebAnalyticsPagesResponse.Row>;
145
+
146
+ totalCount: number;
147
+ }
148
+
149
+ export namespace WebAnalyticsPagesResponse {
150
+ export interface Row {
151
+ /**
152
+ * Percentage from 0 to 100 of visits to the page that bounced.
153
+ */
154
+ bounceRate: number | null;
155
+
156
+ entries: number | null;
157
+
158
+ /**
159
+ * Percentage from 0 to 100 of pageviews that ended a visit.
160
+ */
161
+ exitRate: number | null;
162
+
163
+ exits: number | null;
164
+
165
+ pageHostname: string;
166
+
167
+ pagePath: string;
168
+
169
+ pageviews: number | null;
170
+
171
+ /**
172
+ * Average time on page in seconds when available.
173
+ */
174
+ timeOnPage: number | null;
175
+
176
+ visitors: number | null;
177
+ }
178
+ }
179
+
180
+ export interface WebAnalyticsLocationsResponse {
181
+ dataUpdatedAt: string;
182
+
183
+ rows: Array<WebAnalyticsLocationsResponse.Row>;
184
+
185
+ totalCount: number;
186
+ }
187
+
188
+ export namespace WebAnalyticsLocationsResponse {
189
+ export interface Row {
190
+ code: string | null;
191
+
192
+ name: string;
193
+
194
+ visitors: number;
195
+ }
196
+ }
197
+
198
+ export interface WebAnalyticsDevicesResponse {
199
+ dataUpdatedAt: string;
200
+
201
+ rows: Array<WebAnalyticsDevicesResponse.Row>;
202
+
203
+ totalCount: number;
204
+ }
205
+
206
+ export namespace WebAnalyticsDevicesResponse {
207
+ export interface Row {
208
+ name: string;
209
+
210
+ visitors: number;
211
+ }
212
+ }
213
+
214
+ export interface WebAnalyticsCurrentVisitorsResponse {
215
+ count: number;
216
+ }
217
+
218
+ export interface WebAnalyticsJourneyResponse {
219
+ anchorSessions: number;
220
+
221
+ hasMore: boolean;
222
+
223
+ steps: Array<WebAnalyticsJourneyResponse.Step>;
224
+ }
225
+
226
+ export namespace WebAnalyticsJourneyResponse {
227
+ export interface Step {
228
+ isOther: boolean;
229
+
230
+ isTerminal: boolean;
231
+
232
+ key: string;
233
+
234
+ kind: 'PAGE' | 'EVENT' | null;
235
+
236
+ label: string;
237
+
238
+ sessions: number;
239
+ }
240
+ }
241
+
242
+ export interface WebAnalyticsOverviewParams {
243
+ /**
244
+ * Inclusive lower bound of the analysis window as `YYYY-MM-DD`.
245
+ */
246
+ from: string;
247
+
248
+ /**
249
+ * Timeseries bucket interval. Minute queries are capped to the most recent 24
250
+ * hours.
251
+ */
252
+ interval: 'minute' | 'day' | 'week' | 'month';
253
+
254
+ metric:
255
+ 'unique_visitors' | 'total_visits' | 'pageviews' | 'views_per_visit' | 'bounce_rate' | 'visit_duration';
256
+
257
+ /**
258
+ * Inclusive upper bound of the analysis window as `YYYY-MM-DD`.
259
+ */
260
+ to: string;
261
+
262
+ /**
263
+ * Exclude detected bot sessions. Defaults to true.
264
+ */
265
+ excludeBots?: boolean;
266
+
267
+ /**
268
+ * Optional JSON-encoded array of up to 20 filters. Dimensions: `page`,
269
+ * `entry_page`, `exit_page`, `source`, `medium`, `campaign`, `content`, `term`,
270
+ * `referrer`, `country`, `region`, `city`, `device`, `browser`, `os`. Each filter
271
+ * has a dimension, optional operator (`IS`, `IS_NOT`, `CONTAINS`, `NOT_CONTAINS`;
272
+ * defaults to `IS`), and one or more values. Example:
273
+ * `[{"dimension":"country","values":["United States"]}]`.
274
+ */
275
+ filters?: string;
276
+
277
+ /**
278
+ * Optional ISO timestamp used as the lower bound for realtime queries.
279
+ */
280
+ realtimeFrom?: string;
281
+
282
+ /**
283
+ * Optional web source UUID. Omit to aggregate all web sources in the account.
284
+ */
285
+ webSourceId?: string;
286
+ }
287
+
288
+ export interface WebAnalyticsSourcesParams {
289
+ dimension: 'referrer' | 'campaign' | 'source' | 'medium' | 'content' | 'term';
290
+
291
+ /**
292
+ * Inclusive lower bound of the analysis window as `YYYY-MM-DD`.
293
+ */
294
+ from: string;
295
+
296
+ /**
297
+ * Inclusive upper bound of the analysis window as `YYYY-MM-DD`.
298
+ */
299
+ to: string;
300
+
301
+ /**
302
+ * Exclude detected bot sessions. Defaults to true.
303
+ */
304
+ excludeBots?: boolean;
305
+
306
+ /**
307
+ * Optional JSON-encoded array of up to 20 filters. Dimensions: `page`,
308
+ * `entry_page`, `exit_page`, `source`, `medium`, `campaign`, `content`, `term`,
309
+ * `referrer`, `country`, `region`, `city`, `device`, `browser`, `os`. Each filter
310
+ * has a dimension, optional operator (`IS`, `IS_NOT`, `CONTAINS`, `NOT_CONTAINS`;
311
+ * defaults to `IS`), and one or more values. Example:
312
+ * `[{"dimension":"country","values":["United States"]}]`.
313
+ */
314
+ filters?: string;
315
+
316
+ /**
317
+ * Optional web source UUID. Omit to aggregate all web sources in the account.
318
+ */
319
+ webSourceId?: string;
320
+ }
321
+
322
+ export interface WebAnalyticsPagesParams {
323
+ /**
324
+ * Inclusive lower bound of the analysis window as `YYYY-MM-DD`.
325
+ */
326
+ from: string;
327
+
328
+ /**
329
+ * Inclusive upper bound of the analysis window as `YYYY-MM-DD`.
330
+ */
331
+ to: string;
332
+
333
+ view: 'top' | 'entry' | 'exit';
334
+
335
+ /**
336
+ * Exclude detected bot sessions. Defaults to true.
337
+ */
338
+ excludeBots?: boolean;
339
+
340
+ /**
341
+ * Optional JSON-encoded array of up to 20 filters. Dimensions: `page`,
342
+ * `entry_page`, `exit_page`, `source`, `medium`, `campaign`, `content`, `term`,
343
+ * `referrer`, `country`, `region`, `city`, `device`, `browser`, `os`. Each filter
344
+ * has a dimension, optional operator (`IS`, `IS_NOT`, `CONTAINS`, `NOT_CONTAINS`;
345
+ * defaults to `IS`), and one or more values. Example:
346
+ * `[{"dimension":"country","values":["United States"]}]`.
347
+ */
348
+ filters?: string;
349
+
350
+ /**
351
+ * Optional web source UUID. Omit to aggregate all web sources in the account.
352
+ */
353
+ webSourceId?: string;
354
+ }
355
+
356
+ export interface WebAnalyticsLocationsParams {
357
+ dimension: 'country' | 'region' | 'city';
358
+
359
+ /**
360
+ * Inclusive lower bound of the analysis window as `YYYY-MM-DD`.
361
+ */
362
+ from: string;
363
+
364
+ /**
365
+ * Inclusive upper bound of the analysis window as `YYYY-MM-DD`.
366
+ */
367
+ to: string;
368
+
369
+ /**
370
+ * Exclude detected bot sessions. Defaults to true.
371
+ */
372
+ excludeBots?: boolean;
373
+
374
+ /**
375
+ * Optional JSON-encoded array of up to 20 filters. Dimensions: `page`,
376
+ * `entry_page`, `exit_page`, `source`, `medium`, `campaign`, `content`, `term`,
377
+ * `referrer`, `country`, `region`, `city`, `device`, `browser`, `os`. Each filter
378
+ * has a dimension, optional operator (`IS`, `IS_NOT`, `CONTAINS`, `NOT_CONTAINS`;
379
+ * defaults to `IS`), and one or more values. Example:
380
+ * `[{"dimension":"country","values":["United States"]}]`.
381
+ */
382
+ filters?: string;
383
+
384
+ /**
385
+ * Optional web source UUID. Omit to aggregate all web sources in the account.
386
+ */
387
+ webSourceId?: string;
388
+ }
389
+
390
+ export interface WebAnalyticsDevicesParams {
391
+ dimension: 'device' | 'browser' | 'os';
392
+
393
+ /**
394
+ * Inclusive lower bound of the analysis window as `YYYY-MM-DD`.
395
+ */
396
+ from: string;
397
+
398
+ /**
399
+ * Inclusive upper bound of the analysis window as `YYYY-MM-DD`.
400
+ */
401
+ to: string;
402
+
403
+ /**
404
+ * Exclude detected bot sessions. Defaults to true.
405
+ */
406
+ excludeBots?: boolean;
407
+
408
+ /**
409
+ * Optional JSON-encoded array of up to 20 filters. Dimensions: `page`,
410
+ * `entry_page`, `exit_page`, `source`, `medium`, `campaign`, `content`, `term`,
411
+ * `referrer`, `country`, `region`, `city`, `device`, `browser`, `os`. Each filter
412
+ * has a dimension, optional operator (`IS`, `IS_NOT`, `CONTAINS`, `NOT_CONTAINS`;
413
+ * defaults to `IS`), and one or more values. Example:
414
+ * `[{"dimension":"country","values":["United States"]}]`.
415
+ */
416
+ filters?: string;
417
+
418
+ /**
419
+ * Optional web source UUID. Omit to aggregate all web sources in the account.
420
+ */
421
+ webSourceId?: string;
422
+ }
423
+
424
+ export interface WebAnalyticsCurrentVisitorsParams {
425
+ /**
426
+ * Optional web source UUID. Omit to count visitors across all account web sources.
427
+ */
428
+ webSourceId?: string;
429
+ }
430
+
431
+ export interface WebAnalyticsJourneyParams {
432
+ /**
433
+ * Inclusive lower bound of the analysis window as `YYYY-MM-DD`.
434
+ */
435
+ from: string;
436
+
437
+ /**
438
+ * JSON-encoded ordered path of opaque journey step keys. Use an empty array to
439
+ * request first-column candidates.
440
+ */
441
+ path: string;
442
+
443
+ /**
444
+ * Inclusive upper bound of the analysis window as `YYYY-MM-DD`.
445
+ */
446
+ to: string;
447
+
448
+ direction?: 'forward' | 'reverse';
449
+
450
+ /**
451
+ * Exclude detected bot sessions. Defaults to true.
452
+ */
453
+ excludeBots?: boolean;
454
+
455
+ /**
456
+ * Optional JSON-encoded array of up to 20 journey filters. Supports web analytics
457
+ * dimensions plus `event_name`, `ep_currency`, `ep_appointment_id`,
458
+ * `ep_appointment_status`, `ep_service_line`, `ep_provider_id`, `ep_location_id`,
459
+ * `ep_booking_channel`, `ep_revenue_type`, `ep_call_outcome`, and `ep_staff_id`.
460
+ * Each filter has a dimension, optional operator (`IS`, `IS_NOT`, `CONTAINS`,
461
+ * `NOT_CONTAINS`; defaults to `IS`), and one or more values.
462
+ */
463
+ filters?: string;
464
+
465
+ limit?: number;
466
+
467
+ search?: string;
468
+
469
+ stepKind?: 'PAGE' | 'EVENT';
470
+
471
+ /**
472
+ * Optional web source UUID. Omit to aggregate all web sources in the account.
473
+ */
474
+ webSourceId?: string;
475
+ }
476
+
477
+ export declare namespace WebAnalytics {
478
+ export {
479
+ type WebAnalyticsOverviewResponse as WebAnalyticsOverviewResponse,
480
+ type WebAnalyticsSourcesResponse as WebAnalyticsSourcesResponse,
481
+ type WebAnalyticsPagesResponse as WebAnalyticsPagesResponse,
482
+ type WebAnalyticsLocationsResponse as WebAnalyticsLocationsResponse,
483
+ type WebAnalyticsDevicesResponse as WebAnalyticsDevicesResponse,
484
+ type WebAnalyticsCurrentVisitorsResponse as WebAnalyticsCurrentVisitorsResponse,
485
+ type WebAnalyticsJourneyResponse as WebAnalyticsJourneyResponse,
486
+ type WebAnalyticsOverviewParams as WebAnalyticsOverviewParams,
487
+ type WebAnalyticsSourcesParams as WebAnalyticsSourcesParams,
488
+ type WebAnalyticsPagesParams as WebAnalyticsPagesParams,
489
+ type WebAnalyticsLocationsParams as WebAnalyticsLocationsParams,
490
+ type WebAnalyticsDevicesParams as WebAnalyticsDevicesParams,
491
+ type WebAnalyticsCurrentVisitorsParams as WebAnalyticsCurrentVisitorsParams,
492
+ type WebAnalyticsJourneyParams as WebAnalyticsJourneyParams,
493
+ };
494
+ }