@oursprivacy/platform-sdk 1.56.0 → 1.57.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 (175) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/client.d.mts +15 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +15 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js +9 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +9 -0
  9. package/client.mjs.map +1 -1
  10. package/internal/utils/log.d.mts.map +1 -1
  11. package/internal/utils/log.d.ts.map +1 -1
  12. package/internal/utils/log.js.map +1 -1
  13. package/internal/utils/log.mjs.map +1 -1
  14. package/package.json +4 -2
  15. package/resources/consent-settings.d.mts +90 -1
  16. package/resources/consent-settings.d.mts.map +1 -1
  17. package/resources/consent-settings.d.ts +90 -1
  18. package/resources/consent-settings.d.ts.map +1 -1
  19. package/resources/consent-settings.js +13 -0
  20. package/resources/consent-settings.js.map +1 -1
  21. package/resources/consent-settings.mjs +13 -0
  22. package/resources/consent-settings.mjs.map +1 -1
  23. package/resources/custom-domains.d.mts +10 -4
  24. package/resources/custom-domains.d.mts.map +1 -1
  25. package/resources/custom-domains.d.ts +10 -4
  26. package/resources/custom-domains.d.ts.map +1 -1
  27. package/resources/custom-domains.js +3 -2
  28. package/resources/custom-domains.js.map +1 -1
  29. package/resources/custom-domains.mjs +3 -2
  30. package/resources/custom-domains.mjs.map +1 -1
  31. package/resources/dashboards.d.mts +4737 -0
  32. package/resources/dashboards.d.mts.map +1 -0
  33. package/resources/dashboards.d.ts +4737 -0
  34. package/resources/dashboards.d.ts.map +1 -0
  35. package/resources/dashboards.js +124 -0
  36. package/resources/dashboards.js.map +1 -0
  37. package/resources/dashboards.mjs +120 -0
  38. package/resources/dashboards.mjs.map +1 -0
  39. package/resources/data-governance.d.mts +19 -26
  40. package/resources/data-governance.d.mts.map +1 -1
  41. package/resources/data-governance.d.ts +19 -26
  42. package/resources/data-governance.d.ts.map +1 -1
  43. package/resources/data-governance.js +14 -13
  44. package/resources/data-governance.js.map +1 -1
  45. package/resources/data-governance.mjs +14 -13
  46. package/resources/data-governance.mjs.map +1 -1
  47. package/resources/destinations.d.mts +7 -7
  48. package/resources/destinations.d.mts.map +1 -1
  49. package/resources/destinations.d.ts +7 -7
  50. package/resources/destinations.d.ts.map +1 -1
  51. package/resources/experiment-settings.d.mts +84 -24
  52. package/resources/experiment-settings.d.mts.map +1 -1
  53. package/resources/experiment-settings.d.ts +84 -24
  54. package/resources/experiment-settings.d.ts.map +1 -1
  55. package/resources/experiment-settings.js +9 -4
  56. package/resources/experiment-settings.js.map +1 -1
  57. package/resources/experiment-settings.mjs +9 -4
  58. package/resources/experiment-settings.mjs.map +1 -1
  59. package/resources/funnels.d.mts +64 -7
  60. package/resources/funnels.d.mts.map +1 -1
  61. package/resources/funnels.d.ts +64 -7
  62. package/resources/funnels.d.ts.map +1 -1
  63. package/resources/funnels.js +2 -1
  64. package/resources/funnels.js.map +1 -1
  65. package/resources/funnels.mjs +2 -1
  66. package/resources/funnels.mjs.map +1 -1
  67. package/resources/index.d.mts +6 -3
  68. package/resources/index.d.mts.map +1 -1
  69. package/resources/index.d.ts +6 -3
  70. package/resources/index.d.ts.map +1 -1
  71. package/resources/index.js +7 -1
  72. package/resources/index.js.map +1 -1
  73. package/resources/index.mjs +3 -0
  74. package/resources/index.mjs.map +1 -1
  75. package/resources/insights.d.mts +1152 -0
  76. package/resources/insights.d.mts.map +1 -0
  77. package/resources/insights.d.ts +1152 -0
  78. package/resources/insights.d.ts.map +1 -0
  79. package/resources/insights.js +81 -0
  80. package/resources/insights.js.map +1 -0
  81. package/resources/insights.mjs +77 -0
  82. package/resources/insights.mjs.map +1 -0
  83. package/resources/journey-flows.d.mts +214 -17
  84. package/resources/journey-flows.d.mts.map +1 -1
  85. package/resources/journey-flows.d.ts +214 -17
  86. package/resources/journey-flows.d.ts.map +1 -1
  87. package/resources/journey-flows.js +17 -13
  88. package/resources/journey-flows.js.map +1 -1
  89. package/resources/journey-flows.mjs +17 -13
  90. package/resources/journey-flows.mjs.map +1 -1
  91. package/resources/replay-settings.d.mts +3 -2
  92. package/resources/replay-settings.d.mts.map +1 -1
  93. package/resources/replay-settings.d.ts +3 -2
  94. package/resources/replay-settings.d.ts.map +1 -1
  95. package/resources/replay-settings.js +3 -2
  96. package/resources/replay-settings.js.map +1 -1
  97. package/resources/replay-settings.mjs +3 -2
  98. package/resources/replay-settings.mjs.map +1 -1
  99. package/resources/report-branding.d.mts +157 -0
  100. package/resources/report-branding.d.mts.map +1 -0
  101. package/resources/report-branding.d.ts +157 -0
  102. package/resources/report-branding.d.ts.map +1 -0
  103. package/resources/report-branding.js +39 -0
  104. package/resources/report-branding.js.map +1 -0
  105. package/resources/report-branding.mjs +35 -0
  106. package/resources/report-branding.mjs.map +1 -0
  107. package/resources/tag-manager-triggers.d.mts +46 -4
  108. package/resources/tag-manager-triggers.d.mts.map +1 -1
  109. package/resources/tag-manager-triggers.d.ts +46 -4
  110. package/resources/tag-manager-triggers.d.ts.map +1 -1
  111. package/resources/tag-manager-triggers.js +6 -4
  112. package/resources/tag-manager-triggers.js.map +1 -1
  113. package/resources/tag-manager-triggers.mjs +6 -4
  114. package/resources/tag-manager-triggers.mjs.map +1 -1
  115. package/resources/tag-manager-variables.d.mts +25 -13
  116. package/resources/tag-manager-variables.d.mts.map +1 -1
  117. package/resources/tag-manager-variables.d.ts +25 -13
  118. package/resources/tag-manager-variables.d.ts.map +1 -1
  119. package/resources/tag-manager-variables.js +9 -4
  120. package/resources/tag-manager-variables.js.map +1 -1
  121. package/resources/tag-manager-variables.mjs +9 -4
  122. package/resources/tag-manager-variables.mjs.map +1 -1
  123. package/resources/tag-managers.d.mts +17 -1
  124. package/resources/tag-managers.d.mts.map +1 -1
  125. package/resources/tag-managers.d.ts +17 -1
  126. package/resources/tag-managers.d.ts.map +1 -1
  127. package/resources/tag-managers.js +10 -0
  128. package/resources/tag-managers.js.map +1 -1
  129. package/resources/tag-managers.mjs +10 -0
  130. package/resources/tag-managers.mjs.map +1 -1
  131. package/resources/test-events.d.mts +18 -13
  132. package/resources/test-events.d.mts.map +1 -1
  133. package/resources/test-events.d.ts +18 -13
  134. package/resources/test-events.d.ts.map +1 -1
  135. package/resources/web-analytics.d.mts +91 -39
  136. package/resources/web-analytics.d.mts.map +1 -1
  137. package/resources/web-analytics.d.ts +91 -39
  138. package/resources/web-analytics.d.ts.map +1 -1
  139. package/resources/web-analytics.js +11 -0
  140. package/resources/web-analytics.js.map +1 -1
  141. package/resources/web-analytics.mjs +11 -0
  142. package/resources/web-analytics.mjs.map +1 -1
  143. package/resources/web-scanners.d.mts +3 -2
  144. package/resources/web-scanners.d.mts.map +1 -1
  145. package/resources/web-scanners.d.ts +3 -2
  146. package/resources/web-scanners.d.ts.map +1 -1
  147. package/resources/web-scanners.js +3 -2
  148. package/resources/web-scanners.js.map +1 -1
  149. package/resources/web-scanners.mjs +3 -2
  150. package/resources/web-scanners.mjs.map +1 -1
  151. package/src/client.ts +118 -3
  152. package/src/internal/utils/log.ts +1 -3
  153. package/src/resources/consent-settings.ts +117 -0
  154. package/src/resources/custom-domains.ts +14 -4
  155. package/src/resources/dashboards.ts +8757 -0
  156. package/src/resources/data-governance.ts +19 -26
  157. package/src/resources/destinations.ts +9 -2
  158. package/src/resources/experiment-settings.ts +84 -24
  159. package/src/resources/funnels.ts +64 -7
  160. package/src/resources/index.ts +54 -0
  161. package/src/resources/insights.ts +1976 -0
  162. package/src/resources/journey-flows.ts +214 -17
  163. package/src/resources/replay-settings.ts +3 -2
  164. package/src/resources/report-branding.ts +207 -0
  165. package/src/resources/tag-manager-triggers.ts +55 -4
  166. package/src/resources/tag-manager-variables.ts +25 -13
  167. package/src/resources/tag-managers.ts +21 -0
  168. package/src/resources/test-events.ts +18 -13
  169. package/src/resources/web-analytics.ts +137 -38
  170. package/src/resources/web-scanners.ts +3 -2
  171. package/src/version.ts +1 -1
  172. package/version.d.mts +1 -1
  173. package/version.d.ts +1 -1
  174. package/version.js +1 -1
  175. package/version.mjs +1 -1
@@ -0,0 +1,4737 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { Cursor, type CursorParams, PagePromise } from "../core/pagination.js";
4
+ import { RequestOptions } from "../internal/request-options.js";
5
+ export declare class Dashboards extends APIResource {
6
+ /**
7
+ * List Dashboards in stable ID order with case-insensitive name search. Defaults
8
+ * to 20 results; each request scans at most 100 configurations. Search and
9
+ * unavailable or deleted entries can yield short pages. Continue with
10
+ * pagination.nextCursor while hasMore is true and preserve unavailableCount and
11
+ * warnings. Requires Analytics Suite access. Requires API-key scope or current
12
+ * OAuth user permission: web-analytics:view
13
+ */
14
+ list(query?: DashboardListParams | null | undefined, options?: RequestOptions): PagePromise<DashboardListResponsesCursor, DashboardListResponse>;
15
+ /**
16
+ * Save a Dashboard with shared dates, an optional filter, and up to 12 ordered
17
+ * report, text, or session replay tiles. Requires Analytics Suite access.
18
+ * Referenced reports require web-analytics:view; Insight references also require
19
+ * variables:find-custom, and Journeys selecting sources require source:view.
20
+ * Requires API-key scope or current OAuth user permission: web-analytics:write
21
+ */
22
+ create(body: DashboardCreateParams, options?: RequestOptions): APIPromise<DashboardCreateResponse>;
23
+ /**
24
+ * Get a saved Dashboard including its revision, shared date context, filter, and
25
+ * ordered report, text, and session replay tiles. Requires Analytics Suite access;
26
+ * unavailable Dashboards return 404. Requires API-key scope or current OAuth user
27
+ * permission: web-analytics:view
28
+ */
29
+ retrieve(id: string, options?: RequestOptions): APIPromise<DashboardRetrieveResponse>;
30
+ /**
31
+ * Update a Dashboard using expectedRevision. Omitted fields remain unchanged; null
32
+ * clears description or filter. Supplied reportContext and ordered tiles replace
33
+ * the entire saved value. Requires Analytics Suite access. Changed report
34
+ * references or context require web-analytics:view; Insights also require
35
+ * variables:find-custom, and Journeys selecting sources require source:view.
36
+ * Requires API-key scope or current OAuth user permission: web-analytics:write
37
+ */
38
+ update(id: string, body: DashboardUpdateParams, options?: RequestOptions): APIPromise<DashboardUpdateResponse>;
39
+ /**
40
+ * Delete a Dashboard using expectedRevision. Referenced reports are preserved.
41
+ * Requires Analytics Suite access. Requires API-key scope or current OAuth user
42
+ * permission: web-analytics:write
43
+ */
44
+ delete(id: string, params: DashboardDeleteParams, options?: RequestOptions): APIPromise<DashboardDeleteResponse>;
45
+ /**
46
+ * Duplicate a Dashboard using the expectedRevision in the request body. Copies
47
+ * dates, filter, and layout, assigns new Dashboard and tile IDs, and retains saved
48
+ * report references. Requires Analytics Suite access and web-analytics:view on the
49
+ * source and referenced reports; Insights also require variables:find-custom, and
50
+ * Journeys selecting sources require source:view. Requires API-key scope or
51
+ * current OAuth user permission: web-analytics:write, web-analytics:view
52
+ */
53
+ duplicate(id: string, body: DashboardDuplicateParams, options?: RequestOptions): APIPromise<DashboardDuplicateResponse>;
54
+ /**
55
+ * Preview a saved report with temporary Dashboard context. JSON-encode input as
56
+ * {tileId,report:{kind,id},context:{from,to,filter?},comparison?}; kinds are
57
+ * insight, funnel, or journey, dates are inclusive UTC calendar strings, and
58
+ * comparison applies to Insights. Maximum 16384 bytes before URL encoding.
59
+ * Requires Analytics Suite access and report read access; Insights also require
60
+ * variables:find-custom, and Journeys selecting sources require source:view.
61
+ * Requires API-key scope or current OAuth user permission: web-analytics:view
62
+ */
63
+ preview(query: DashboardPreviewParams, options?: RequestOptions): APIPromise<DashboardPreviewResponse>;
64
+ /**
65
+ * Compute one saved Dashboard report tile using tileId and expectedRevision.
66
+ * JSON-encode context as {from,to,filter?} with inclusive UTC calendar dates;
67
+ * optional JSON comparison applies to Insights. Query context never changes saved
68
+ * defaults. Text tiles need no result, and replay tiles use GET
69
+ * /rest/v1/dashboards/{id}/replay-tile-result; other tile kinds return 400.
70
+ * Requires Analytics Suite access and report read access; Insights also require
71
+ * variables:find-custom, and Journeys selecting sources require source:view.
72
+ * Requires API-key scope or current OAuth user permission: web-analytics:view
73
+ */
74
+ results(id: string, query: DashboardResultsParams, options?: RequestOptions): APIPromise<DashboardResultsResponse>;
75
+ /**
76
+ * List the most recent session replays for one saved Dashboard replay tile using
77
+ * tileId and expectedRevision. JSON-encode context as {from,to,filter?}; the
78
+ * context filter is ANDed with the tile filter, eventName, and pathname. Dates
79
+ * beyond the organization replay retention are excluded and the window covers at
80
+ * most the most recent 61 days; the response returns the effective window and
81
+ * warnings. Requires Analytics Suite access, like the Session Replay list;
82
+ * unavailable Dashboards and tiles return 404. Report tiles return 400. Requires
83
+ * API-key scope or current OAuth user permission: web-analytics:view
84
+ */
85
+ replayTileResult(id: string, query: DashboardReplayTileResultParams, options?: RequestOptions): APIPromise<DashboardReplayTileResultResponse>;
86
+ /**
87
+ * Preview a Dashboard replay tile before saving it. JSON-encode input as
88
+ * {tileId,replays:{limit,title?,eventName?,pathname?,filter?},context:{from,to,filter?}};
89
+ * limit is 5-25 and dates are inclusive UTC calendar strings. Maximum 16384 bytes
90
+ * before URL encoding. Applies the same retention, 61-day window, filter
91
+ * composition, and Analytics Suite access as saved replay tiles. Requires API-key
92
+ * scope or current OAuth user permission: web-analytics:view
93
+ */
94
+ replayPreview(query: DashboardReplayPreviewParams, options?: RequestOptions): APIPromise<DashboardReplayPreviewResponse>;
95
+ }
96
+ export type DashboardListResponsesCursor = Cursor<DashboardListResponse>;
97
+ export interface DashboardListResponse {
98
+ id: string;
99
+ createdAt: string;
100
+ createdByUserId: string;
101
+ /**
102
+ * Display name for the saved Dashboard.
103
+ */
104
+ name: string;
105
+ /**
106
+ * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
107
+ * Journey tiles support up to 91 inclusive days; Insights retain their native
108
+ * range limit.
109
+ */
110
+ reportContext: DashboardListResponse.ReportContext;
111
+ revision: string;
112
+ /**
113
+ * Ordered collection of up to 12 tiles; every kind counts toward the limit. Each
114
+ * tile has id, layout { width 3-12, height }, and exactly one of report { kind:
115
+ * insight|funnel|journey, id }, text { markdown } (at most 10000 characters per
116
+ * tile and 20000 per Dashboard; height 80-960), or replays { title?, eventName?,
117
+ * pathname?, filter?, limit 5-25 } (height 240-960, like report tiles). Replaces
118
+ * the collection on PATCH; removing a tile does not delete its report. Referenced
119
+ * reports require web-analytics:view; Insights also require variables:find-custom
120
+ * and Journeys with selected sources require source:view. Replay tile results
121
+ * require web-analytics:view, like the Session Replay list.
122
+ */
123
+ tiles: Array<DashboardListResponse.UnionMember0 | DashboardListResponse.UnionMember1 | DashboardListResponse.UnionMember2>;
124
+ updatedAt: string;
125
+ updatedByUserId: string;
126
+ /**
127
+ * Optional description; null clears it.
128
+ */
129
+ description?: string | null;
130
+ /**
131
+ * Shared analytics filter, combined with Insight report filters or Funnel and
132
+ * Journey entry filters. Null clears it; report-specific filters remain in effect.
133
+ */
134
+ filter?: DashboardListResponse.Filter;
135
+ }
136
+ export declare namespace DashboardListResponse {
137
+ /**
138
+ * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
139
+ * Journey tiles support up to 91 inclusive days; Insights retain their native
140
+ * range limit.
141
+ */
142
+ interface ReportContext {
143
+ dateRange: ReportContext.UnionMember0 | ReportContext.UnionMember1;
144
+ }
145
+ namespace ReportContext {
146
+ interface UnionMember0 {
147
+ from: string;
148
+ to: string;
149
+ timeZone?: 'UTC';
150
+ }
151
+ interface UnionMember1 {
152
+ preset: 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days' | 'last_12_months' | 'week_to_date' | 'month_to_date' | 'year_to_date';
153
+ timeZone?: 'UTC';
154
+ }
155
+ }
156
+ interface UnionMember0 {
157
+ id: string;
158
+ layout: UnionMember0.Layout;
159
+ report: UnionMember0.Report;
160
+ }
161
+ namespace UnionMember0 {
162
+ interface Layout {
163
+ height: number;
164
+ width: number;
165
+ }
166
+ interface Report {
167
+ id: string;
168
+ kind: 'insight' | 'funnel' | 'journey';
169
+ }
170
+ }
171
+ interface UnionMember1 {
172
+ id: string;
173
+ layout: UnionMember1.Layout;
174
+ text: UnionMember1.Text;
175
+ }
176
+ namespace UnionMember1 {
177
+ interface Layout {
178
+ height: number;
179
+ width: number;
180
+ }
181
+ interface Text {
182
+ markdown: string;
183
+ }
184
+ }
185
+ interface UnionMember2 {
186
+ id: string;
187
+ layout: UnionMember2.Layout;
188
+ replays: UnionMember2.Replays;
189
+ }
190
+ namespace UnionMember2 {
191
+ interface Layout {
192
+ height: number;
193
+ width: number;
194
+ }
195
+ interface Replays {
196
+ limit: number;
197
+ eventName?: string;
198
+ filter?: Replays.Filter;
199
+ pathname?: string;
200
+ title?: string;
201
+ }
202
+ namespace Replays {
203
+ interface Filter {
204
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
205
+ version: 1;
206
+ }
207
+ namespace Filter {
208
+ interface UnionMember0 {
209
+ children: Array<unknown>;
210
+ kind: 'and' | 'or';
211
+ }
212
+ interface UnionMember1 {
213
+ child: unknown;
214
+ kind: 'not';
215
+ }
216
+ interface UnionMember2 {
217
+ kind: 'predicate';
218
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
219
+ property: string;
220
+ path?: Array<string>;
221
+ type?: 'string' | 'number' | 'boolean';
222
+ value?: string | number | boolean | Array<string | number | boolean>;
223
+ }
224
+ }
225
+ }
226
+ }
227
+ /**
228
+ * Shared analytics filter, combined with Insight report filters or Funnel and
229
+ * Journey entry filters. Null clears it; report-specific filters remain in effect.
230
+ */
231
+ interface Filter {
232
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
233
+ version: 1;
234
+ }
235
+ namespace Filter {
236
+ interface UnionMember0 {
237
+ children: Array<unknown>;
238
+ kind: 'and' | 'or';
239
+ }
240
+ interface UnionMember1 {
241
+ child: unknown;
242
+ kind: 'not';
243
+ }
244
+ interface UnionMember2 {
245
+ kind: 'predicate';
246
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
247
+ property: string;
248
+ path?: Array<string>;
249
+ type?: 'string' | 'number' | 'boolean';
250
+ value?: string | number | boolean | Array<string | number | boolean>;
251
+ }
252
+ }
253
+ }
254
+ export interface DashboardCreateResponse {
255
+ id: string;
256
+ createdAt: string;
257
+ createdByUserId: string;
258
+ /**
259
+ * Display name for the saved Dashboard.
260
+ */
261
+ name: string;
262
+ /**
263
+ * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
264
+ * Journey tiles support up to 91 inclusive days; Insights retain their native
265
+ * range limit.
266
+ */
267
+ reportContext: DashboardCreateResponse.ReportContext;
268
+ revision: string;
269
+ /**
270
+ * Ordered collection of up to 12 tiles; every kind counts toward the limit. Each
271
+ * tile has id, layout { width 3-12, height }, and exactly one of report { kind:
272
+ * insight|funnel|journey, id }, text { markdown } (at most 10000 characters per
273
+ * tile and 20000 per Dashboard; height 80-960), or replays { title?, eventName?,
274
+ * pathname?, filter?, limit 5-25 } (height 240-960, like report tiles). Replaces
275
+ * the collection on PATCH; removing a tile does not delete its report. Referenced
276
+ * reports require web-analytics:view; Insights also require variables:find-custom
277
+ * and Journeys with selected sources require source:view. Replay tile results
278
+ * require web-analytics:view, like the Session Replay list.
279
+ */
280
+ tiles: Array<DashboardCreateResponse.UnionMember0 | DashboardCreateResponse.UnionMember1 | DashboardCreateResponse.UnionMember2>;
281
+ updatedAt: string;
282
+ updatedByUserId: string;
283
+ /**
284
+ * Optional description; null clears it.
285
+ */
286
+ description?: string | null;
287
+ /**
288
+ * Shared analytics filter, combined with Insight report filters or Funnel and
289
+ * Journey entry filters. Null clears it; report-specific filters remain in effect.
290
+ */
291
+ filter?: DashboardCreateResponse.Filter;
292
+ }
293
+ export declare namespace DashboardCreateResponse {
294
+ /**
295
+ * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
296
+ * Journey tiles support up to 91 inclusive days; Insights retain their native
297
+ * range limit.
298
+ */
299
+ interface ReportContext {
300
+ dateRange: ReportContext.UnionMember0 | ReportContext.UnionMember1;
301
+ }
302
+ namespace ReportContext {
303
+ interface UnionMember0 {
304
+ from: string;
305
+ to: string;
306
+ timeZone?: 'UTC';
307
+ }
308
+ interface UnionMember1 {
309
+ preset: 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days' | 'last_12_months' | 'week_to_date' | 'month_to_date' | 'year_to_date';
310
+ timeZone?: 'UTC';
311
+ }
312
+ }
313
+ interface UnionMember0 {
314
+ id: string;
315
+ layout: UnionMember0.Layout;
316
+ report: UnionMember0.Report;
317
+ }
318
+ namespace UnionMember0 {
319
+ interface Layout {
320
+ height: number;
321
+ width: number;
322
+ }
323
+ interface Report {
324
+ id: string;
325
+ kind: 'insight' | 'funnel' | 'journey';
326
+ }
327
+ }
328
+ interface UnionMember1 {
329
+ id: string;
330
+ layout: UnionMember1.Layout;
331
+ text: UnionMember1.Text;
332
+ }
333
+ namespace UnionMember1 {
334
+ interface Layout {
335
+ height: number;
336
+ width: number;
337
+ }
338
+ interface Text {
339
+ markdown: string;
340
+ }
341
+ }
342
+ interface UnionMember2 {
343
+ id: string;
344
+ layout: UnionMember2.Layout;
345
+ replays: UnionMember2.Replays;
346
+ }
347
+ namespace UnionMember2 {
348
+ interface Layout {
349
+ height: number;
350
+ width: number;
351
+ }
352
+ interface Replays {
353
+ limit: number;
354
+ eventName?: string;
355
+ filter?: Replays.Filter;
356
+ pathname?: string;
357
+ title?: string;
358
+ }
359
+ namespace Replays {
360
+ interface Filter {
361
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
362
+ version: 1;
363
+ }
364
+ namespace Filter {
365
+ interface UnionMember0 {
366
+ children: Array<unknown>;
367
+ kind: 'and' | 'or';
368
+ }
369
+ interface UnionMember1 {
370
+ child: unknown;
371
+ kind: 'not';
372
+ }
373
+ interface UnionMember2 {
374
+ kind: 'predicate';
375
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
376
+ property: string;
377
+ path?: Array<string>;
378
+ type?: 'string' | 'number' | 'boolean';
379
+ value?: string | number | boolean | Array<string | number | boolean>;
380
+ }
381
+ }
382
+ }
383
+ }
384
+ /**
385
+ * Shared analytics filter, combined with Insight report filters or Funnel and
386
+ * Journey entry filters. Null clears it; report-specific filters remain in effect.
387
+ */
388
+ interface Filter {
389
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
390
+ version: 1;
391
+ }
392
+ namespace Filter {
393
+ interface UnionMember0 {
394
+ children: Array<UnionMember0.UnionMember0 | UnionMember0.UnionMember1 | UnionMember0.UnionMember2>;
395
+ kind: 'and' | 'or';
396
+ }
397
+ namespace UnionMember0 {
398
+ interface UnionMember0 {
399
+ children: Array<unknown>;
400
+ kind: 'and' | 'or';
401
+ }
402
+ interface UnionMember1 {
403
+ child: unknown;
404
+ kind: 'not';
405
+ }
406
+ interface UnionMember2 {
407
+ kind: 'predicate';
408
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
409
+ property: string;
410
+ path?: Array<string>;
411
+ type?: 'string' | 'number' | 'boolean';
412
+ value?: string | number | boolean | Array<string | number | boolean>;
413
+ }
414
+ }
415
+ interface UnionMember1 {
416
+ child: UnionMember1.UnionMember0 | UnionMember1.UnionMember1 | UnionMember1.UnionMember2;
417
+ kind: 'not';
418
+ }
419
+ namespace UnionMember1 {
420
+ interface UnionMember0 {
421
+ children: Array<unknown>;
422
+ kind: 'and' | 'or';
423
+ }
424
+ interface UnionMember1 {
425
+ child: unknown;
426
+ kind: 'not';
427
+ }
428
+ interface UnionMember2 {
429
+ kind: 'predicate';
430
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
431
+ property: string;
432
+ path?: Array<string>;
433
+ type?: 'string' | 'number' | 'boolean';
434
+ value?: string | number | boolean | Array<string | number | boolean>;
435
+ }
436
+ }
437
+ interface UnionMember2 {
438
+ kind: 'predicate';
439
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
440
+ property: string;
441
+ path?: Array<string>;
442
+ type?: 'string' | 'number' | 'boolean';
443
+ value?: string | number | boolean | Array<string | number | boolean>;
444
+ }
445
+ }
446
+ }
447
+ export interface DashboardRetrieveResponse {
448
+ id: string;
449
+ createdAt: string;
450
+ createdByUserId: string;
451
+ /**
452
+ * Display name for the saved Dashboard.
453
+ */
454
+ name: string;
455
+ /**
456
+ * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
457
+ * Journey tiles support up to 91 inclusive days; Insights retain their native
458
+ * range limit.
459
+ */
460
+ reportContext: DashboardRetrieveResponse.ReportContext;
461
+ revision: string;
462
+ /**
463
+ * Ordered collection of up to 12 tiles; every kind counts toward the limit. Each
464
+ * tile has id, layout { width 3-12, height }, and exactly one of report { kind:
465
+ * insight|funnel|journey, id }, text { markdown } (at most 10000 characters per
466
+ * tile and 20000 per Dashboard; height 80-960), or replays { title?, eventName?,
467
+ * pathname?, filter?, limit 5-25 } (height 240-960, like report tiles). Replaces
468
+ * the collection on PATCH; removing a tile does not delete its report. Referenced
469
+ * reports require web-analytics:view; Insights also require variables:find-custom
470
+ * and Journeys with selected sources require source:view. Replay tile results
471
+ * require web-analytics:view, like the Session Replay list.
472
+ */
473
+ tiles: Array<DashboardRetrieveResponse.UnionMember0 | DashboardRetrieveResponse.UnionMember1 | DashboardRetrieveResponse.UnionMember2>;
474
+ updatedAt: string;
475
+ updatedByUserId: string;
476
+ /**
477
+ * Optional description; null clears it.
478
+ */
479
+ description?: string | null;
480
+ /**
481
+ * Shared analytics filter, combined with Insight report filters or Funnel and
482
+ * Journey entry filters. Null clears it; report-specific filters remain in effect.
483
+ */
484
+ filter?: DashboardRetrieveResponse.Filter;
485
+ }
486
+ export declare namespace DashboardRetrieveResponse {
487
+ /**
488
+ * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
489
+ * Journey tiles support up to 91 inclusive days; Insights retain their native
490
+ * range limit.
491
+ */
492
+ interface ReportContext {
493
+ dateRange: ReportContext.UnionMember0 | ReportContext.UnionMember1;
494
+ }
495
+ namespace ReportContext {
496
+ interface UnionMember0 {
497
+ from: string;
498
+ to: string;
499
+ timeZone?: 'UTC';
500
+ }
501
+ interface UnionMember1 {
502
+ preset: 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days' | 'last_12_months' | 'week_to_date' | 'month_to_date' | 'year_to_date';
503
+ timeZone?: 'UTC';
504
+ }
505
+ }
506
+ interface UnionMember0 {
507
+ id: string;
508
+ layout: UnionMember0.Layout;
509
+ report: UnionMember0.Report;
510
+ }
511
+ namespace UnionMember0 {
512
+ interface Layout {
513
+ height: number;
514
+ width: number;
515
+ }
516
+ interface Report {
517
+ id: string;
518
+ kind: 'insight' | 'funnel' | 'journey';
519
+ }
520
+ }
521
+ interface UnionMember1 {
522
+ id: string;
523
+ layout: UnionMember1.Layout;
524
+ text: UnionMember1.Text;
525
+ }
526
+ namespace UnionMember1 {
527
+ interface Layout {
528
+ height: number;
529
+ width: number;
530
+ }
531
+ interface Text {
532
+ markdown: string;
533
+ }
534
+ }
535
+ interface UnionMember2 {
536
+ id: string;
537
+ layout: UnionMember2.Layout;
538
+ replays: UnionMember2.Replays;
539
+ }
540
+ namespace UnionMember2 {
541
+ interface Layout {
542
+ height: number;
543
+ width: number;
544
+ }
545
+ interface Replays {
546
+ limit: number;
547
+ eventName?: string;
548
+ filter?: Replays.Filter;
549
+ pathname?: string;
550
+ title?: string;
551
+ }
552
+ namespace Replays {
553
+ interface Filter {
554
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
555
+ version: 1;
556
+ }
557
+ namespace Filter {
558
+ interface UnionMember0 {
559
+ children: Array<unknown>;
560
+ kind: 'and' | 'or';
561
+ }
562
+ interface UnionMember1 {
563
+ child: unknown;
564
+ kind: 'not';
565
+ }
566
+ interface UnionMember2 {
567
+ kind: 'predicate';
568
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
569
+ property: string;
570
+ path?: Array<string>;
571
+ type?: 'string' | 'number' | 'boolean';
572
+ value?: string | number | boolean | Array<string | number | boolean>;
573
+ }
574
+ }
575
+ }
576
+ }
577
+ /**
578
+ * Shared analytics filter, combined with Insight report filters or Funnel and
579
+ * Journey entry filters. Null clears it; report-specific filters remain in effect.
580
+ */
581
+ interface Filter {
582
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
583
+ version: 1;
584
+ }
585
+ namespace Filter {
586
+ interface UnionMember0 {
587
+ children: Array<UnionMember0.UnionMember0 | UnionMember0.UnionMember1 | UnionMember0.UnionMember2>;
588
+ kind: 'and' | 'or';
589
+ }
590
+ namespace UnionMember0 {
591
+ interface UnionMember0 {
592
+ children: Array<unknown>;
593
+ kind: 'and' | 'or';
594
+ }
595
+ interface UnionMember1 {
596
+ child: unknown;
597
+ kind: 'not';
598
+ }
599
+ interface UnionMember2 {
600
+ kind: 'predicate';
601
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
602
+ property: string;
603
+ path?: Array<string>;
604
+ type?: 'string' | 'number' | 'boolean';
605
+ value?: string | number | boolean | Array<string | number | boolean>;
606
+ }
607
+ }
608
+ interface UnionMember1 {
609
+ child: UnionMember1.UnionMember0 | UnionMember1.UnionMember1 | UnionMember1.UnionMember2;
610
+ kind: 'not';
611
+ }
612
+ namespace UnionMember1 {
613
+ interface UnionMember0 {
614
+ children: Array<unknown>;
615
+ kind: 'and' | 'or';
616
+ }
617
+ interface UnionMember1 {
618
+ child: unknown;
619
+ kind: 'not';
620
+ }
621
+ interface UnionMember2 {
622
+ kind: 'predicate';
623
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
624
+ property: string;
625
+ path?: Array<string>;
626
+ type?: 'string' | 'number' | 'boolean';
627
+ value?: string | number | boolean | Array<string | number | boolean>;
628
+ }
629
+ }
630
+ interface UnionMember2 {
631
+ kind: 'predicate';
632
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
633
+ property: string;
634
+ path?: Array<string>;
635
+ type?: 'string' | 'number' | 'boolean';
636
+ value?: string | number | boolean | Array<string | number | boolean>;
637
+ }
638
+ }
639
+ }
640
+ export interface DashboardUpdateResponse {
641
+ id: string;
642
+ createdAt: string;
643
+ createdByUserId: string;
644
+ /**
645
+ * Display name for the saved Dashboard.
646
+ */
647
+ name: string;
648
+ /**
649
+ * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
650
+ * Journey tiles support up to 91 inclusive days; Insights retain their native
651
+ * range limit.
652
+ */
653
+ reportContext: DashboardUpdateResponse.ReportContext;
654
+ revision: string;
655
+ /**
656
+ * Ordered collection of up to 12 tiles; every kind counts toward the limit. Each
657
+ * tile has id, layout { width 3-12, height }, and exactly one of report { kind:
658
+ * insight|funnel|journey, id }, text { markdown } (at most 10000 characters per
659
+ * tile and 20000 per Dashboard; height 80-960), or replays { title?, eventName?,
660
+ * pathname?, filter?, limit 5-25 } (height 240-960, like report tiles). Replaces
661
+ * the collection on PATCH; removing a tile does not delete its report. Referenced
662
+ * reports require web-analytics:view; Insights also require variables:find-custom
663
+ * and Journeys with selected sources require source:view. Replay tile results
664
+ * require web-analytics:view, like the Session Replay list.
665
+ */
666
+ tiles: Array<DashboardUpdateResponse.UnionMember0 | DashboardUpdateResponse.UnionMember1 | DashboardUpdateResponse.UnionMember2>;
667
+ updatedAt: string;
668
+ updatedByUserId: string;
669
+ /**
670
+ * Optional description; null clears it.
671
+ */
672
+ description?: string | null;
673
+ /**
674
+ * Shared analytics filter, combined with Insight report filters or Funnel and
675
+ * Journey entry filters. Null clears it; report-specific filters remain in effect.
676
+ */
677
+ filter?: DashboardUpdateResponse.Filter;
678
+ }
679
+ export declare namespace DashboardUpdateResponse {
680
+ /**
681
+ * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
682
+ * Journey tiles support up to 91 inclusive days; Insights retain their native
683
+ * range limit.
684
+ */
685
+ interface ReportContext {
686
+ dateRange: ReportContext.UnionMember0 | ReportContext.UnionMember1;
687
+ }
688
+ namespace ReportContext {
689
+ interface UnionMember0 {
690
+ from: string;
691
+ to: string;
692
+ timeZone?: 'UTC';
693
+ }
694
+ interface UnionMember1 {
695
+ preset: 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days' | 'last_12_months' | 'week_to_date' | 'month_to_date' | 'year_to_date';
696
+ timeZone?: 'UTC';
697
+ }
698
+ }
699
+ interface UnionMember0 {
700
+ id: string;
701
+ layout: UnionMember0.Layout;
702
+ report: UnionMember0.Report;
703
+ }
704
+ namespace UnionMember0 {
705
+ interface Layout {
706
+ height: number;
707
+ width: number;
708
+ }
709
+ interface Report {
710
+ id: string;
711
+ kind: 'insight' | 'funnel' | 'journey';
712
+ }
713
+ }
714
+ interface UnionMember1 {
715
+ id: string;
716
+ layout: UnionMember1.Layout;
717
+ text: UnionMember1.Text;
718
+ }
719
+ namespace UnionMember1 {
720
+ interface Layout {
721
+ height: number;
722
+ width: number;
723
+ }
724
+ interface Text {
725
+ markdown: string;
726
+ }
727
+ }
728
+ interface UnionMember2 {
729
+ id: string;
730
+ layout: UnionMember2.Layout;
731
+ replays: UnionMember2.Replays;
732
+ }
733
+ namespace UnionMember2 {
734
+ interface Layout {
735
+ height: number;
736
+ width: number;
737
+ }
738
+ interface Replays {
739
+ limit: number;
740
+ eventName?: string;
741
+ filter?: Replays.Filter;
742
+ pathname?: string;
743
+ title?: string;
744
+ }
745
+ namespace Replays {
746
+ interface Filter {
747
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
748
+ version: 1;
749
+ }
750
+ namespace Filter {
751
+ interface UnionMember0 {
752
+ children: Array<unknown>;
753
+ kind: 'and' | 'or';
754
+ }
755
+ interface UnionMember1 {
756
+ child: unknown;
757
+ kind: 'not';
758
+ }
759
+ interface UnionMember2 {
760
+ kind: 'predicate';
761
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
762
+ property: string;
763
+ path?: Array<string>;
764
+ type?: 'string' | 'number' | 'boolean';
765
+ value?: string | number | boolean | Array<string | number | boolean>;
766
+ }
767
+ }
768
+ }
769
+ }
770
+ /**
771
+ * Shared analytics filter, combined with Insight report filters or Funnel and
772
+ * Journey entry filters. Null clears it; report-specific filters remain in effect.
773
+ */
774
+ interface Filter {
775
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
776
+ version: 1;
777
+ }
778
+ namespace Filter {
779
+ interface UnionMember0 {
780
+ children: Array<UnionMember0.UnionMember0 | UnionMember0.UnionMember1 | UnionMember0.UnionMember2>;
781
+ kind: 'and' | 'or';
782
+ }
783
+ namespace UnionMember0 {
784
+ interface UnionMember0 {
785
+ children: Array<unknown>;
786
+ kind: 'and' | 'or';
787
+ }
788
+ interface UnionMember1 {
789
+ child: unknown;
790
+ kind: 'not';
791
+ }
792
+ interface UnionMember2 {
793
+ kind: 'predicate';
794
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
795
+ property: string;
796
+ path?: Array<string>;
797
+ type?: 'string' | 'number' | 'boolean';
798
+ value?: string | number | boolean | Array<string | number | boolean>;
799
+ }
800
+ }
801
+ interface UnionMember1 {
802
+ child: UnionMember1.UnionMember0 | UnionMember1.UnionMember1 | UnionMember1.UnionMember2;
803
+ kind: 'not';
804
+ }
805
+ namespace UnionMember1 {
806
+ interface UnionMember0 {
807
+ children: Array<unknown>;
808
+ kind: 'and' | 'or';
809
+ }
810
+ interface UnionMember1 {
811
+ child: unknown;
812
+ kind: 'not';
813
+ }
814
+ interface UnionMember2 {
815
+ kind: 'predicate';
816
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
817
+ property: string;
818
+ path?: Array<string>;
819
+ type?: 'string' | 'number' | 'boolean';
820
+ value?: string | number | boolean | Array<string | number | boolean>;
821
+ }
822
+ }
823
+ interface UnionMember2 {
824
+ kind: 'predicate';
825
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
826
+ property: string;
827
+ path?: Array<string>;
828
+ type?: 'string' | 'number' | 'boolean';
829
+ value?: string | number | boolean | Array<string | number | boolean>;
830
+ }
831
+ }
832
+ }
833
+ export interface DashboardDeleteResponse {
834
+ id: string;
835
+ deleted: true;
836
+ deletedRevision: string;
837
+ }
838
+ export interface DashboardDuplicateResponse {
839
+ id: string;
840
+ createdAt: string;
841
+ createdByUserId: string;
842
+ /**
843
+ * Display name for the saved Dashboard.
844
+ */
845
+ name: string;
846
+ /**
847
+ * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
848
+ * Journey tiles support up to 91 inclusive days; Insights retain their native
849
+ * range limit.
850
+ */
851
+ reportContext: DashboardDuplicateResponse.ReportContext;
852
+ revision: string;
853
+ /**
854
+ * Ordered collection of up to 12 tiles; every kind counts toward the limit. Each
855
+ * tile has id, layout { width 3-12, height }, and exactly one of report { kind:
856
+ * insight|funnel|journey, id }, text { markdown } (at most 10000 characters per
857
+ * tile and 20000 per Dashboard; height 80-960), or replays { title?, eventName?,
858
+ * pathname?, filter?, limit 5-25 } (height 240-960, like report tiles). Replaces
859
+ * the collection on PATCH; removing a tile does not delete its report. Referenced
860
+ * reports require web-analytics:view; Insights also require variables:find-custom
861
+ * and Journeys with selected sources require source:view. Replay tile results
862
+ * require web-analytics:view, like the Session Replay list.
863
+ */
864
+ tiles: Array<DashboardDuplicateResponse.UnionMember0 | DashboardDuplicateResponse.UnionMember1 | DashboardDuplicateResponse.UnionMember2>;
865
+ updatedAt: string;
866
+ updatedByUserId: string;
867
+ /**
868
+ * Optional description; null clears it.
869
+ */
870
+ description?: string | null;
871
+ /**
872
+ * Shared analytics filter, combined with Insight report filters or Funnel and
873
+ * Journey entry filters. Null clears it; report-specific filters remain in effect.
874
+ */
875
+ filter?: DashboardDuplicateResponse.Filter;
876
+ }
877
+ export declare namespace DashboardDuplicateResponse {
878
+ /**
879
+ * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
880
+ * Journey tiles support up to 91 inclusive days; Insights retain their native
881
+ * range limit.
882
+ */
883
+ interface ReportContext {
884
+ dateRange: ReportContext.UnionMember0 | ReportContext.UnionMember1;
885
+ }
886
+ namespace ReportContext {
887
+ interface UnionMember0 {
888
+ from: string;
889
+ to: string;
890
+ timeZone?: 'UTC';
891
+ }
892
+ interface UnionMember1 {
893
+ preset: 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days' | 'last_12_months' | 'week_to_date' | 'month_to_date' | 'year_to_date';
894
+ timeZone?: 'UTC';
895
+ }
896
+ }
897
+ interface UnionMember0 {
898
+ id: string;
899
+ layout: UnionMember0.Layout;
900
+ report: UnionMember0.Report;
901
+ }
902
+ namespace UnionMember0 {
903
+ interface Layout {
904
+ height: number;
905
+ width: number;
906
+ }
907
+ interface Report {
908
+ id: string;
909
+ kind: 'insight' | 'funnel' | 'journey';
910
+ }
911
+ }
912
+ interface UnionMember1 {
913
+ id: string;
914
+ layout: UnionMember1.Layout;
915
+ text: UnionMember1.Text;
916
+ }
917
+ namespace UnionMember1 {
918
+ interface Layout {
919
+ height: number;
920
+ width: number;
921
+ }
922
+ interface Text {
923
+ markdown: string;
924
+ }
925
+ }
926
+ interface UnionMember2 {
927
+ id: string;
928
+ layout: UnionMember2.Layout;
929
+ replays: UnionMember2.Replays;
930
+ }
931
+ namespace UnionMember2 {
932
+ interface Layout {
933
+ height: number;
934
+ width: number;
935
+ }
936
+ interface Replays {
937
+ limit: number;
938
+ eventName?: string;
939
+ filter?: Replays.Filter;
940
+ pathname?: string;
941
+ title?: string;
942
+ }
943
+ namespace Replays {
944
+ interface Filter {
945
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
946
+ version: 1;
947
+ }
948
+ namespace Filter {
949
+ interface UnionMember0 {
950
+ children: Array<unknown>;
951
+ kind: 'and' | 'or';
952
+ }
953
+ interface UnionMember1 {
954
+ child: unknown;
955
+ kind: 'not';
956
+ }
957
+ interface UnionMember2 {
958
+ kind: 'predicate';
959
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
960
+ property: string;
961
+ path?: Array<string>;
962
+ type?: 'string' | 'number' | 'boolean';
963
+ value?: string | number | boolean | Array<string | number | boolean>;
964
+ }
965
+ }
966
+ }
967
+ }
968
+ /**
969
+ * Shared analytics filter, combined with Insight report filters or Funnel and
970
+ * Journey entry filters. Null clears it; report-specific filters remain in effect.
971
+ */
972
+ interface Filter {
973
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
974
+ version: 1;
975
+ }
976
+ namespace Filter {
977
+ interface UnionMember0 {
978
+ children: Array<UnionMember0.UnionMember0 | UnionMember0.UnionMember1 | UnionMember0.UnionMember2>;
979
+ kind: 'and' | 'or';
980
+ }
981
+ namespace UnionMember0 {
982
+ interface UnionMember0 {
983
+ children: Array<unknown>;
984
+ kind: 'and' | 'or';
985
+ }
986
+ interface UnionMember1 {
987
+ child: unknown;
988
+ kind: 'not';
989
+ }
990
+ interface UnionMember2 {
991
+ kind: 'predicate';
992
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
993
+ property: string;
994
+ path?: Array<string>;
995
+ type?: 'string' | 'number' | 'boolean';
996
+ value?: string | number | boolean | Array<string | number | boolean>;
997
+ }
998
+ }
999
+ interface UnionMember1 {
1000
+ child: UnionMember1.UnionMember0 | UnionMember1.UnionMember1 | UnionMember1.UnionMember2;
1001
+ kind: 'not';
1002
+ }
1003
+ namespace UnionMember1 {
1004
+ interface UnionMember0 {
1005
+ children: Array<unknown>;
1006
+ kind: 'and' | 'or';
1007
+ }
1008
+ interface UnionMember1 {
1009
+ child: unknown;
1010
+ kind: 'not';
1011
+ }
1012
+ interface UnionMember2 {
1013
+ kind: 'predicate';
1014
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
1015
+ property: string;
1016
+ path?: Array<string>;
1017
+ type?: 'string' | 'number' | 'boolean';
1018
+ value?: string | number | boolean | Array<string | number | boolean>;
1019
+ }
1020
+ }
1021
+ interface UnionMember2 {
1022
+ kind: 'predicate';
1023
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
1024
+ property: string;
1025
+ path?: Array<string>;
1026
+ type?: 'string' | 'number' | 'boolean';
1027
+ value?: string | number | boolean | Array<string | number | boolean>;
1028
+ }
1029
+ }
1030
+ }
1031
+ export type DashboardPreviewResponse = DashboardPreviewResponse.UnionMember0 | DashboardPreviewResponse.UnionMember1 | DashboardPreviewResponse.UnionMember2;
1032
+ export declare namespace DashboardPreviewResponse {
1033
+ interface UnionMember0 {
1034
+ computedAt: string;
1035
+ kind: 'insight';
1036
+ report: UnionMember0.Report;
1037
+ result: UnionMember0.Result;
1038
+ /**
1039
+ * Tile identifier from get_dashboard, or a new unique tile identifier for a report
1040
+ * preview.
1041
+ */
1042
+ tileId: string;
1043
+ }
1044
+ namespace UnionMember0 {
1045
+ interface Report {
1046
+ id: string;
1047
+ createdAt: string;
1048
+ createdByUserId: string;
1049
+ /**
1050
+ * Version 1 Insight definition: one to ten metrics and a day, week, or month
1051
+ * interval. Sum and average require a numeric event property. Filters use the
1052
+ * analytics property catalog.
1053
+ */
1054
+ definition: Report.Definition;
1055
+ /**
1056
+ * Display name for the saved Insight.
1057
+ */
1058
+ name: string;
1059
+ /**
1060
+ * UTC date range using either a preset or inclusive from/to calendar dates, up to
1061
+ * 366 days.
1062
+ */
1063
+ reportContext: Report.ReportContext;
1064
+ revision: string;
1065
+ updatedAt: string;
1066
+ updatedByUserId: string;
1067
+ /**
1068
+ * Complete chart settings. Replaces the saved view when supplied on PATCH; omitted
1069
+ * view fields reset to their defaults.
1070
+ */
1071
+ view: Report.View;
1072
+ /**
1073
+ * Optional description; null clears it.
1074
+ */
1075
+ description?: string | null;
1076
+ }
1077
+ namespace Report {
1078
+ /**
1079
+ * Version 1 Insight definition: one to ten metrics and a day, week, or month
1080
+ * interval. Sum and average require a numeric event property. Filters use the
1081
+ * analytics property catalog.
1082
+ */
1083
+ interface Definition {
1084
+ interval: 'day' | 'week' | 'month';
1085
+ kind: 'insight';
1086
+ metrics: Array<Definition.Metric>;
1087
+ version: 1;
1088
+ filter?: Definition.Filter;
1089
+ }
1090
+ namespace Definition {
1091
+ interface Metric {
1092
+ id: string;
1093
+ aggregation: 'event_count' | 'unique_visitors' | 'sum' | 'average';
1094
+ eventNames: Array<string>;
1095
+ name: string;
1096
+ filter?: Metric.Filter;
1097
+ property?: Metric.Property;
1098
+ }
1099
+ namespace Metric {
1100
+ interface Filter {
1101
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
1102
+ version: 1;
1103
+ }
1104
+ namespace Filter {
1105
+ interface UnionMember0 {
1106
+ children: Array<unknown>;
1107
+ kind: 'and' | 'or';
1108
+ }
1109
+ interface UnionMember1 {
1110
+ child: unknown;
1111
+ kind: 'not';
1112
+ }
1113
+ interface UnionMember2 {
1114
+ kind: 'predicate';
1115
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
1116
+ property: string;
1117
+ path?: Array<string>;
1118
+ type?: 'string' | 'number' | 'boolean';
1119
+ value?: string | number | boolean | Array<string | number | boolean>;
1120
+ }
1121
+ }
1122
+ interface Property {
1123
+ path: Array<string>;
1124
+ property: 'event.properties';
1125
+ type?: 'number';
1126
+ }
1127
+ }
1128
+ interface Filter {
1129
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
1130
+ version: 1;
1131
+ }
1132
+ namespace Filter {
1133
+ interface UnionMember0 {
1134
+ children: Array<unknown>;
1135
+ kind: 'and' | 'or';
1136
+ }
1137
+ interface UnionMember1 {
1138
+ child: unknown;
1139
+ kind: 'not';
1140
+ }
1141
+ interface UnionMember2 {
1142
+ kind: 'predicate';
1143
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
1144
+ property: string;
1145
+ path?: Array<string>;
1146
+ type?: 'string' | 'number' | 'boolean';
1147
+ value?: string | number | boolean | Array<string | number | boolean>;
1148
+ }
1149
+ }
1150
+ }
1151
+ /**
1152
+ * UTC date range using either a preset or inclusive from/to calendar dates, up to
1153
+ * 366 days.
1154
+ */
1155
+ interface ReportContext {
1156
+ dateRange: ReportContext.UnionMember0 | ReportContext.UnionMember1;
1157
+ }
1158
+ namespace ReportContext {
1159
+ interface UnionMember0 {
1160
+ from: string;
1161
+ to: string;
1162
+ timeZone?: 'UTC';
1163
+ }
1164
+ interface UnionMember1 {
1165
+ preset: 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days' | 'last_12_months' | 'week_to_date' | 'month_to_date' | 'year_to_date';
1166
+ timeZone?: 'UTC';
1167
+ }
1168
+ }
1169
+ /**
1170
+ * Complete chart settings. Replaces the saved view when supplied on PATCH; omitted
1171
+ * view fields reset to their defaults.
1172
+ */
1173
+ interface View {
1174
+ cumulative?: boolean;
1175
+ series?: Array<View.Series>;
1176
+ smoothing?: 'none' | 'rolling_average';
1177
+ smoothingWindow?: number;
1178
+ stacked?: boolean;
1179
+ tableSort?: View.TableSort;
1180
+ visualization?: 'line' | 'column' | 'bar' | 'pie' | 'table' | 'metric';
1181
+ yAxisScale?: 'linear' | 'log';
1182
+ }
1183
+ namespace View {
1184
+ interface Series {
1185
+ metricId: string;
1186
+ color?: string;
1187
+ hidden?: boolean;
1188
+ }
1189
+ interface TableSort {
1190
+ column: 'label' | 'range_value' | 'average';
1191
+ direction: 'asc' | 'desc';
1192
+ }
1193
+ }
1194
+ }
1195
+ interface Result {
1196
+ engine: 'clickhouse';
1197
+ /**
1198
+ * Saved report identifier; null for previews.
1199
+ */
1200
+ reportId: string | null;
1201
+ /**
1202
+ * Saved report revision; null for previews.
1203
+ */
1204
+ revision: string | null;
1205
+ scope: Result.Scope;
1206
+ semanticVersion: 1;
1207
+ series: Array<Result.Series>;
1208
+ sourceLimitations: Array<string>;
1209
+ sourcePolicy: string;
1210
+ sourceRevision?: string | null;
1211
+ }
1212
+ namespace Result {
1213
+ interface Scope {
1214
+ cumulative: boolean;
1215
+ executedAt: string;
1216
+ from: string;
1217
+ interval: 'day' | 'week' | 'month';
1218
+ sourceCompleteness: 'unknown';
1219
+ timeZone: 'UTC';
1220
+ to: string;
1221
+ comparison?: Scope.Comparison | null;
1222
+ }
1223
+ namespace Scope {
1224
+ interface Comparison {
1225
+ from: string;
1226
+ kind: 'previous_period' | 'previous_year' | 'custom';
1227
+ to: string;
1228
+ }
1229
+ }
1230
+ interface Series {
1231
+ aggregation: 'event_count' | 'unique_visitors' | 'sum' | 'average';
1232
+ breakdownValues: Array<Series.BreakdownValue>;
1233
+ comparison: 'previous_period' | 'previous_year' | 'custom' | null;
1234
+ key: string;
1235
+ label: string;
1236
+ metricId: string;
1237
+ points: Array<Series.Point>;
1238
+ rangeValue: number | null;
1239
+ }
1240
+ namespace Series {
1241
+ interface BreakdownValue {
1242
+ property: string;
1243
+ value: string | null;
1244
+ }
1245
+ interface Point {
1246
+ bucketEnd: string;
1247
+ bucketStart: string;
1248
+ cumulative: number | null;
1249
+ isPartial: boolean;
1250
+ raw: number | null;
1251
+ smoothed: number | null;
1252
+ }
1253
+ }
1254
+ }
1255
+ }
1256
+ interface UnionMember1 {
1257
+ computedAt: string;
1258
+ kind: 'funnel';
1259
+ /**
1260
+ * Funnel configuration details.
1261
+ */
1262
+ report: UnionMember1.Report;
1263
+ result: UnionMember1.Result;
1264
+ /**
1265
+ * Tile identifier from get_dashboard, or a new unique tile identifier for a report
1266
+ * preview.
1267
+ */
1268
+ tileId: string;
1269
+ }
1270
+ namespace UnionMember1 {
1271
+ /**
1272
+ * Funnel configuration details.
1273
+ */
1274
+ interface Report {
1275
+ createdAt: string;
1276
+ funnelId: string;
1277
+ name: string;
1278
+ /**
1279
+ * Versioned funnel definition with typed steps and filters.
1280
+ */
1281
+ queryDefinition: Report.QueryDefinition;
1282
+ status: 'READY' | 'PROCESSING';
1283
+ updatedAt: string;
1284
+ /**
1285
+ * Optional description; null clears it.
1286
+ */
1287
+ description?: string | null;
1288
+ reportDateRange?: Report.ReportDateRange | null;
1289
+ watched?: boolean | null;
1290
+ }
1291
+ namespace Report {
1292
+ /**
1293
+ * Versioned funnel definition with typed steps and filters.
1294
+ */
1295
+ interface QueryDefinition {
1296
+ counting: 'unique' | 'events' | 'sessions';
1297
+ identity: 'session' | 'visitor';
1298
+ kind: 'funnel';
1299
+ order: 'ordered' | 'any';
1300
+ reentry: 'first' | 'best';
1301
+ steps: Array<QueryDefinition.Step>;
1302
+ version: 1;
1303
+ windowMs: number;
1304
+ entryFilter?: QueryDefinition.EntryFilter;
1305
+ filter?: QueryDefinition.Filter;
1306
+ }
1307
+ namespace QueryDefinition {
1308
+ interface Step {
1309
+ id: string;
1310
+ eventName: string;
1311
+ name: string;
1312
+ filter?: Step.Filter;
1313
+ }
1314
+ namespace Step {
1315
+ interface Filter {
1316
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
1317
+ version: 1;
1318
+ }
1319
+ namespace Filter {
1320
+ interface UnionMember0 {
1321
+ children: Array<unknown>;
1322
+ kind: 'and' | 'or';
1323
+ }
1324
+ interface UnionMember1 {
1325
+ child: unknown;
1326
+ kind: 'not';
1327
+ }
1328
+ interface UnionMember2 {
1329
+ kind: 'predicate';
1330
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
1331
+ property: string;
1332
+ path?: Array<string>;
1333
+ type?: 'string' | 'number' | 'boolean';
1334
+ value?: string | number | boolean | Array<string | number | boolean>;
1335
+ }
1336
+ }
1337
+ }
1338
+ interface EntryFilter {
1339
+ filter: EntryFilter.UnionMember0 | EntryFilter.UnionMember1 | EntryFilter.UnionMember2;
1340
+ version: 1;
1341
+ }
1342
+ namespace EntryFilter {
1343
+ interface UnionMember0 {
1344
+ children: Array<unknown>;
1345
+ kind: 'and' | 'or';
1346
+ }
1347
+ interface UnionMember1 {
1348
+ child: unknown;
1349
+ kind: 'not';
1350
+ }
1351
+ interface UnionMember2 {
1352
+ kind: 'predicate';
1353
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
1354
+ property: string;
1355
+ path?: Array<string>;
1356
+ type?: 'string' | 'number' | 'boolean';
1357
+ value?: string | number | boolean | Array<string | number | boolean>;
1358
+ }
1359
+ }
1360
+ interface Filter {
1361
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
1362
+ version: 1;
1363
+ }
1364
+ namespace Filter {
1365
+ interface UnionMember0 {
1366
+ children: Array<unknown>;
1367
+ kind: 'and' | 'or';
1368
+ }
1369
+ interface UnionMember1 {
1370
+ child: unknown;
1371
+ kind: 'not';
1372
+ }
1373
+ interface UnionMember2 {
1374
+ kind: 'predicate';
1375
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
1376
+ property: string;
1377
+ path?: Array<string>;
1378
+ type?: 'string' | 'number' | 'boolean';
1379
+ value?: string | number | boolean | Array<string | number | boolean>;
1380
+ }
1381
+ }
1382
+ }
1383
+ interface ReportDateRange {
1384
+ from: string;
1385
+ to: string;
1386
+ }
1387
+ }
1388
+ interface Result {
1389
+ definitionUpdatedAt: string;
1390
+ engine: string;
1391
+ /**
1392
+ * Ratio of last-step to first-step volume as a percentage. Event-counting ratios
1393
+ * may exceed 100%.
1394
+ */
1395
+ overallConversionRate: number;
1396
+ scope: Result.Scope;
1397
+ semanticVersion: 1;
1398
+ /**
1399
+ * Data quality limitations affecting these results. Source completeness and
1400
+ * conflicting event corrections may be unverified.
1401
+ */
1402
+ sourceLimitations: Array<'equal-load-conflicts-unverified' | 'cross-key-corrections-unverified' | 'source-completeness-unverified'>;
1403
+ sourcePolicy: 'events-v3-physical-key';
1404
+ /**
1405
+ * Per-step funnel analytics, ordered by step number.
1406
+ */
1407
+ steps: Array<Result.Step>;
1408
+ /**
1409
+ * First-step volume using the saved counting method: unique people, sessions, or
1410
+ * events.
1411
+ */
1412
+ totalVisitors: number;
1413
+ /**
1414
+ * Average time from first step to last step in seconds. Null when no completions.
1415
+ */
1416
+ overallAvgTimeToConversion?: number | null;
1417
+ sourceRevision?: string | null;
1418
+ }
1419
+ namespace Result {
1420
+ interface Scope {
1421
+ entryFrom: string;
1422
+ entryTo: string;
1423
+ observationFrom: string;
1424
+ observationTo: string;
1425
+ timezone: 'UTC';
1426
+ windowMs: number;
1427
+ observationComplete?: boolean | null;
1428
+ settledEntryTo?: string | null;
1429
+ watermark?: string | null;
1430
+ }
1431
+ interface Step {
1432
+ conversionCount: number;
1433
+ /**
1434
+ * Step ratio as a percentage. Event-counting ratios may exceed 100%.
1435
+ */
1436
+ conversionRate: number;
1437
+ /**
1438
+ * Drop-off percentage for participant counting; zero when the previous step volume
1439
+ * is zero. Not a participant loss measure for event counting.
1440
+ */
1441
+ dropOffRate: number;
1442
+ dropOffSessionIds: Array<string>;
1443
+ dropOffVisitorIds: Array<string>;
1444
+ /**
1445
+ * Ratio to first-step volume as a percentage. Event-counting ratios may exceed
1446
+ * 100%.
1447
+ */
1448
+ overallConversionRate: number;
1449
+ sessionIds: Array<string>;
1450
+ stepNumber: number;
1451
+ /**
1452
+ * Step volume using the saved counting method: unique people, sessions, or events.
1453
+ */
1454
+ visitorCount: number;
1455
+ visitorIds: Array<string>;
1456
+ /**
1457
+ * Average incoming hop time from the previous step to this step, in seconds.
1458
+ */
1459
+ avgTimeToNextStep?: number | null;
1460
+ }
1461
+ }
1462
+ }
1463
+ interface UnionMember2 {
1464
+ computedAt: string;
1465
+ kind: 'journey';
1466
+ report: UnionMember2.Report;
1467
+ result: UnionMember2.Result;
1468
+ /**
1469
+ * Tile identifier from get_dashboard, or a new unique tile identifier for a report
1470
+ * preview.
1471
+ */
1472
+ tileId: string;
1473
+ }
1474
+ namespace UnionMember2 {
1475
+ interface Report {
1476
+ id: string;
1477
+ createdAt: string;
1478
+ createdByUserId: string;
1479
+ /**
1480
+ * Version 1 Journey Flow definition with anchors, event or page matchers,
1481
+ * counting, scope, and exploration settings. Selecting specific sourceIds also
1482
+ * requires source:view permission.
1483
+ */
1484
+ definition: Report.Definition;
1485
+ name: string;
1486
+ /**
1487
+ * Complete UTC date range and comparisons for this Journey Flow.
1488
+ */
1489
+ reportContext: Report.ReportContext;
1490
+ revision: string;
1491
+ updatedAt: string;
1492
+ updatedByUserId: string;
1493
+ /**
1494
+ * Complete visualization settings. Supplied view replaces the saved value on
1495
+ * PATCH.
1496
+ */
1497
+ view: Report.View;
1498
+ /**
1499
+ * Optional description; null clears it.
1500
+ */
1501
+ description?: string | null;
1502
+ }
1503
+ namespace Report {
1504
+ /**
1505
+ * Version 1 Journey Flow definition with anchors, event or page matchers,
1506
+ * counting, scope, and exploration settings. Selecting specific sourceIds also
1507
+ * requires source:view permission.
1508
+ */
1509
+ interface Definition {
1510
+ anchors: Array<Definition.Anchor>;
1511
+ exploration: Definition.Exploration;
1512
+ kind: 'journey-flow';
1513
+ scope: Definition.Scope;
1514
+ version: 1;
1515
+ anchorFilter?: Definition.AnchorFilter;
1516
+ breakdown?: Definition.Breakdown;
1517
+ contextWindowMs?: number;
1518
+ conversionWindowMs?: number;
1519
+ counting?: 'unique' | 'totals' | 'sessions';
1520
+ entryFilter?: Definition.EntryFilter;
1521
+ exclusions?: Array<Definition.Exclusion>;
1522
+ holdConstant?: Array<Definition.HoldConstant>;
1523
+ nodeExpansions?: Array<Definition.NodeExpansion>;
1524
+ reentry?: 'first' | 'best';
1525
+ }
1526
+ namespace Definition {
1527
+ interface Anchor {
1528
+ id: string;
1529
+ alternatives: Array<Anchor.UnionMember0 | Anchor.UnionMember1>;
1530
+ filter?: Anchor.Filter;
1531
+ label?: string;
1532
+ }
1533
+ namespace Anchor {
1534
+ interface UnionMember0 {
1535
+ eventName: string;
1536
+ kind: 'event';
1537
+ filter?: UnionMember0.Filter;
1538
+ }
1539
+ namespace UnionMember0 {
1540
+ interface Filter {
1541
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
1542
+ version: 1;
1543
+ }
1544
+ namespace Filter {
1545
+ interface UnionMember0 {
1546
+ children: Array<unknown>;
1547
+ kind: 'and' | 'or';
1548
+ }
1549
+ interface UnionMember1 {
1550
+ child: unknown;
1551
+ kind: 'not';
1552
+ }
1553
+ interface UnionMember2 {
1554
+ kind: 'predicate';
1555
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
1556
+ property: string;
1557
+ path?: Array<string>;
1558
+ type?: 'string' | 'number' | 'boolean';
1559
+ value?: string | number | boolean | Array<string | number | boolean>;
1560
+ }
1561
+ }
1562
+ }
1563
+ interface UnionMember1 {
1564
+ kind: 'page';
1565
+ filter?: UnionMember1.Filter;
1566
+ }
1567
+ namespace UnionMember1 {
1568
+ interface Filter {
1569
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
1570
+ version: 1;
1571
+ }
1572
+ namespace Filter {
1573
+ interface UnionMember0 {
1574
+ children: Array<unknown>;
1575
+ kind: 'and' | 'or';
1576
+ }
1577
+ interface UnionMember1 {
1578
+ child: unknown;
1579
+ kind: 'not';
1580
+ }
1581
+ interface UnionMember2 {
1582
+ kind: 'predicate';
1583
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
1584
+ property: string;
1585
+ path?: Array<string>;
1586
+ type?: 'string' | 'number' | 'boolean';
1587
+ value?: string | number | boolean | Array<string | number | boolean>;
1588
+ }
1589
+ }
1590
+ }
1591
+ interface Filter {
1592
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
1593
+ version: 1;
1594
+ }
1595
+ namespace Filter {
1596
+ interface UnionMember0 {
1597
+ children: Array<unknown>;
1598
+ kind: 'and' | 'or';
1599
+ }
1600
+ interface UnionMember1 {
1601
+ child: unknown;
1602
+ kind: 'not';
1603
+ }
1604
+ interface UnionMember2 {
1605
+ kind: 'predicate';
1606
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
1607
+ property: string;
1608
+ path?: Array<string>;
1609
+ type?: 'string' | 'number' | 'boolean';
1610
+ value?: string | number | boolean | Array<string | number | boolean>;
1611
+ }
1612
+ }
1613
+ }
1614
+ interface Exploration {
1615
+ after?: number;
1616
+ before?: number;
1617
+ between?: Array<Exploration.Between>;
1618
+ collapseRepeats?: boolean;
1619
+ focus?: Array<Exploration.FocusUnionMember0 | Exploration.Outcome>;
1620
+ hiddenEvents?: Array<Exploration.HiddenEventsUnionMember0 | Exploration.UnionMember1>;
1621
+ pageKey?: 'path' | 'url';
1622
+ pathFilter?: Exploration.PathFilter;
1623
+ stepKinds?: Array<'event' | 'page'>;
1624
+ }
1625
+ namespace Exploration {
1626
+ interface Between {
1627
+ afterFrom: number;
1628
+ beforeTo: number;
1629
+ fromAnchorId: string;
1630
+ toAnchorId: string;
1631
+ }
1632
+ interface FocusUnionMember0 {
1633
+ position: FocusUnionMember0.Position;
1634
+ matcher?: FocusUnionMember0.UnionMember0 | FocusUnionMember0.UnionMember1;
1635
+ }
1636
+ namespace FocusUnionMember0 {
1637
+ interface Position {
1638
+ anchorId: string;
1639
+ offset: number;
1640
+ side: 'anchor' | 'before' | 'after';
1641
+ }
1642
+ interface UnionMember0 {
1643
+ eventName: string;
1644
+ kind: 'event';
1645
+ filter?: UnionMember0.Filter;
1646
+ }
1647
+ namespace UnionMember0 {
1648
+ interface Filter {
1649
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
1650
+ version: 1;
1651
+ }
1652
+ namespace Filter {
1653
+ interface UnionMember0 {
1654
+ children: Array<unknown>;
1655
+ kind: 'and' | 'or';
1656
+ }
1657
+ interface UnionMember1 {
1658
+ child: unknown;
1659
+ kind: 'not';
1660
+ }
1661
+ interface UnionMember2 {
1662
+ kind: 'predicate';
1663
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
1664
+ property: string;
1665
+ path?: Array<string>;
1666
+ type?: 'string' | 'number' | 'boolean';
1667
+ value?: string | number | boolean | Array<string | number | boolean>;
1668
+ }
1669
+ }
1670
+ }
1671
+ interface UnionMember1 {
1672
+ kind: 'page';
1673
+ filter?: UnionMember1.Filter;
1674
+ }
1675
+ namespace UnionMember1 {
1676
+ interface Filter {
1677
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
1678
+ version: 1;
1679
+ }
1680
+ namespace Filter {
1681
+ interface UnionMember0 {
1682
+ children: Array<unknown>;
1683
+ kind: 'and' | 'or';
1684
+ }
1685
+ interface UnionMember1 {
1686
+ child: unknown;
1687
+ kind: 'not';
1688
+ }
1689
+ interface UnionMember2 {
1690
+ kind: 'predicate';
1691
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
1692
+ property: string;
1693
+ path?: Array<string>;
1694
+ type?: 'string' | 'number' | 'boolean';
1695
+ value?: string | number | boolean | Array<string | number | boolean>;
1696
+ }
1697
+ }
1698
+ }
1699
+ }
1700
+ interface Outcome {
1701
+ outcome: 'completed' | 'incomplete';
1702
+ }
1703
+ interface HiddenEventsUnionMember0 {
1704
+ eventName: string;
1705
+ kind: 'event';
1706
+ filter?: HiddenEventsUnionMember0.Filter;
1707
+ }
1708
+ namespace HiddenEventsUnionMember0 {
1709
+ interface Filter {
1710
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
1711
+ version: 1;
1712
+ }
1713
+ namespace Filter {
1714
+ interface UnionMember0 {
1715
+ children: Array<unknown>;
1716
+ kind: 'and' | 'or';
1717
+ }
1718
+ interface UnionMember1 {
1719
+ child: unknown;
1720
+ kind: 'not';
1721
+ }
1722
+ interface UnionMember2 {
1723
+ kind: 'predicate';
1724
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
1725
+ property: string;
1726
+ path?: Array<string>;
1727
+ type?: 'string' | 'number' | 'boolean';
1728
+ value?: string | number | boolean | Array<string | number | boolean>;
1729
+ }
1730
+ }
1731
+ }
1732
+ interface UnionMember1 {
1733
+ kind: 'page';
1734
+ filter?: UnionMember1.Filter;
1735
+ }
1736
+ namespace UnionMember1 {
1737
+ interface Filter {
1738
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
1739
+ version: 1;
1740
+ }
1741
+ namespace Filter {
1742
+ interface UnionMember0 {
1743
+ children: Array<unknown>;
1744
+ kind: 'and' | 'or';
1745
+ }
1746
+ interface UnionMember1 {
1747
+ child: unknown;
1748
+ kind: 'not';
1749
+ }
1750
+ interface UnionMember2 {
1751
+ kind: 'predicate';
1752
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
1753
+ property: string;
1754
+ path?: Array<string>;
1755
+ type?: 'string' | 'number' | 'boolean';
1756
+ value?: string | number | boolean | Array<string | number | boolean>;
1757
+ }
1758
+ }
1759
+ }
1760
+ interface PathFilter {
1761
+ filter: PathFilter.UnionMember0 | PathFilter.UnionMember1 | PathFilter.UnionMember2;
1762
+ version: 1;
1763
+ }
1764
+ namespace PathFilter {
1765
+ interface UnionMember0 {
1766
+ children: Array<unknown>;
1767
+ kind: 'and' | 'or';
1768
+ }
1769
+ interface UnionMember1 {
1770
+ child: unknown;
1771
+ kind: 'not';
1772
+ }
1773
+ interface UnionMember2 {
1774
+ kind: 'predicate';
1775
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
1776
+ property: string;
1777
+ path?: Array<string>;
1778
+ type?: 'string' | 'number' | 'boolean';
1779
+ value?: string | number | boolean | Array<string | number | boolean>;
1780
+ }
1781
+ }
1782
+ }
1783
+ interface Scope {
1784
+ excludeBots: boolean;
1785
+ sourceIds: Array<string>;
1786
+ sessionFilter?: Scope.SessionFilter;
1787
+ }
1788
+ namespace Scope {
1789
+ interface SessionFilter {
1790
+ filter: SessionFilter.UnionMember0 | SessionFilter.UnionMember1 | SessionFilter.UnionMember2;
1791
+ version: 1;
1792
+ }
1793
+ namespace SessionFilter {
1794
+ interface UnionMember0 {
1795
+ children: Array<unknown>;
1796
+ kind: 'and' | 'or';
1797
+ }
1798
+ interface UnionMember1 {
1799
+ child: unknown;
1800
+ kind: 'not';
1801
+ }
1802
+ interface UnionMember2 {
1803
+ kind: 'predicate';
1804
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
1805
+ property: string;
1806
+ path?: Array<string>;
1807
+ type?: 'string' | 'number' | 'boolean';
1808
+ value?: string | number | boolean | Array<string | number | boolean>;
1809
+ }
1810
+ }
1811
+ }
1812
+ interface AnchorFilter {
1813
+ filter: AnchorFilter.UnionMember0 | AnchorFilter.UnionMember1 | AnchorFilter.UnionMember2;
1814
+ version: 1;
1815
+ }
1816
+ namespace AnchorFilter {
1817
+ interface UnionMember0 {
1818
+ children: Array<unknown>;
1819
+ kind: 'and' | 'or';
1820
+ }
1821
+ interface UnionMember1 {
1822
+ child: unknown;
1823
+ kind: 'not';
1824
+ }
1825
+ interface UnionMember2 {
1826
+ kind: 'predicate';
1827
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
1828
+ property: string;
1829
+ path?: Array<string>;
1830
+ type?: 'string' | 'number' | 'boolean';
1831
+ value?: string | number | boolean | Array<string | number | boolean>;
1832
+ }
1833
+ }
1834
+ interface Breakdown {
1835
+ atAnchorId: string;
1836
+ property: Breakdown.Property;
1837
+ limit?: number;
1838
+ }
1839
+ namespace Breakdown {
1840
+ interface Property {
1841
+ property: string;
1842
+ type: 'string' | 'number' | 'boolean';
1843
+ path?: Array<string>;
1844
+ }
1845
+ }
1846
+ interface EntryFilter {
1847
+ filter: EntryFilter.UnionMember0 | EntryFilter.UnionMember1 | EntryFilter.UnionMember2;
1848
+ version: 1;
1849
+ }
1850
+ namespace EntryFilter {
1851
+ interface UnionMember0 {
1852
+ children: Array<unknown>;
1853
+ kind: 'and' | 'or';
1854
+ }
1855
+ interface UnionMember1 {
1856
+ child: unknown;
1857
+ kind: 'not';
1858
+ }
1859
+ interface UnionMember2 {
1860
+ kind: 'predicate';
1861
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
1862
+ property: string;
1863
+ path?: Array<string>;
1864
+ type?: 'string' | 'number' | 'boolean';
1865
+ value?: string | number | boolean | Array<string | number | boolean>;
1866
+ }
1867
+ }
1868
+ interface Exclusion {
1869
+ id: string;
1870
+ fromAnchorId: string;
1871
+ matcher: Exclusion.UnionMember0 | Exclusion.UnionMember1;
1872
+ toAnchorId: string;
1873
+ }
1874
+ namespace Exclusion {
1875
+ interface UnionMember0 {
1876
+ eventName: string;
1877
+ kind: 'event';
1878
+ filter?: UnionMember0.Filter;
1879
+ }
1880
+ namespace UnionMember0 {
1881
+ interface Filter {
1882
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
1883
+ version: 1;
1884
+ }
1885
+ namespace Filter {
1886
+ interface UnionMember0 {
1887
+ children: Array<unknown>;
1888
+ kind: 'and' | 'or';
1889
+ }
1890
+ interface UnionMember1 {
1891
+ child: unknown;
1892
+ kind: 'not';
1893
+ }
1894
+ interface UnionMember2 {
1895
+ kind: 'predicate';
1896
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
1897
+ property: string;
1898
+ path?: Array<string>;
1899
+ type?: 'string' | 'number' | 'boolean';
1900
+ value?: string | number | boolean | Array<string | number | boolean>;
1901
+ }
1902
+ }
1903
+ }
1904
+ interface UnionMember1 {
1905
+ kind: 'page';
1906
+ filter?: UnionMember1.Filter;
1907
+ }
1908
+ namespace UnionMember1 {
1909
+ interface Filter {
1910
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
1911
+ version: 1;
1912
+ }
1913
+ namespace Filter {
1914
+ interface UnionMember0 {
1915
+ children: Array<unknown>;
1916
+ kind: 'and' | 'or';
1917
+ }
1918
+ interface UnionMember1 {
1919
+ child: unknown;
1920
+ kind: 'not';
1921
+ }
1922
+ interface UnionMember2 {
1923
+ kind: 'predicate';
1924
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
1925
+ property: string;
1926
+ path?: Array<string>;
1927
+ type?: 'string' | 'number' | 'boolean';
1928
+ value?: string | number | boolean | Array<string | number | boolean>;
1929
+ }
1930
+ }
1931
+ }
1932
+ }
1933
+ interface HoldConstant {
1934
+ property: string;
1935
+ type: 'string' | 'number' | 'boolean';
1936
+ path?: Array<string>;
1937
+ }
1938
+ interface NodeExpansion {
1939
+ matcher: NodeExpansion.UnionMember0 | NodeExpansion.UnionMember1;
1940
+ position: NodeExpansion.Position;
1941
+ property: NodeExpansion.Property;
1942
+ limit?: number;
1943
+ }
1944
+ namespace NodeExpansion {
1945
+ interface UnionMember0 {
1946
+ eventName: string;
1947
+ kind: 'event';
1948
+ filter?: UnionMember0.Filter;
1949
+ }
1950
+ namespace UnionMember0 {
1951
+ interface Filter {
1952
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
1953
+ version: 1;
1954
+ }
1955
+ namespace Filter {
1956
+ interface UnionMember0 {
1957
+ children: Array<unknown>;
1958
+ kind: 'and' | 'or';
1959
+ }
1960
+ interface UnionMember1 {
1961
+ child: unknown;
1962
+ kind: 'not';
1963
+ }
1964
+ interface UnionMember2 {
1965
+ kind: 'predicate';
1966
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
1967
+ property: string;
1968
+ path?: Array<string>;
1969
+ type?: 'string' | 'number' | 'boolean';
1970
+ value?: string | number | boolean | Array<string | number | boolean>;
1971
+ }
1972
+ }
1973
+ }
1974
+ interface UnionMember1 {
1975
+ kind: 'page';
1976
+ filter?: UnionMember1.Filter;
1977
+ }
1978
+ namespace UnionMember1 {
1979
+ interface Filter {
1980
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
1981
+ version: 1;
1982
+ }
1983
+ namespace Filter {
1984
+ interface UnionMember0 {
1985
+ children: Array<unknown>;
1986
+ kind: 'and' | 'or';
1987
+ }
1988
+ interface UnionMember1 {
1989
+ child: unknown;
1990
+ kind: 'not';
1991
+ }
1992
+ interface UnionMember2 {
1993
+ kind: 'predicate';
1994
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
1995
+ property: string;
1996
+ path?: Array<string>;
1997
+ type?: 'string' | 'number' | 'boolean';
1998
+ value?: string | number | boolean | Array<string | number | boolean>;
1999
+ }
2000
+ }
2001
+ }
2002
+ interface Position {
2003
+ anchorId: string;
2004
+ offset: number;
2005
+ side: 'anchor' | 'before' | 'after';
2006
+ }
2007
+ interface Property {
2008
+ property: string;
2009
+ type: 'string' | 'number' | 'boolean';
2010
+ path?: Array<string>;
2011
+ }
2012
+ }
2013
+ }
2014
+ /**
2015
+ * Complete UTC date range and comparisons for this Journey Flow.
2016
+ */
2017
+ interface ReportContext {
2018
+ dateRange: ReportContext.DateRange;
2019
+ comparisons?: Array<ReportContext.Comparison>;
2020
+ }
2021
+ namespace ReportContext {
2022
+ interface DateRange {
2023
+ from: string;
2024
+ timeZone: string;
2025
+ to: string;
2026
+ }
2027
+ interface Comparison {
2028
+ id: string;
2029
+ label: string;
2030
+ dateRange?: Comparison.DateRange;
2031
+ entryFilter?: Comparison.EntryFilter;
2032
+ sessionFilter?: Comparison.SessionFilter;
2033
+ }
2034
+ namespace Comparison {
2035
+ interface DateRange {
2036
+ from: string;
2037
+ timeZone: string;
2038
+ to: string;
2039
+ }
2040
+ interface EntryFilter {
2041
+ filter: EntryFilter.UnionMember0 | EntryFilter.UnionMember1 | EntryFilter.UnionMember2;
2042
+ version: 1;
2043
+ }
2044
+ namespace EntryFilter {
2045
+ interface UnionMember0 {
2046
+ children: Array<unknown>;
2047
+ kind: 'and' | 'or';
2048
+ }
2049
+ interface UnionMember1 {
2050
+ child: unknown;
2051
+ kind: 'not';
2052
+ }
2053
+ interface UnionMember2 {
2054
+ kind: 'predicate';
2055
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
2056
+ property: string;
2057
+ path?: Array<string>;
2058
+ type?: 'string' | 'number' | 'boolean';
2059
+ value?: string | number | boolean | Array<string | number | boolean>;
2060
+ }
2061
+ }
2062
+ interface SessionFilter {
2063
+ filter: SessionFilter.UnionMember0 | SessionFilter.UnionMember1 | SessionFilter.UnionMember2;
2064
+ version: 1;
2065
+ }
2066
+ namespace SessionFilter {
2067
+ interface UnionMember0 {
2068
+ children: Array<unknown>;
2069
+ kind: 'and' | 'or';
2070
+ }
2071
+ interface UnionMember1 {
2072
+ child: unknown;
2073
+ kind: 'not';
2074
+ }
2075
+ interface UnionMember2 {
2076
+ kind: 'predicate';
2077
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
2078
+ property: string;
2079
+ path?: Array<string>;
2080
+ type?: 'string' | 'number' | 'boolean';
2081
+ value?: string | number | boolean | Array<string | number | boolean>;
2082
+ }
2083
+ }
2084
+ }
2085
+ }
2086
+ /**
2087
+ * Complete visualization settings. Supplied view replaces the saved value on
2088
+ * PATCH.
2089
+ */
2090
+ interface View {
2091
+ showDropOff?: boolean;
2092
+ showElapsedTime?: boolean;
2093
+ topEventsPerPosition?: number;
2094
+ topPaths?: number;
2095
+ visualization?: 'sankey' | 'top-paths';
2096
+ }
2097
+ }
2098
+ interface Result {
2099
+ definitionHash: string;
2100
+ effectiveContext: Result.EffectiveContext;
2101
+ engine: string;
2102
+ execution: Result.Execution;
2103
+ limits: Result.Limits;
2104
+ observation: Result.Observation;
2105
+ samples: Result.Samples;
2106
+ semanticVersion: string;
2107
+ series: Array<Result.Series>;
2108
+ timing: Array<Result.Timing>;
2109
+ definitionRevision?: string | null;
2110
+ }
2111
+ namespace Result {
2112
+ interface EffectiveContext {
2113
+ comparisons: Array<EffectiveContext.Comparison>;
2114
+ contextWindowMs: number;
2115
+ conversionWindowMs: number;
2116
+ counting: 'UNIQUE' | 'TOTALS' | 'SESSIONS';
2117
+ dateRange: EffectiveContext.DateRange;
2118
+ excludeBots: boolean;
2119
+ reentry: 'FIRST' | 'BEST';
2120
+ sourceIds: Array<string>;
2121
+ }
2122
+ namespace EffectiveContext {
2123
+ interface Comparison {
2124
+ id: string;
2125
+ label: string;
2126
+ dateRange?: Comparison.DateRange | null;
2127
+ entryFilter?: Comparison.EntryFilter | null;
2128
+ sessionFilter?: Comparison.SessionFilter | null;
2129
+ }
2130
+ namespace Comparison {
2131
+ interface DateRange {
2132
+ from: string;
2133
+ timeZone: string;
2134
+ to: string;
2135
+ }
2136
+ interface EntryFilter {
2137
+ filter: EntryFilter.Filter;
2138
+ version: number;
2139
+ }
2140
+ namespace EntryFilter {
2141
+ interface Filter {
2142
+ kind: 'AND' | 'OR' | 'NOT' | 'PREDICATE';
2143
+ child?: Filter.Child | null;
2144
+ children?: Array<Filter.Child> | null;
2145
+ predicate?: Filter.Predicate | null;
2146
+ }
2147
+ namespace Filter {
2148
+ interface Child {
2149
+ kind: 'AND' | 'OR' | 'NOT' | 'PREDICATE';
2150
+ }
2151
+ interface Child {
2152
+ kind: 'AND' | 'OR' | 'NOT' | 'PREDICATE';
2153
+ }
2154
+ interface Predicate {
2155
+ operator: 'EQ' | 'NEQ' | 'GT' | 'GTE' | 'LT' | 'LTE' | 'CONTAINS' | 'NOT_CONTAINS' | 'CONTAINS_CI' | 'NOT_CONTAINS_CI' | 'STARTS_WITH' | 'ENDS_WITH' | 'IN' | 'NOT_IN' | 'EXISTS' | 'MISSING' | 'IS_NULL';
2156
+ property: string;
2157
+ path?: Array<string> | null;
2158
+ type?: 'STRING' | 'NUMBER' | 'BOOLEAN' | null;
2159
+ value?: Predicate.Value | null;
2160
+ }
2161
+ namespace Predicate {
2162
+ interface Value {
2163
+ booleanValue?: boolean | null;
2164
+ booleanValues?: Array<boolean> | null;
2165
+ numberValue?: number | null;
2166
+ numberValues?: Array<number> | null;
2167
+ stringValue?: string | null;
2168
+ stringValues?: Array<string> | null;
2169
+ }
2170
+ }
2171
+ }
2172
+ }
2173
+ interface SessionFilter {
2174
+ filter: SessionFilter.Filter;
2175
+ version: number;
2176
+ }
2177
+ namespace SessionFilter {
2178
+ interface Filter {
2179
+ kind: 'AND' | 'OR' | 'NOT' | 'PREDICATE';
2180
+ child?: Filter.Child | null;
2181
+ children?: Array<Filter.Child> | null;
2182
+ predicate?: Filter.Predicate | null;
2183
+ }
2184
+ namespace Filter {
2185
+ interface Child {
2186
+ kind: 'AND' | 'OR' | 'NOT' | 'PREDICATE';
2187
+ }
2188
+ interface Child {
2189
+ kind: 'AND' | 'OR' | 'NOT' | 'PREDICATE';
2190
+ }
2191
+ interface Predicate {
2192
+ operator: 'EQ' | 'NEQ' | 'GT' | 'GTE' | 'LT' | 'LTE' | 'CONTAINS' | 'NOT_CONTAINS' | 'CONTAINS_CI' | 'NOT_CONTAINS_CI' | 'STARTS_WITH' | 'ENDS_WITH' | 'IN' | 'NOT_IN' | 'EXISTS' | 'MISSING' | 'IS_NULL';
2193
+ property: string;
2194
+ path?: Array<string> | null;
2195
+ type?: 'STRING' | 'NUMBER' | 'BOOLEAN' | null;
2196
+ value?: Predicate.Value | null;
2197
+ }
2198
+ namespace Predicate {
2199
+ interface Value {
2200
+ booleanValue?: boolean | null;
2201
+ booleanValues?: Array<boolean> | null;
2202
+ numberValue?: number | null;
2203
+ numberValues?: Array<number> | null;
2204
+ stringValue?: string | null;
2205
+ stringValues?: Array<string> | null;
2206
+ }
2207
+ }
2208
+ }
2209
+ }
2210
+ }
2211
+ interface DateRange {
2212
+ from: string;
2213
+ timeZone: string;
2214
+ to: string;
2215
+ }
2216
+ }
2217
+ interface Execution {
2218
+ cacheHit: boolean;
2219
+ generatedAt: string;
2220
+ queryId: string;
2221
+ sampled: boolean;
2222
+ warnings: Array<Execution.Warning>;
2223
+ cacheAgeMs?: number | null;
2224
+ }
2225
+ namespace Execution {
2226
+ interface Warning {
2227
+ code: string;
2228
+ message: string;
2229
+ path?: Array<string> | null;
2230
+ }
2231
+ }
2232
+ interface Limits {
2233
+ omittedPathCount: string;
2234
+ omittedPathWeight: string;
2235
+ topEventsPerPosition: number;
2236
+ topPaths: number;
2237
+ executionLimitStatus?: string | null;
2238
+ omittedNodeCount?: string | null;
2239
+ omittedNodeWeight?: string | null;
2240
+ }
2241
+ interface Observation {
2242
+ entryFrom: string;
2243
+ entryTo: string;
2244
+ observationFrom: string;
2245
+ observationTo: string;
2246
+ status: 'COMPLETE' | 'INCOMPLETE' | 'UNKNOWN';
2247
+ complete?: boolean | null;
2248
+ retentionBoundary?: string | null;
2249
+ watermark?: string | null;
2250
+ }
2251
+ interface Samples {
2252
+ entries: Array<Samples.Entry>;
2253
+ limitPerOutcome: number;
2254
+ }
2255
+ namespace Samples {
2256
+ interface Entry {
2257
+ entryAt: string;
2258
+ lastAnchorAt: string;
2259
+ outcome: 'COMPLETED' | 'INCOMPLETE';
2260
+ reachedAnchors: number;
2261
+ sessionId: string | null;
2262
+ sessionStartDate: string | null;
2263
+ visitorId: string;
2264
+ }
2265
+ }
2266
+ interface Series {
2267
+ id: string;
2268
+ label: string;
2269
+ segments: Array<Series.Segment>;
2270
+ }
2271
+ namespace Series {
2272
+ interface Segment {
2273
+ id: string;
2274
+ columns: Array<Segment.Column>;
2275
+ completedCount: string;
2276
+ edges: Array<Segment.Edge>;
2277
+ entryCount: string;
2278
+ excludedCount: string;
2279
+ label: string;
2280
+ nodes: Array<Segment.Node>;
2281
+ omittedPathWeight: string;
2282
+ returnedPathWeight: string;
2283
+ topPaths: Array<Segment.TopPath>;
2284
+ totalPathCount: string;
2285
+ unfocusedEntryCount: string;
2286
+ observationIncompleteCount?: string | null;
2287
+ timedOutCount?: string | null;
2288
+ }
2289
+ namespace Segment {
2290
+ interface Column {
2291
+ kind: 'ANCHOR' | 'BEFORE' | 'GAP' | 'OMITTED' | 'AFTER' | 'OUTCOME';
2292
+ label: string;
2293
+ position: Column.Position;
2294
+ total: string;
2295
+ }
2296
+ namespace Column {
2297
+ interface Position {
2298
+ anchorId: string | null;
2299
+ column: number;
2300
+ key: string;
2301
+ offset: number | null;
2302
+ side: 'anchor' | 'before' | 'after' | null;
2303
+ }
2304
+ }
2305
+ interface Edge {
2306
+ id: string;
2307
+ count: string;
2308
+ denominator: string;
2309
+ shareOfPrevious: Edge.ShareOfPrevious;
2310
+ sourceNodeId: string;
2311
+ targetNodeId: string;
2312
+ shareOfNext?: Edge.ShareOfNext | null;
2313
+ }
2314
+ namespace Edge {
2315
+ interface ShareOfPrevious {
2316
+ denominator: string;
2317
+ numerator: string;
2318
+ value?: number | null;
2319
+ }
2320
+ interface ShareOfNext {
2321
+ denominator: string;
2322
+ numerator: string;
2323
+ value?: number | null;
2324
+ }
2325
+ }
2326
+ interface Node {
2327
+ id: string;
2328
+ anchorId: string | null;
2329
+ count: string;
2330
+ denominator: string;
2331
+ key: string;
2332
+ kind: 'ANCHOR' | 'EVENT' | 'PAGE' | 'TERMINAL' | 'OMITTED_STEPS' | 'OTHER_EVENTS';
2333
+ matcher: Node.UnionMember0 | null | Node.UnionMember1;
2334
+ position: Node.Position;
2335
+ shareOfEntries: Node.ShareOfEntries;
2336
+ value: string;
2337
+ shareOfNext?: Node.ShareOfNext | null;
2338
+ shareOfPrevious?: Node.ShareOfPrevious | null;
2339
+ source?: string | null;
2340
+ terminal?: 'COMPLETED' | 'INCOMPLETE' | null;
2341
+ }
2342
+ namespace Node {
2343
+ interface UnionMember0 {
2344
+ eventName: string;
2345
+ kind: 'event';
2346
+ filter?: UnionMember0.Filter;
2347
+ }
2348
+ namespace UnionMember0 {
2349
+ interface Filter {
2350
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
2351
+ version: 1;
2352
+ }
2353
+ namespace Filter {
2354
+ interface UnionMember0 {
2355
+ children: Array<UnionMember0.UnionMember0 | UnionMember0.UnionMember1 | UnionMember0.UnionMember2>;
2356
+ kind: 'and' | 'or';
2357
+ }
2358
+ namespace UnionMember0 {
2359
+ interface UnionMember0 {
2360
+ children: Array<unknown>;
2361
+ kind: 'and' | 'or';
2362
+ }
2363
+ interface UnionMember1 {
2364
+ child: unknown;
2365
+ kind: 'not';
2366
+ }
2367
+ interface UnionMember2 {
2368
+ kind: 'predicate';
2369
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
2370
+ property: string;
2371
+ path?: Array<string>;
2372
+ type?: 'string' | 'number' | 'boolean';
2373
+ value?: string | number | boolean | Array<string | number | boolean>;
2374
+ }
2375
+ }
2376
+ interface UnionMember1 {
2377
+ child: UnionMember1.UnionMember0 | UnionMember1.UnionMember1 | UnionMember1.UnionMember2;
2378
+ kind: 'not';
2379
+ }
2380
+ namespace UnionMember1 {
2381
+ interface UnionMember0 {
2382
+ children: Array<unknown>;
2383
+ kind: 'and' | 'or';
2384
+ }
2385
+ interface UnionMember1 {
2386
+ child: unknown;
2387
+ kind: 'not';
2388
+ }
2389
+ interface UnionMember2 {
2390
+ kind: 'predicate';
2391
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
2392
+ property: string;
2393
+ path?: Array<string>;
2394
+ type?: 'string' | 'number' | 'boolean';
2395
+ value?: string | number | boolean | Array<string | number | boolean>;
2396
+ }
2397
+ }
2398
+ interface UnionMember2 {
2399
+ kind: 'predicate';
2400
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
2401
+ property: string;
2402
+ path?: Array<string>;
2403
+ type?: 'string' | 'number' | 'boolean';
2404
+ value?: string | number | boolean | Array<string | number | boolean>;
2405
+ }
2406
+ }
2407
+ }
2408
+ interface UnionMember1 {
2409
+ kind: 'page';
2410
+ filter?: UnionMember1.Filter;
2411
+ }
2412
+ namespace UnionMember1 {
2413
+ interface Filter {
2414
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
2415
+ version: 1;
2416
+ }
2417
+ namespace Filter {
2418
+ interface UnionMember0 {
2419
+ children: Array<unknown>;
2420
+ kind: 'and' | 'or';
2421
+ }
2422
+ interface UnionMember1 {
2423
+ child: unknown;
2424
+ kind: 'not';
2425
+ }
2426
+ interface UnionMember2 {
2427
+ kind: 'predicate';
2428
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
2429
+ property: string;
2430
+ path?: Array<string>;
2431
+ type?: 'string' | 'number' | 'boolean';
2432
+ value?: string | number | boolean | Array<string | number | boolean>;
2433
+ }
2434
+ }
2435
+ }
2436
+ interface Position {
2437
+ anchorId: string | null;
2438
+ column: number;
2439
+ key: string;
2440
+ offset: number | null;
2441
+ side: 'anchor' | 'before' | 'after' | null;
2442
+ }
2443
+ interface ShareOfEntries {
2444
+ denominator: string;
2445
+ numerator: string;
2446
+ value?: number | null;
2447
+ }
2448
+ interface ShareOfNext {
2449
+ denominator: string;
2450
+ numerator: string;
2451
+ value?: number | null;
2452
+ }
2453
+ interface ShareOfPrevious {
2454
+ denominator: string;
2455
+ numerator: string;
2456
+ value?: number | null;
2457
+ }
2458
+ }
2459
+ interface TopPath {
2460
+ id: string;
2461
+ completedCount: string;
2462
+ denominator: string;
2463
+ incompleteCount: string;
2464
+ shareOfEntries: TopPath.ShareOfEntries;
2465
+ steps: Array<TopPath.Step>;
2466
+ weight: string;
2467
+ }
2468
+ namespace TopPath {
2469
+ interface ShareOfEntries {
2470
+ denominator: string;
2471
+ numerator: string;
2472
+ value?: number | null;
2473
+ }
2474
+ interface Step {
2475
+ anchorId: string | null;
2476
+ kind: 'ANCHOR' | 'EVENT' | 'PAGE' | 'TERMINAL' | 'OMITTED_STEPS' | 'OTHER_EVENTS';
2477
+ matcher: Step.UnionMember0 | null | Step.UnionMember1;
2478
+ position: Step.Position;
2479
+ value: string;
2480
+ source?: string | null;
2481
+ terminal?: 'COMPLETED' | 'INCOMPLETE' | null;
2482
+ }
2483
+ namespace Step {
2484
+ interface UnionMember0 {
2485
+ eventName: string;
2486
+ kind: 'event';
2487
+ filter?: UnionMember0.Filter;
2488
+ }
2489
+ namespace UnionMember0 {
2490
+ interface Filter {
2491
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
2492
+ version: 1;
2493
+ }
2494
+ namespace Filter {
2495
+ interface UnionMember0 {
2496
+ children: Array<UnionMember0.UnionMember0 | UnionMember0.UnionMember1 | UnionMember0.UnionMember2>;
2497
+ kind: 'and' | 'or';
2498
+ }
2499
+ namespace UnionMember0 {
2500
+ interface UnionMember0 {
2501
+ children: Array<unknown>;
2502
+ kind: 'and' | 'or';
2503
+ }
2504
+ interface UnionMember1 {
2505
+ child: unknown;
2506
+ kind: 'not';
2507
+ }
2508
+ interface UnionMember2 {
2509
+ kind: 'predicate';
2510
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
2511
+ property: string;
2512
+ path?: Array<string>;
2513
+ type?: 'string' | 'number' | 'boolean';
2514
+ value?: string | number | boolean | Array<string | number | boolean>;
2515
+ }
2516
+ }
2517
+ interface UnionMember1 {
2518
+ child: UnionMember1.UnionMember0 | UnionMember1.UnionMember1 | UnionMember1.UnionMember2;
2519
+ kind: 'not';
2520
+ }
2521
+ namespace UnionMember1 {
2522
+ interface UnionMember0 {
2523
+ children: Array<unknown>;
2524
+ kind: 'and' | 'or';
2525
+ }
2526
+ interface UnionMember1 {
2527
+ child: unknown;
2528
+ kind: 'not';
2529
+ }
2530
+ interface UnionMember2 {
2531
+ kind: 'predicate';
2532
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
2533
+ property: string;
2534
+ path?: Array<string>;
2535
+ type?: 'string' | 'number' | 'boolean';
2536
+ value?: string | number | boolean | Array<string | number | boolean>;
2537
+ }
2538
+ }
2539
+ interface UnionMember2 {
2540
+ kind: 'predicate';
2541
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
2542
+ property: string;
2543
+ path?: Array<string>;
2544
+ type?: 'string' | 'number' | 'boolean';
2545
+ value?: string | number | boolean | Array<string | number | boolean>;
2546
+ }
2547
+ }
2548
+ }
2549
+ interface UnionMember1 {
2550
+ kind: 'page';
2551
+ filter?: UnionMember1.Filter;
2552
+ }
2553
+ namespace UnionMember1 {
2554
+ interface Filter {
2555
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
2556
+ version: 1;
2557
+ }
2558
+ namespace Filter {
2559
+ interface UnionMember0 {
2560
+ children: Array<unknown>;
2561
+ kind: 'and' | 'or';
2562
+ }
2563
+ interface UnionMember1 {
2564
+ child: unknown;
2565
+ kind: 'not';
2566
+ }
2567
+ interface UnionMember2 {
2568
+ kind: 'predicate';
2569
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
2570
+ property: string;
2571
+ path?: Array<string>;
2572
+ type?: 'string' | 'number' | 'boolean';
2573
+ value?: string | number | boolean | Array<string | number | boolean>;
2574
+ }
2575
+ }
2576
+ }
2577
+ interface Position {
2578
+ anchorId: string | null;
2579
+ column: number;
2580
+ key: string;
2581
+ offset: number | null;
2582
+ side: 'anchor' | 'before' | 'after' | null;
2583
+ }
2584
+ }
2585
+ }
2586
+ }
2587
+ }
2588
+ interface Timing {
2589
+ count: string;
2590
+ direction: 'FORWARD' | 'BACKWARD';
2591
+ fromPosition: string;
2592
+ kind: 'EDGE' | 'ANCHOR' | 'OVERALL';
2593
+ sourceNodeId: string;
2594
+ targetNodeId: string;
2595
+ toPosition: string;
2596
+ averageMs?: number | null;
2597
+ maximumMs?: number | null;
2598
+ medianMs?: number | null;
2599
+ minimumMs?: number | null;
2600
+ }
2601
+ }
2602
+ }
2603
+ }
2604
+ export type DashboardResultsResponse = DashboardResultsResponse.UnionMember0 | DashboardResultsResponse.UnionMember1 | DashboardResultsResponse.UnionMember2;
2605
+ export declare namespace DashboardResultsResponse {
2606
+ interface UnionMember0 {
2607
+ computedAt: string;
2608
+ kind: 'insight';
2609
+ report: UnionMember0.Report;
2610
+ result: UnionMember0.Result;
2611
+ /**
2612
+ * Tile identifier from get_dashboard, or a new unique tile identifier for a report
2613
+ * preview.
2614
+ */
2615
+ tileId: string;
2616
+ }
2617
+ namespace UnionMember0 {
2618
+ interface Report {
2619
+ id: string;
2620
+ createdAt: string;
2621
+ createdByUserId: string;
2622
+ /**
2623
+ * Version 1 Insight definition: one to ten metrics and a day, week, or month
2624
+ * interval. Sum and average require a numeric event property. Filters use the
2625
+ * analytics property catalog.
2626
+ */
2627
+ definition: Report.Definition;
2628
+ /**
2629
+ * Display name for the saved Insight.
2630
+ */
2631
+ name: string;
2632
+ /**
2633
+ * UTC date range using either a preset or inclusive from/to calendar dates, up to
2634
+ * 366 days.
2635
+ */
2636
+ reportContext: Report.ReportContext;
2637
+ revision: string;
2638
+ updatedAt: string;
2639
+ updatedByUserId: string;
2640
+ /**
2641
+ * Complete chart settings. Replaces the saved view when supplied on PATCH; omitted
2642
+ * view fields reset to their defaults.
2643
+ */
2644
+ view: Report.View;
2645
+ /**
2646
+ * Optional description; null clears it.
2647
+ */
2648
+ description?: string | null;
2649
+ }
2650
+ namespace Report {
2651
+ /**
2652
+ * Version 1 Insight definition: one to ten metrics and a day, week, or month
2653
+ * interval. Sum and average require a numeric event property. Filters use the
2654
+ * analytics property catalog.
2655
+ */
2656
+ interface Definition {
2657
+ interval: 'day' | 'week' | 'month';
2658
+ kind: 'insight';
2659
+ metrics: Array<Definition.Metric>;
2660
+ version: 1;
2661
+ filter?: Definition.Filter;
2662
+ }
2663
+ namespace Definition {
2664
+ interface Metric {
2665
+ id: string;
2666
+ aggregation: 'event_count' | 'unique_visitors' | 'sum' | 'average';
2667
+ eventNames: Array<string>;
2668
+ name: string;
2669
+ filter?: Metric.Filter;
2670
+ property?: Metric.Property;
2671
+ }
2672
+ namespace Metric {
2673
+ interface Filter {
2674
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
2675
+ version: 1;
2676
+ }
2677
+ namespace Filter {
2678
+ interface UnionMember0 {
2679
+ children: Array<unknown>;
2680
+ kind: 'and' | 'or';
2681
+ }
2682
+ interface UnionMember1 {
2683
+ child: unknown;
2684
+ kind: 'not';
2685
+ }
2686
+ interface UnionMember2 {
2687
+ kind: 'predicate';
2688
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
2689
+ property: string;
2690
+ path?: Array<string>;
2691
+ type?: 'string' | 'number' | 'boolean';
2692
+ value?: string | number | boolean | Array<string | number | boolean>;
2693
+ }
2694
+ }
2695
+ interface Property {
2696
+ path: Array<string>;
2697
+ property: 'event.properties';
2698
+ type?: 'number';
2699
+ }
2700
+ }
2701
+ interface Filter {
2702
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
2703
+ version: 1;
2704
+ }
2705
+ namespace Filter {
2706
+ interface UnionMember0 {
2707
+ children: Array<unknown>;
2708
+ kind: 'and' | 'or';
2709
+ }
2710
+ interface UnionMember1 {
2711
+ child: unknown;
2712
+ kind: 'not';
2713
+ }
2714
+ interface UnionMember2 {
2715
+ kind: 'predicate';
2716
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
2717
+ property: string;
2718
+ path?: Array<string>;
2719
+ type?: 'string' | 'number' | 'boolean';
2720
+ value?: string | number | boolean | Array<string | number | boolean>;
2721
+ }
2722
+ }
2723
+ }
2724
+ /**
2725
+ * UTC date range using either a preset or inclusive from/to calendar dates, up to
2726
+ * 366 days.
2727
+ */
2728
+ interface ReportContext {
2729
+ dateRange: ReportContext.UnionMember0 | ReportContext.UnionMember1;
2730
+ }
2731
+ namespace ReportContext {
2732
+ interface UnionMember0 {
2733
+ from: string;
2734
+ to: string;
2735
+ timeZone?: 'UTC';
2736
+ }
2737
+ interface UnionMember1 {
2738
+ preset: 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days' | 'last_12_months' | 'week_to_date' | 'month_to_date' | 'year_to_date';
2739
+ timeZone?: 'UTC';
2740
+ }
2741
+ }
2742
+ /**
2743
+ * Complete chart settings. Replaces the saved view when supplied on PATCH; omitted
2744
+ * view fields reset to their defaults.
2745
+ */
2746
+ interface View {
2747
+ cumulative?: boolean;
2748
+ series?: Array<View.Series>;
2749
+ smoothing?: 'none' | 'rolling_average';
2750
+ smoothingWindow?: number;
2751
+ stacked?: boolean;
2752
+ tableSort?: View.TableSort;
2753
+ visualization?: 'line' | 'column' | 'bar' | 'pie' | 'table' | 'metric';
2754
+ yAxisScale?: 'linear' | 'log';
2755
+ }
2756
+ namespace View {
2757
+ interface Series {
2758
+ metricId: string;
2759
+ color?: string;
2760
+ hidden?: boolean;
2761
+ }
2762
+ interface TableSort {
2763
+ column: 'label' | 'range_value' | 'average';
2764
+ direction: 'asc' | 'desc';
2765
+ }
2766
+ }
2767
+ }
2768
+ interface Result {
2769
+ engine: 'clickhouse';
2770
+ /**
2771
+ * Saved report identifier; null for previews.
2772
+ */
2773
+ reportId: string | null;
2774
+ /**
2775
+ * Saved report revision; null for previews.
2776
+ */
2777
+ revision: string | null;
2778
+ scope: Result.Scope;
2779
+ semanticVersion: 1;
2780
+ series: Array<Result.Series>;
2781
+ sourceLimitations: Array<string>;
2782
+ sourcePolicy: string;
2783
+ sourceRevision?: string | null;
2784
+ }
2785
+ namespace Result {
2786
+ interface Scope {
2787
+ cumulative: boolean;
2788
+ executedAt: string;
2789
+ from: string;
2790
+ interval: 'day' | 'week' | 'month';
2791
+ sourceCompleteness: 'unknown';
2792
+ timeZone: 'UTC';
2793
+ to: string;
2794
+ comparison?: Scope.Comparison | null;
2795
+ }
2796
+ namespace Scope {
2797
+ interface Comparison {
2798
+ from: string;
2799
+ kind: 'previous_period' | 'previous_year' | 'custom';
2800
+ to: string;
2801
+ }
2802
+ }
2803
+ interface Series {
2804
+ aggregation: 'event_count' | 'unique_visitors' | 'sum' | 'average';
2805
+ breakdownValues: Array<Series.BreakdownValue>;
2806
+ comparison: 'previous_period' | 'previous_year' | 'custom' | null;
2807
+ key: string;
2808
+ label: string;
2809
+ metricId: string;
2810
+ points: Array<Series.Point>;
2811
+ rangeValue: number | null;
2812
+ }
2813
+ namespace Series {
2814
+ interface BreakdownValue {
2815
+ property: string;
2816
+ value: string | null;
2817
+ }
2818
+ interface Point {
2819
+ bucketEnd: string;
2820
+ bucketStart: string;
2821
+ cumulative: number | null;
2822
+ isPartial: boolean;
2823
+ raw: number | null;
2824
+ smoothed: number | null;
2825
+ }
2826
+ }
2827
+ }
2828
+ }
2829
+ interface UnionMember1 {
2830
+ computedAt: string;
2831
+ kind: 'funnel';
2832
+ /**
2833
+ * Funnel configuration details.
2834
+ */
2835
+ report: UnionMember1.Report;
2836
+ result: UnionMember1.Result;
2837
+ /**
2838
+ * Tile identifier from get_dashboard, or a new unique tile identifier for a report
2839
+ * preview.
2840
+ */
2841
+ tileId: string;
2842
+ }
2843
+ namespace UnionMember1 {
2844
+ /**
2845
+ * Funnel configuration details.
2846
+ */
2847
+ interface Report {
2848
+ createdAt: string;
2849
+ funnelId: string;
2850
+ name: string;
2851
+ /**
2852
+ * Versioned funnel definition with typed steps and filters.
2853
+ */
2854
+ queryDefinition: Report.QueryDefinition;
2855
+ status: 'READY' | 'PROCESSING';
2856
+ updatedAt: string;
2857
+ /**
2858
+ * Optional description; null clears it.
2859
+ */
2860
+ description?: string | null;
2861
+ reportDateRange?: Report.ReportDateRange | null;
2862
+ watched?: boolean | null;
2863
+ }
2864
+ namespace Report {
2865
+ /**
2866
+ * Versioned funnel definition with typed steps and filters.
2867
+ */
2868
+ interface QueryDefinition {
2869
+ counting: 'unique' | 'events' | 'sessions';
2870
+ identity: 'session' | 'visitor';
2871
+ kind: 'funnel';
2872
+ order: 'ordered' | 'any';
2873
+ reentry: 'first' | 'best';
2874
+ steps: Array<QueryDefinition.Step>;
2875
+ version: 1;
2876
+ windowMs: number;
2877
+ entryFilter?: QueryDefinition.EntryFilter;
2878
+ filter?: QueryDefinition.Filter;
2879
+ }
2880
+ namespace QueryDefinition {
2881
+ interface Step {
2882
+ id: string;
2883
+ eventName: string;
2884
+ name: string;
2885
+ filter?: Step.Filter;
2886
+ }
2887
+ namespace Step {
2888
+ interface Filter {
2889
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
2890
+ version: 1;
2891
+ }
2892
+ namespace Filter {
2893
+ interface UnionMember0 {
2894
+ children: Array<unknown>;
2895
+ kind: 'and' | 'or';
2896
+ }
2897
+ interface UnionMember1 {
2898
+ child: unknown;
2899
+ kind: 'not';
2900
+ }
2901
+ interface UnionMember2 {
2902
+ kind: 'predicate';
2903
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
2904
+ property: string;
2905
+ path?: Array<string>;
2906
+ type?: 'string' | 'number' | 'boolean';
2907
+ value?: string | number | boolean | Array<string | number | boolean>;
2908
+ }
2909
+ }
2910
+ }
2911
+ interface EntryFilter {
2912
+ filter: EntryFilter.UnionMember0 | EntryFilter.UnionMember1 | EntryFilter.UnionMember2;
2913
+ version: 1;
2914
+ }
2915
+ namespace EntryFilter {
2916
+ interface UnionMember0 {
2917
+ children: Array<unknown>;
2918
+ kind: 'and' | 'or';
2919
+ }
2920
+ interface UnionMember1 {
2921
+ child: unknown;
2922
+ kind: 'not';
2923
+ }
2924
+ interface UnionMember2 {
2925
+ kind: 'predicate';
2926
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
2927
+ property: string;
2928
+ path?: Array<string>;
2929
+ type?: 'string' | 'number' | 'boolean';
2930
+ value?: string | number | boolean | Array<string | number | boolean>;
2931
+ }
2932
+ }
2933
+ interface Filter {
2934
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
2935
+ version: 1;
2936
+ }
2937
+ namespace Filter {
2938
+ interface UnionMember0 {
2939
+ children: Array<unknown>;
2940
+ kind: 'and' | 'or';
2941
+ }
2942
+ interface UnionMember1 {
2943
+ child: unknown;
2944
+ kind: 'not';
2945
+ }
2946
+ interface UnionMember2 {
2947
+ kind: 'predicate';
2948
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
2949
+ property: string;
2950
+ path?: Array<string>;
2951
+ type?: 'string' | 'number' | 'boolean';
2952
+ value?: string | number | boolean | Array<string | number | boolean>;
2953
+ }
2954
+ }
2955
+ }
2956
+ interface ReportDateRange {
2957
+ from: string;
2958
+ to: string;
2959
+ }
2960
+ }
2961
+ interface Result {
2962
+ definitionUpdatedAt: string;
2963
+ engine: string;
2964
+ /**
2965
+ * Ratio of last-step to first-step volume as a percentage. Event-counting ratios
2966
+ * may exceed 100%.
2967
+ */
2968
+ overallConversionRate: number;
2969
+ scope: Result.Scope;
2970
+ semanticVersion: 1;
2971
+ /**
2972
+ * Data quality limitations affecting these results. Source completeness and
2973
+ * conflicting event corrections may be unverified.
2974
+ */
2975
+ sourceLimitations: Array<'equal-load-conflicts-unverified' | 'cross-key-corrections-unverified' | 'source-completeness-unverified'>;
2976
+ sourcePolicy: 'events-v3-physical-key';
2977
+ /**
2978
+ * Per-step funnel analytics, ordered by step number.
2979
+ */
2980
+ steps: Array<Result.Step>;
2981
+ /**
2982
+ * First-step volume using the saved counting method: unique people, sessions, or
2983
+ * events.
2984
+ */
2985
+ totalVisitors: number;
2986
+ /**
2987
+ * Average time from first step to last step in seconds. Null when no completions.
2988
+ */
2989
+ overallAvgTimeToConversion?: number | null;
2990
+ sourceRevision?: string | null;
2991
+ }
2992
+ namespace Result {
2993
+ interface Scope {
2994
+ entryFrom: string;
2995
+ entryTo: string;
2996
+ observationFrom: string;
2997
+ observationTo: string;
2998
+ timezone: 'UTC';
2999
+ windowMs: number;
3000
+ observationComplete?: boolean | null;
3001
+ settledEntryTo?: string | null;
3002
+ watermark?: string | null;
3003
+ }
3004
+ interface Step {
3005
+ conversionCount: number;
3006
+ /**
3007
+ * Step ratio as a percentage. Event-counting ratios may exceed 100%.
3008
+ */
3009
+ conversionRate: number;
3010
+ /**
3011
+ * Drop-off percentage for participant counting; zero when the previous step volume
3012
+ * is zero. Not a participant loss measure for event counting.
3013
+ */
3014
+ dropOffRate: number;
3015
+ dropOffSessionIds: Array<string>;
3016
+ dropOffVisitorIds: Array<string>;
3017
+ /**
3018
+ * Ratio to first-step volume as a percentage. Event-counting ratios may exceed
3019
+ * 100%.
3020
+ */
3021
+ overallConversionRate: number;
3022
+ sessionIds: Array<string>;
3023
+ stepNumber: number;
3024
+ /**
3025
+ * Step volume using the saved counting method: unique people, sessions, or events.
3026
+ */
3027
+ visitorCount: number;
3028
+ visitorIds: Array<string>;
3029
+ /**
3030
+ * Average incoming hop time from the previous step to this step, in seconds.
3031
+ */
3032
+ avgTimeToNextStep?: number | null;
3033
+ }
3034
+ }
3035
+ }
3036
+ interface UnionMember2 {
3037
+ computedAt: string;
3038
+ kind: 'journey';
3039
+ report: UnionMember2.Report;
3040
+ result: UnionMember2.Result;
3041
+ /**
3042
+ * Tile identifier from get_dashboard, or a new unique tile identifier for a report
3043
+ * preview.
3044
+ */
3045
+ tileId: string;
3046
+ }
3047
+ namespace UnionMember2 {
3048
+ interface Report {
3049
+ id: string;
3050
+ createdAt: string;
3051
+ createdByUserId: string;
3052
+ /**
3053
+ * Version 1 Journey Flow definition with anchors, event or page matchers,
3054
+ * counting, scope, and exploration settings. Selecting specific sourceIds also
3055
+ * requires source:view permission.
3056
+ */
3057
+ definition: Report.Definition;
3058
+ name: string;
3059
+ /**
3060
+ * Complete UTC date range and comparisons for this Journey Flow.
3061
+ */
3062
+ reportContext: Report.ReportContext;
3063
+ revision: string;
3064
+ updatedAt: string;
3065
+ updatedByUserId: string;
3066
+ /**
3067
+ * Complete visualization settings. Supplied view replaces the saved value on
3068
+ * PATCH.
3069
+ */
3070
+ view: Report.View;
3071
+ /**
3072
+ * Optional description; null clears it.
3073
+ */
3074
+ description?: string | null;
3075
+ }
3076
+ namespace Report {
3077
+ /**
3078
+ * Version 1 Journey Flow definition with anchors, event or page matchers,
3079
+ * counting, scope, and exploration settings. Selecting specific sourceIds also
3080
+ * requires source:view permission.
3081
+ */
3082
+ interface Definition {
3083
+ anchors: Array<Definition.Anchor>;
3084
+ exploration: Definition.Exploration;
3085
+ kind: 'journey-flow';
3086
+ scope: Definition.Scope;
3087
+ version: 1;
3088
+ anchorFilter?: Definition.AnchorFilter;
3089
+ breakdown?: Definition.Breakdown;
3090
+ contextWindowMs?: number;
3091
+ conversionWindowMs?: number;
3092
+ counting?: 'unique' | 'totals' | 'sessions';
3093
+ entryFilter?: Definition.EntryFilter;
3094
+ exclusions?: Array<Definition.Exclusion>;
3095
+ holdConstant?: Array<Definition.HoldConstant>;
3096
+ nodeExpansions?: Array<Definition.NodeExpansion>;
3097
+ reentry?: 'first' | 'best';
3098
+ }
3099
+ namespace Definition {
3100
+ interface Anchor {
3101
+ id: string;
3102
+ alternatives: Array<Anchor.UnionMember0 | Anchor.UnionMember1>;
3103
+ filter?: Anchor.Filter;
3104
+ label?: string;
3105
+ }
3106
+ namespace Anchor {
3107
+ interface UnionMember0 {
3108
+ eventName: string;
3109
+ kind: 'event';
3110
+ filter?: UnionMember0.Filter;
3111
+ }
3112
+ namespace UnionMember0 {
3113
+ interface Filter {
3114
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
3115
+ version: 1;
3116
+ }
3117
+ namespace Filter {
3118
+ interface UnionMember0 {
3119
+ children: Array<unknown>;
3120
+ kind: 'and' | 'or';
3121
+ }
3122
+ interface UnionMember1 {
3123
+ child: unknown;
3124
+ kind: 'not';
3125
+ }
3126
+ interface UnionMember2 {
3127
+ kind: 'predicate';
3128
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
3129
+ property: string;
3130
+ path?: Array<string>;
3131
+ type?: 'string' | 'number' | 'boolean';
3132
+ value?: string | number | boolean | Array<string | number | boolean>;
3133
+ }
3134
+ }
3135
+ }
3136
+ interface UnionMember1 {
3137
+ kind: 'page';
3138
+ filter?: UnionMember1.Filter;
3139
+ }
3140
+ namespace UnionMember1 {
3141
+ interface Filter {
3142
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
3143
+ version: 1;
3144
+ }
3145
+ namespace Filter {
3146
+ interface UnionMember0 {
3147
+ children: Array<unknown>;
3148
+ kind: 'and' | 'or';
3149
+ }
3150
+ interface UnionMember1 {
3151
+ child: unknown;
3152
+ kind: 'not';
3153
+ }
3154
+ interface UnionMember2 {
3155
+ kind: 'predicate';
3156
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
3157
+ property: string;
3158
+ path?: Array<string>;
3159
+ type?: 'string' | 'number' | 'boolean';
3160
+ value?: string | number | boolean | Array<string | number | boolean>;
3161
+ }
3162
+ }
3163
+ }
3164
+ interface Filter {
3165
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
3166
+ version: 1;
3167
+ }
3168
+ namespace Filter {
3169
+ interface UnionMember0 {
3170
+ children: Array<unknown>;
3171
+ kind: 'and' | 'or';
3172
+ }
3173
+ interface UnionMember1 {
3174
+ child: unknown;
3175
+ kind: 'not';
3176
+ }
3177
+ interface UnionMember2 {
3178
+ kind: 'predicate';
3179
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
3180
+ property: string;
3181
+ path?: Array<string>;
3182
+ type?: 'string' | 'number' | 'boolean';
3183
+ value?: string | number | boolean | Array<string | number | boolean>;
3184
+ }
3185
+ }
3186
+ }
3187
+ interface Exploration {
3188
+ after?: number;
3189
+ before?: number;
3190
+ between?: Array<Exploration.Between>;
3191
+ collapseRepeats?: boolean;
3192
+ focus?: Array<Exploration.FocusUnionMember0 | Exploration.Outcome>;
3193
+ hiddenEvents?: Array<Exploration.HiddenEventsUnionMember0 | Exploration.UnionMember1>;
3194
+ pageKey?: 'path' | 'url';
3195
+ pathFilter?: Exploration.PathFilter;
3196
+ stepKinds?: Array<'event' | 'page'>;
3197
+ }
3198
+ namespace Exploration {
3199
+ interface Between {
3200
+ afterFrom: number;
3201
+ beforeTo: number;
3202
+ fromAnchorId: string;
3203
+ toAnchorId: string;
3204
+ }
3205
+ interface FocusUnionMember0 {
3206
+ position: FocusUnionMember0.Position;
3207
+ matcher?: FocusUnionMember0.UnionMember0 | FocusUnionMember0.UnionMember1;
3208
+ }
3209
+ namespace FocusUnionMember0 {
3210
+ interface Position {
3211
+ anchorId: string;
3212
+ offset: number;
3213
+ side: 'anchor' | 'before' | 'after';
3214
+ }
3215
+ interface UnionMember0 {
3216
+ eventName: string;
3217
+ kind: 'event';
3218
+ filter?: UnionMember0.Filter;
3219
+ }
3220
+ namespace UnionMember0 {
3221
+ interface Filter {
3222
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
3223
+ version: 1;
3224
+ }
3225
+ namespace Filter {
3226
+ interface UnionMember0 {
3227
+ children: Array<unknown>;
3228
+ kind: 'and' | 'or';
3229
+ }
3230
+ interface UnionMember1 {
3231
+ child: unknown;
3232
+ kind: 'not';
3233
+ }
3234
+ interface UnionMember2 {
3235
+ kind: 'predicate';
3236
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
3237
+ property: string;
3238
+ path?: Array<string>;
3239
+ type?: 'string' | 'number' | 'boolean';
3240
+ value?: string | number | boolean | Array<string | number | boolean>;
3241
+ }
3242
+ }
3243
+ }
3244
+ interface UnionMember1 {
3245
+ kind: 'page';
3246
+ filter?: UnionMember1.Filter;
3247
+ }
3248
+ namespace UnionMember1 {
3249
+ interface Filter {
3250
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
3251
+ version: 1;
3252
+ }
3253
+ namespace Filter {
3254
+ interface UnionMember0 {
3255
+ children: Array<unknown>;
3256
+ kind: 'and' | 'or';
3257
+ }
3258
+ interface UnionMember1 {
3259
+ child: unknown;
3260
+ kind: 'not';
3261
+ }
3262
+ interface UnionMember2 {
3263
+ kind: 'predicate';
3264
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
3265
+ property: string;
3266
+ path?: Array<string>;
3267
+ type?: 'string' | 'number' | 'boolean';
3268
+ value?: string | number | boolean | Array<string | number | boolean>;
3269
+ }
3270
+ }
3271
+ }
3272
+ }
3273
+ interface Outcome {
3274
+ outcome: 'completed' | 'incomplete';
3275
+ }
3276
+ interface HiddenEventsUnionMember0 {
3277
+ eventName: string;
3278
+ kind: 'event';
3279
+ filter?: HiddenEventsUnionMember0.Filter;
3280
+ }
3281
+ namespace HiddenEventsUnionMember0 {
3282
+ interface Filter {
3283
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
3284
+ version: 1;
3285
+ }
3286
+ namespace Filter {
3287
+ interface UnionMember0 {
3288
+ children: Array<unknown>;
3289
+ kind: 'and' | 'or';
3290
+ }
3291
+ interface UnionMember1 {
3292
+ child: unknown;
3293
+ kind: 'not';
3294
+ }
3295
+ interface UnionMember2 {
3296
+ kind: 'predicate';
3297
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
3298
+ property: string;
3299
+ path?: Array<string>;
3300
+ type?: 'string' | 'number' | 'boolean';
3301
+ value?: string | number | boolean | Array<string | number | boolean>;
3302
+ }
3303
+ }
3304
+ }
3305
+ interface UnionMember1 {
3306
+ kind: 'page';
3307
+ filter?: UnionMember1.Filter;
3308
+ }
3309
+ namespace UnionMember1 {
3310
+ interface Filter {
3311
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
3312
+ version: 1;
3313
+ }
3314
+ namespace Filter {
3315
+ interface UnionMember0 {
3316
+ children: Array<unknown>;
3317
+ kind: 'and' | 'or';
3318
+ }
3319
+ interface UnionMember1 {
3320
+ child: unknown;
3321
+ kind: 'not';
3322
+ }
3323
+ interface UnionMember2 {
3324
+ kind: 'predicate';
3325
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
3326
+ property: string;
3327
+ path?: Array<string>;
3328
+ type?: 'string' | 'number' | 'boolean';
3329
+ value?: string | number | boolean | Array<string | number | boolean>;
3330
+ }
3331
+ }
3332
+ }
3333
+ interface PathFilter {
3334
+ filter: PathFilter.UnionMember0 | PathFilter.UnionMember1 | PathFilter.UnionMember2;
3335
+ version: 1;
3336
+ }
3337
+ namespace PathFilter {
3338
+ interface UnionMember0 {
3339
+ children: Array<unknown>;
3340
+ kind: 'and' | 'or';
3341
+ }
3342
+ interface UnionMember1 {
3343
+ child: unknown;
3344
+ kind: 'not';
3345
+ }
3346
+ interface UnionMember2 {
3347
+ kind: 'predicate';
3348
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
3349
+ property: string;
3350
+ path?: Array<string>;
3351
+ type?: 'string' | 'number' | 'boolean';
3352
+ value?: string | number | boolean | Array<string | number | boolean>;
3353
+ }
3354
+ }
3355
+ }
3356
+ interface Scope {
3357
+ excludeBots: boolean;
3358
+ sourceIds: Array<string>;
3359
+ sessionFilter?: Scope.SessionFilter;
3360
+ }
3361
+ namespace Scope {
3362
+ interface SessionFilter {
3363
+ filter: SessionFilter.UnionMember0 | SessionFilter.UnionMember1 | SessionFilter.UnionMember2;
3364
+ version: 1;
3365
+ }
3366
+ namespace SessionFilter {
3367
+ interface UnionMember0 {
3368
+ children: Array<unknown>;
3369
+ kind: 'and' | 'or';
3370
+ }
3371
+ interface UnionMember1 {
3372
+ child: unknown;
3373
+ kind: 'not';
3374
+ }
3375
+ interface UnionMember2 {
3376
+ kind: 'predicate';
3377
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
3378
+ property: string;
3379
+ path?: Array<string>;
3380
+ type?: 'string' | 'number' | 'boolean';
3381
+ value?: string | number | boolean | Array<string | number | boolean>;
3382
+ }
3383
+ }
3384
+ }
3385
+ interface AnchorFilter {
3386
+ filter: AnchorFilter.UnionMember0 | AnchorFilter.UnionMember1 | AnchorFilter.UnionMember2;
3387
+ version: 1;
3388
+ }
3389
+ namespace AnchorFilter {
3390
+ interface UnionMember0 {
3391
+ children: Array<unknown>;
3392
+ kind: 'and' | 'or';
3393
+ }
3394
+ interface UnionMember1 {
3395
+ child: unknown;
3396
+ kind: 'not';
3397
+ }
3398
+ interface UnionMember2 {
3399
+ kind: 'predicate';
3400
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
3401
+ property: string;
3402
+ path?: Array<string>;
3403
+ type?: 'string' | 'number' | 'boolean';
3404
+ value?: string | number | boolean | Array<string | number | boolean>;
3405
+ }
3406
+ }
3407
+ interface Breakdown {
3408
+ atAnchorId: string;
3409
+ property: Breakdown.Property;
3410
+ limit?: number;
3411
+ }
3412
+ namespace Breakdown {
3413
+ interface Property {
3414
+ property: string;
3415
+ type: 'string' | 'number' | 'boolean';
3416
+ path?: Array<string>;
3417
+ }
3418
+ }
3419
+ interface EntryFilter {
3420
+ filter: EntryFilter.UnionMember0 | EntryFilter.UnionMember1 | EntryFilter.UnionMember2;
3421
+ version: 1;
3422
+ }
3423
+ namespace EntryFilter {
3424
+ interface UnionMember0 {
3425
+ children: Array<unknown>;
3426
+ kind: 'and' | 'or';
3427
+ }
3428
+ interface UnionMember1 {
3429
+ child: unknown;
3430
+ kind: 'not';
3431
+ }
3432
+ interface UnionMember2 {
3433
+ kind: 'predicate';
3434
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
3435
+ property: string;
3436
+ path?: Array<string>;
3437
+ type?: 'string' | 'number' | 'boolean';
3438
+ value?: string | number | boolean | Array<string | number | boolean>;
3439
+ }
3440
+ }
3441
+ interface Exclusion {
3442
+ id: string;
3443
+ fromAnchorId: string;
3444
+ matcher: Exclusion.UnionMember0 | Exclusion.UnionMember1;
3445
+ toAnchorId: string;
3446
+ }
3447
+ namespace Exclusion {
3448
+ interface UnionMember0 {
3449
+ eventName: string;
3450
+ kind: 'event';
3451
+ filter?: UnionMember0.Filter;
3452
+ }
3453
+ namespace UnionMember0 {
3454
+ interface Filter {
3455
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
3456
+ version: 1;
3457
+ }
3458
+ namespace Filter {
3459
+ interface UnionMember0 {
3460
+ children: Array<unknown>;
3461
+ kind: 'and' | 'or';
3462
+ }
3463
+ interface UnionMember1 {
3464
+ child: unknown;
3465
+ kind: 'not';
3466
+ }
3467
+ interface UnionMember2 {
3468
+ kind: 'predicate';
3469
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
3470
+ property: string;
3471
+ path?: Array<string>;
3472
+ type?: 'string' | 'number' | 'boolean';
3473
+ value?: string | number | boolean | Array<string | number | boolean>;
3474
+ }
3475
+ }
3476
+ }
3477
+ interface UnionMember1 {
3478
+ kind: 'page';
3479
+ filter?: UnionMember1.Filter;
3480
+ }
3481
+ namespace UnionMember1 {
3482
+ interface Filter {
3483
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
3484
+ version: 1;
3485
+ }
3486
+ namespace Filter {
3487
+ interface UnionMember0 {
3488
+ children: Array<unknown>;
3489
+ kind: 'and' | 'or';
3490
+ }
3491
+ interface UnionMember1 {
3492
+ child: unknown;
3493
+ kind: 'not';
3494
+ }
3495
+ interface UnionMember2 {
3496
+ kind: 'predicate';
3497
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
3498
+ property: string;
3499
+ path?: Array<string>;
3500
+ type?: 'string' | 'number' | 'boolean';
3501
+ value?: string | number | boolean | Array<string | number | boolean>;
3502
+ }
3503
+ }
3504
+ }
3505
+ }
3506
+ interface HoldConstant {
3507
+ property: string;
3508
+ type: 'string' | 'number' | 'boolean';
3509
+ path?: Array<string>;
3510
+ }
3511
+ interface NodeExpansion {
3512
+ matcher: NodeExpansion.UnionMember0 | NodeExpansion.UnionMember1;
3513
+ position: NodeExpansion.Position;
3514
+ property: NodeExpansion.Property;
3515
+ limit?: number;
3516
+ }
3517
+ namespace NodeExpansion {
3518
+ interface UnionMember0 {
3519
+ eventName: string;
3520
+ kind: 'event';
3521
+ filter?: UnionMember0.Filter;
3522
+ }
3523
+ namespace UnionMember0 {
3524
+ interface Filter {
3525
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
3526
+ version: 1;
3527
+ }
3528
+ namespace Filter {
3529
+ interface UnionMember0 {
3530
+ children: Array<unknown>;
3531
+ kind: 'and' | 'or';
3532
+ }
3533
+ interface UnionMember1 {
3534
+ child: unknown;
3535
+ kind: 'not';
3536
+ }
3537
+ interface UnionMember2 {
3538
+ kind: 'predicate';
3539
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
3540
+ property: string;
3541
+ path?: Array<string>;
3542
+ type?: 'string' | 'number' | 'boolean';
3543
+ value?: string | number | boolean | Array<string | number | boolean>;
3544
+ }
3545
+ }
3546
+ }
3547
+ interface UnionMember1 {
3548
+ kind: 'page';
3549
+ filter?: UnionMember1.Filter;
3550
+ }
3551
+ namespace UnionMember1 {
3552
+ interface Filter {
3553
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
3554
+ version: 1;
3555
+ }
3556
+ namespace Filter {
3557
+ interface UnionMember0 {
3558
+ children: Array<unknown>;
3559
+ kind: 'and' | 'or';
3560
+ }
3561
+ interface UnionMember1 {
3562
+ child: unknown;
3563
+ kind: 'not';
3564
+ }
3565
+ interface UnionMember2 {
3566
+ kind: 'predicate';
3567
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
3568
+ property: string;
3569
+ path?: Array<string>;
3570
+ type?: 'string' | 'number' | 'boolean';
3571
+ value?: string | number | boolean | Array<string | number | boolean>;
3572
+ }
3573
+ }
3574
+ }
3575
+ interface Position {
3576
+ anchorId: string;
3577
+ offset: number;
3578
+ side: 'anchor' | 'before' | 'after';
3579
+ }
3580
+ interface Property {
3581
+ property: string;
3582
+ type: 'string' | 'number' | 'boolean';
3583
+ path?: Array<string>;
3584
+ }
3585
+ }
3586
+ }
3587
+ /**
3588
+ * Complete UTC date range and comparisons for this Journey Flow.
3589
+ */
3590
+ interface ReportContext {
3591
+ dateRange: ReportContext.DateRange;
3592
+ comparisons?: Array<ReportContext.Comparison>;
3593
+ }
3594
+ namespace ReportContext {
3595
+ interface DateRange {
3596
+ from: string;
3597
+ timeZone: string;
3598
+ to: string;
3599
+ }
3600
+ interface Comparison {
3601
+ id: string;
3602
+ label: string;
3603
+ dateRange?: Comparison.DateRange;
3604
+ entryFilter?: Comparison.EntryFilter;
3605
+ sessionFilter?: Comparison.SessionFilter;
3606
+ }
3607
+ namespace Comparison {
3608
+ interface DateRange {
3609
+ from: string;
3610
+ timeZone: string;
3611
+ to: string;
3612
+ }
3613
+ interface EntryFilter {
3614
+ filter: EntryFilter.UnionMember0 | EntryFilter.UnionMember1 | EntryFilter.UnionMember2;
3615
+ version: 1;
3616
+ }
3617
+ namespace EntryFilter {
3618
+ interface UnionMember0 {
3619
+ children: Array<unknown>;
3620
+ kind: 'and' | 'or';
3621
+ }
3622
+ interface UnionMember1 {
3623
+ child: unknown;
3624
+ kind: 'not';
3625
+ }
3626
+ interface UnionMember2 {
3627
+ kind: 'predicate';
3628
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
3629
+ property: string;
3630
+ path?: Array<string>;
3631
+ type?: 'string' | 'number' | 'boolean';
3632
+ value?: string | number | boolean | Array<string | number | boolean>;
3633
+ }
3634
+ }
3635
+ interface SessionFilter {
3636
+ filter: SessionFilter.UnionMember0 | SessionFilter.UnionMember1 | SessionFilter.UnionMember2;
3637
+ version: 1;
3638
+ }
3639
+ namespace SessionFilter {
3640
+ interface UnionMember0 {
3641
+ children: Array<unknown>;
3642
+ kind: 'and' | 'or';
3643
+ }
3644
+ interface UnionMember1 {
3645
+ child: unknown;
3646
+ kind: 'not';
3647
+ }
3648
+ interface UnionMember2 {
3649
+ kind: 'predicate';
3650
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
3651
+ property: string;
3652
+ path?: Array<string>;
3653
+ type?: 'string' | 'number' | 'boolean';
3654
+ value?: string | number | boolean | Array<string | number | boolean>;
3655
+ }
3656
+ }
3657
+ }
3658
+ }
3659
+ /**
3660
+ * Complete visualization settings. Supplied view replaces the saved value on
3661
+ * PATCH.
3662
+ */
3663
+ interface View {
3664
+ showDropOff?: boolean;
3665
+ showElapsedTime?: boolean;
3666
+ topEventsPerPosition?: number;
3667
+ topPaths?: number;
3668
+ visualization?: 'sankey' | 'top-paths';
3669
+ }
3670
+ }
3671
+ interface Result {
3672
+ definitionHash: string;
3673
+ effectiveContext: Result.EffectiveContext;
3674
+ engine: string;
3675
+ execution: Result.Execution;
3676
+ limits: Result.Limits;
3677
+ observation: Result.Observation;
3678
+ samples: Result.Samples;
3679
+ semanticVersion: string;
3680
+ series: Array<Result.Series>;
3681
+ timing: Array<Result.Timing>;
3682
+ definitionRevision?: string | null;
3683
+ }
3684
+ namespace Result {
3685
+ interface EffectiveContext {
3686
+ comparisons: Array<EffectiveContext.Comparison>;
3687
+ contextWindowMs: number;
3688
+ conversionWindowMs: number;
3689
+ counting: 'UNIQUE' | 'TOTALS' | 'SESSIONS';
3690
+ dateRange: EffectiveContext.DateRange;
3691
+ excludeBots: boolean;
3692
+ reentry: 'FIRST' | 'BEST';
3693
+ sourceIds: Array<string>;
3694
+ }
3695
+ namespace EffectiveContext {
3696
+ interface Comparison {
3697
+ id: string;
3698
+ label: string;
3699
+ dateRange?: Comparison.DateRange | null;
3700
+ entryFilter?: Comparison.EntryFilter | null;
3701
+ sessionFilter?: Comparison.SessionFilter | null;
3702
+ }
3703
+ namespace Comparison {
3704
+ interface DateRange {
3705
+ from: string;
3706
+ timeZone: string;
3707
+ to: string;
3708
+ }
3709
+ interface EntryFilter {
3710
+ filter: EntryFilter.Filter;
3711
+ version: number;
3712
+ }
3713
+ namespace EntryFilter {
3714
+ interface Filter {
3715
+ kind: 'AND' | 'OR' | 'NOT' | 'PREDICATE';
3716
+ child?: Filter.Child | null;
3717
+ children?: Array<Filter.Child> | null;
3718
+ predicate?: Filter.Predicate | null;
3719
+ }
3720
+ namespace Filter {
3721
+ interface Child {
3722
+ kind: 'AND' | 'OR' | 'NOT' | 'PREDICATE';
3723
+ }
3724
+ interface Child {
3725
+ kind: 'AND' | 'OR' | 'NOT' | 'PREDICATE';
3726
+ }
3727
+ interface Predicate {
3728
+ operator: 'EQ' | 'NEQ' | 'GT' | 'GTE' | 'LT' | 'LTE' | 'CONTAINS' | 'NOT_CONTAINS' | 'CONTAINS_CI' | 'NOT_CONTAINS_CI' | 'STARTS_WITH' | 'ENDS_WITH' | 'IN' | 'NOT_IN' | 'EXISTS' | 'MISSING' | 'IS_NULL';
3729
+ property: string;
3730
+ path?: Array<string> | null;
3731
+ type?: 'STRING' | 'NUMBER' | 'BOOLEAN' | null;
3732
+ value?: Predicate.Value | null;
3733
+ }
3734
+ namespace Predicate {
3735
+ interface Value {
3736
+ booleanValue?: boolean | null;
3737
+ booleanValues?: Array<boolean> | null;
3738
+ numberValue?: number | null;
3739
+ numberValues?: Array<number> | null;
3740
+ stringValue?: string | null;
3741
+ stringValues?: Array<string> | null;
3742
+ }
3743
+ }
3744
+ }
3745
+ }
3746
+ interface SessionFilter {
3747
+ filter: SessionFilter.Filter;
3748
+ version: number;
3749
+ }
3750
+ namespace SessionFilter {
3751
+ interface Filter {
3752
+ kind: 'AND' | 'OR' | 'NOT' | 'PREDICATE';
3753
+ child?: Filter.Child | null;
3754
+ children?: Array<Filter.Child> | null;
3755
+ predicate?: Filter.Predicate | null;
3756
+ }
3757
+ namespace Filter {
3758
+ interface Child {
3759
+ kind: 'AND' | 'OR' | 'NOT' | 'PREDICATE';
3760
+ }
3761
+ interface Child {
3762
+ kind: 'AND' | 'OR' | 'NOT' | 'PREDICATE';
3763
+ }
3764
+ interface Predicate {
3765
+ operator: 'EQ' | 'NEQ' | 'GT' | 'GTE' | 'LT' | 'LTE' | 'CONTAINS' | 'NOT_CONTAINS' | 'CONTAINS_CI' | 'NOT_CONTAINS_CI' | 'STARTS_WITH' | 'ENDS_WITH' | 'IN' | 'NOT_IN' | 'EXISTS' | 'MISSING' | 'IS_NULL';
3766
+ property: string;
3767
+ path?: Array<string> | null;
3768
+ type?: 'STRING' | 'NUMBER' | 'BOOLEAN' | null;
3769
+ value?: Predicate.Value | null;
3770
+ }
3771
+ namespace Predicate {
3772
+ interface Value {
3773
+ booleanValue?: boolean | null;
3774
+ booleanValues?: Array<boolean> | null;
3775
+ numberValue?: number | null;
3776
+ numberValues?: Array<number> | null;
3777
+ stringValue?: string | null;
3778
+ stringValues?: Array<string> | null;
3779
+ }
3780
+ }
3781
+ }
3782
+ }
3783
+ }
3784
+ interface DateRange {
3785
+ from: string;
3786
+ timeZone: string;
3787
+ to: string;
3788
+ }
3789
+ }
3790
+ interface Execution {
3791
+ cacheHit: boolean;
3792
+ generatedAt: string;
3793
+ queryId: string;
3794
+ sampled: boolean;
3795
+ warnings: Array<Execution.Warning>;
3796
+ cacheAgeMs?: number | null;
3797
+ }
3798
+ namespace Execution {
3799
+ interface Warning {
3800
+ code: string;
3801
+ message: string;
3802
+ path?: Array<string> | null;
3803
+ }
3804
+ }
3805
+ interface Limits {
3806
+ omittedPathCount: string;
3807
+ omittedPathWeight: string;
3808
+ topEventsPerPosition: number;
3809
+ topPaths: number;
3810
+ executionLimitStatus?: string | null;
3811
+ omittedNodeCount?: string | null;
3812
+ omittedNodeWeight?: string | null;
3813
+ }
3814
+ interface Observation {
3815
+ entryFrom: string;
3816
+ entryTo: string;
3817
+ observationFrom: string;
3818
+ observationTo: string;
3819
+ status: 'COMPLETE' | 'INCOMPLETE' | 'UNKNOWN';
3820
+ complete?: boolean | null;
3821
+ retentionBoundary?: string | null;
3822
+ watermark?: string | null;
3823
+ }
3824
+ interface Samples {
3825
+ entries: Array<Samples.Entry>;
3826
+ limitPerOutcome: number;
3827
+ }
3828
+ namespace Samples {
3829
+ interface Entry {
3830
+ entryAt: string;
3831
+ lastAnchorAt: string;
3832
+ outcome: 'COMPLETED' | 'INCOMPLETE';
3833
+ reachedAnchors: number;
3834
+ sessionId: string | null;
3835
+ sessionStartDate: string | null;
3836
+ visitorId: string;
3837
+ }
3838
+ }
3839
+ interface Series {
3840
+ id: string;
3841
+ label: string;
3842
+ segments: Array<Series.Segment>;
3843
+ }
3844
+ namespace Series {
3845
+ interface Segment {
3846
+ id: string;
3847
+ columns: Array<Segment.Column>;
3848
+ completedCount: string;
3849
+ edges: Array<Segment.Edge>;
3850
+ entryCount: string;
3851
+ excludedCount: string;
3852
+ label: string;
3853
+ nodes: Array<Segment.Node>;
3854
+ omittedPathWeight: string;
3855
+ returnedPathWeight: string;
3856
+ topPaths: Array<Segment.TopPath>;
3857
+ totalPathCount: string;
3858
+ unfocusedEntryCount: string;
3859
+ observationIncompleteCount?: string | null;
3860
+ timedOutCount?: string | null;
3861
+ }
3862
+ namespace Segment {
3863
+ interface Column {
3864
+ kind: 'ANCHOR' | 'BEFORE' | 'GAP' | 'OMITTED' | 'AFTER' | 'OUTCOME';
3865
+ label: string;
3866
+ position: Column.Position;
3867
+ total: string;
3868
+ }
3869
+ namespace Column {
3870
+ interface Position {
3871
+ anchorId: string | null;
3872
+ column: number;
3873
+ key: string;
3874
+ offset: number | null;
3875
+ side: 'anchor' | 'before' | 'after' | null;
3876
+ }
3877
+ }
3878
+ interface Edge {
3879
+ id: string;
3880
+ count: string;
3881
+ denominator: string;
3882
+ shareOfPrevious: Edge.ShareOfPrevious;
3883
+ sourceNodeId: string;
3884
+ targetNodeId: string;
3885
+ shareOfNext?: Edge.ShareOfNext | null;
3886
+ }
3887
+ namespace Edge {
3888
+ interface ShareOfPrevious {
3889
+ denominator: string;
3890
+ numerator: string;
3891
+ value?: number | null;
3892
+ }
3893
+ interface ShareOfNext {
3894
+ denominator: string;
3895
+ numerator: string;
3896
+ value?: number | null;
3897
+ }
3898
+ }
3899
+ interface Node {
3900
+ id: string;
3901
+ anchorId: string | null;
3902
+ count: string;
3903
+ denominator: string;
3904
+ key: string;
3905
+ kind: 'ANCHOR' | 'EVENT' | 'PAGE' | 'TERMINAL' | 'OMITTED_STEPS' | 'OTHER_EVENTS';
3906
+ matcher: Node.UnionMember0 | null | Node.UnionMember1;
3907
+ position: Node.Position;
3908
+ shareOfEntries: Node.ShareOfEntries;
3909
+ value: string;
3910
+ shareOfNext?: Node.ShareOfNext | null;
3911
+ shareOfPrevious?: Node.ShareOfPrevious | null;
3912
+ source?: string | null;
3913
+ terminal?: 'COMPLETED' | 'INCOMPLETE' | null;
3914
+ }
3915
+ namespace Node {
3916
+ interface UnionMember0 {
3917
+ eventName: string;
3918
+ kind: 'event';
3919
+ filter?: UnionMember0.Filter;
3920
+ }
3921
+ namespace UnionMember0 {
3922
+ interface Filter {
3923
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
3924
+ version: 1;
3925
+ }
3926
+ namespace Filter {
3927
+ interface UnionMember0 {
3928
+ children: Array<UnionMember0.UnionMember0 | UnionMember0.UnionMember1 | UnionMember0.UnionMember2>;
3929
+ kind: 'and' | 'or';
3930
+ }
3931
+ namespace UnionMember0 {
3932
+ interface UnionMember0 {
3933
+ children: Array<unknown>;
3934
+ kind: 'and' | 'or';
3935
+ }
3936
+ interface UnionMember1 {
3937
+ child: unknown;
3938
+ kind: 'not';
3939
+ }
3940
+ interface UnionMember2 {
3941
+ kind: 'predicate';
3942
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
3943
+ property: string;
3944
+ path?: Array<string>;
3945
+ type?: 'string' | 'number' | 'boolean';
3946
+ value?: string | number | boolean | Array<string | number | boolean>;
3947
+ }
3948
+ }
3949
+ interface UnionMember1 {
3950
+ child: UnionMember1.UnionMember0 | UnionMember1.UnionMember1 | UnionMember1.UnionMember2;
3951
+ kind: 'not';
3952
+ }
3953
+ namespace UnionMember1 {
3954
+ interface UnionMember0 {
3955
+ children: Array<unknown>;
3956
+ kind: 'and' | 'or';
3957
+ }
3958
+ interface UnionMember1 {
3959
+ child: unknown;
3960
+ kind: 'not';
3961
+ }
3962
+ interface UnionMember2 {
3963
+ kind: 'predicate';
3964
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
3965
+ property: string;
3966
+ path?: Array<string>;
3967
+ type?: 'string' | 'number' | 'boolean';
3968
+ value?: string | number | boolean | Array<string | number | boolean>;
3969
+ }
3970
+ }
3971
+ interface UnionMember2 {
3972
+ kind: 'predicate';
3973
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
3974
+ property: string;
3975
+ path?: Array<string>;
3976
+ type?: 'string' | 'number' | 'boolean';
3977
+ value?: string | number | boolean | Array<string | number | boolean>;
3978
+ }
3979
+ }
3980
+ }
3981
+ interface UnionMember1 {
3982
+ kind: 'page';
3983
+ filter?: UnionMember1.Filter;
3984
+ }
3985
+ namespace UnionMember1 {
3986
+ interface Filter {
3987
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
3988
+ version: 1;
3989
+ }
3990
+ namespace Filter {
3991
+ interface UnionMember0 {
3992
+ children: Array<unknown>;
3993
+ kind: 'and' | 'or';
3994
+ }
3995
+ interface UnionMember1 {
3996
+ child: unknown;
3997
+ kind: 'not';
3998
+ }
3999
+ interface UnionMember2 {
4000
+ kind: 'predicate';
4001
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
4002
+ property: string;
4003
+ path?: Array<string>;
4004
+ type?: 'string' | 'number' | 'boolean';
4005
+ value?: string | number | boolean | Array<string | number | boolean>;
4006
+ }
4007
+ }
4008
+ }
4009
+ interface Position {
4010
+ anchorId: string | null;
4011
+ column: number;
4012
+ key: string;
4013
+ offset: number | null;
4014
+ side: 'anchor' | 'before' | 'after' | null;
4015
+ }
4016
+ interface ShareOfEntries {
4017
+ denominator: string;
4018
+ numerator: string;
4019
+ value?: number | null;
4020
+ }
4021
+ interface ShareOfNext {
4022
+ denominator: string;
4023
+ numerator: string;
4024
+ value?: number | null;
4025
+ }
4026
+ interface ShareOfPrevious {
4027
+ denominator: string;
4028
+ numerator: string;
4029
+ value?: number | null;
4030
+ }
4031
+ }
4032
+ interface TopPath {
4033
+ id: string;
4034
+ completedCount: string;
4035
+ denominator: string;
4036
+ incompleteCount: string;
4037
+ shareOfEntries: TopPath.ShareOfEntries;
4038
+ steps: Array<TopPath.Step>;
4039
+ weight: string;
4040
+ }
4041
+ namespace TopPath {
4042
+ interface ShareOfEntries {
4043
+ denominator: string;
4044
+ numerator: string;
4045
+ value?: number | null;
4046
+ }
4047
+ interface Step {
4048
+ anchorId: string | null;
4049
+ kind: 'ANCHOR' | 'EVENT' | 'PAGE' | 'TERMINAL' | 'OMITTED_STEPS' | 'OTHER_EVENTS';
4050
+ matcher: Step.UnionMember0 | null | Step.UnionMember1;
4051
+ position: Step.Position;
4052
+ value: string;
4053
+ source?: string | null;
4054
+ terminal?: 'COMPLETED' | 'INCOMPLETE' | null;
4055
+ }
4056
+ namespace Step {
4057
+ interface UnionMember0 {
4058
+ eventName: string;
4059
+ kind: 'event';
4060
+ filter?: UnionMember0.Filter;
4061
+ }
4062
+ namespace UnionMember0 {
4063
+ interface Filter {
4064
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
4065
+ version: 1;
4066
+ }
4067
+ namespace Filter {
4068
+ interface UnionMember0 {
4069
+ children: Array<UnionMember0.UnionMember0 | UnionMember0.UnionMember1 | UnionMember0.UnionMember2>;
4070
+ kind: 'and' | 'or';
4071
+ }
4072
+ namespace UnionMember0 {
4073
+ interface UnionMember0 {
4074
+ children: Array<unknown>;
4075
+ kind: 'and' | 'or';
4076
+ }
4077
+ interface UnionMember1 {
4078
+ child: unknown;
4079
+ kind: 'not';
4080
+ }
4081
+ interface UnionMember2 {
4082
+ kind: 'predicate';
4083
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
4084
+ property: string;
4085
+ path?: Array<string>;
4086
+ type?: 'string' | 'number' | 'boolean';
4087
+ value?: string | number | boolean | Array<string | number | boolean>;
4088
+ }
4089
+ }
4090
+ interface UnionMember1 {
4091
+ child: UnionMember1.UnionMember0 | UnionMember1.UnionMember1 | UnionMember1.UnionMember2;
4092
+ kind: 'not';
4093
+ }
4094
+ namespace UnionMember1 {
4095
+ interface UnionMember0 {
4096
+ children: Array<unknown>;
4097
+ kind: 'and' | 'or';
4098
+ }
4099
+ interface UnionMember1 {
4100
+ child: unknown;
4101
+ kind: 'not';
4102
+ }
4103
+ interface UnionMember2 {
4104
+ kind: 'predicate';
4105
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
4106
+ property: string;
4107
+ path?: Array<string>;
4108
+ type?: 'string' | 'number' | 'boolean';
4109
+ value?: string | number | boolean | Array<string | number | boolean>;
4110
+ }
4111
+ }
4112
+ interface UnionMember2 {
4113
+ kind: 'predicate';
4114
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
4115
+ property: string;
4116
+ path?: Array<string>;
4117
+ type?: 'string' | 'number' | 'boolean';
4118
+ value?: string | number | boolean | Array<string | number | boolean>;
4119
+ }
4120
+ }
4121
+ }
4122
+ interface UnionMember1 {
4123
+ kind: 'page';
4124
+ filter?: UnionMember1.Filter;
4125
+ }
4126
+ namespace UnionMember1 {
4127
+ interface Filter {
4128
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
4129
+ version: 1;
4130
+ }
4131
+ namespace Filter {
4132
+ interface UnionMember0 {
4133
+ children: Array<unknown>;
4134
+ kind: 'and' | 'or';
4135
+ }
4136
+ interface UnionMember1 {
4137
+ child: unknown;
4138
+ kind: 'not';
4139
+ }
4140
+ interface UnionMember2 {
4141
+ kind: 'predicate';
4142
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
4143
+ property: string;
4144
+ path?: Array<string>;
4145
+ type?: 'string' | 'number' | 'boolean';
4146
+ value?: string | number | boolean | Array<string | number | boolean>;
4147
+ }
4148
+ }
4149
+ }
4150
+ interface Position {
4151
+ anchorId: string | null;
4152
+ column: number;
4153
+ key: string;
4154
+ offset: number | null;
4155
+ side: 'anchor' | 'before' | 'after' | null;
4156
+ }
4157
+ }
4158
+ }
4159
+ }
4160
+ }
4161
+ interface Timing {
4162
+ count: string;
4163
+ direction: 'FORWARD' | 'BACKWARD';
4164
+ fromPosition: string;
4165
+ kind: 'EDGE' | 'ANCHOR' | 'OVERALL';
4166
+ sourceNodeId: string;
4167
+ targetNodeId: string;
4168
+ toPosition: string;
4169
+ averageMs?: number | null;
4170
+ maximumMs?: number | null;
4171
+ medianMs?: number | null;
4172
+ minimumMs?: number | null;
4173
+ }
4174
+ }
4175
+ }
4176
+ }
4177
+ export interface DashboardReplayTileResultResponse {
4178
+ computedAt: string;
4179
+ /**
4180
+ * Effective inclusive UTC start date after retention and range limits.
4181
+ */
4182
+ from: string;
4183
+ /**
4184
+ * True when more matching sessions exist in the window.
4185
+ */
4186
+ hasMore: boolean;
4187
+ /**
4188
+ * Most recent replay-bearing sessions first, at most the tile limit.
4189
+ */
4190
+ items: Array<DashboardReplayTileResultResponse.Item>;
4191
+ kind: 'replays';
4192
+ /**
4193
+ * Tile identifier from get_dashboard, or a new unique tile identifier for a report
4194
+ * preview.
4195
+ */
4196
+ tileId: string;
4197
+ /**
4198
+ * Effective inclusive UTC end date.
4199
+ */
4200
+ to: string;
4201
+ /**
4202
+ * REPLAY_RETENTION_LIMITED, REPLAY_RANGE_LIMITED, or REPLAY_OUTSIDE_RETENTION when
4203
+ * the window was narrowed or has no retained replays.
4204
+ */
4205
+ warnings: Array<DashboardReplayTileResultResponse.Warning>;
4206
+ }
4207
+ export declare namespace DashboardReplayTileResultResponse {
4208
+ interface Item {
4209
+ date: string;
4210
+ /**
4211
+ * Session length in seconds.
4212
+ */
4213
+ duration: number | null;
4214
+ eventCount: number | null;
4215
+ pageCount: number | null;
4216
+ sessionId: string;
4217
+ startTime: string | null;
4218
+ visitorId: string;
4219
+ }
4220
+ interface Warning {
4221
+ code: string;
4222
+ message: string;
4223
+ }
4224
+ }
4225
+ export interface DashboardReplayPreviewResponse {
4226
+ computedAt: string;
4227
+ /**
4228
+ * Effective inclusive UTC start date after retention and range limits.
4229
+ */
4230
+ from: string;
4231
+ /**
4232
+ * True when more matching sessions exist in the window.
4233
+ */
4234
+ hasMore: boolean;
4235
+ /**
4236
+ * Most recent replay-bearing sessions first, at most the tile limit.
4237
+ */
4238
+ items: Array<DashboardReplayPreviewResponse.Item>;
4239
+ kind: 'replays';
4240
+ /**
4241
+ * Tile identifier from get_dashboard, or a new unique tile identifier for a report
4242
+ * preview.
4243
+ */
4244
+ tileId: string;
4245
+ /**
4246
+ * Effective inclusive UTC end date.
4247
+ */
4248
+ to: string;
4249
+ /**
4250
+ * REPLAY_RETENTION_LIMITED, REPLAY_RANGE_LIMITED, or REPLAY_OUTSIDE_RETENTION when
4251
+ * the window was narrowed or has no retained replays.
4252
+ */
4253
+ warnings: Array<DashboardReplayPreviewResponse.Warning>;
4254
+ }
4255
+ export declare namespace DashboardReplayPreviewResponse {
4256
+ interface Item {
4257
+ date: string;
4258
+ /**
4259
+ * Session length in seconds.
4260
+ */
4261
+ duration: number | null;
4262
+ eventCount: number | null;
4263
+ pageCount: number | null;
4264
+ sessionId: string;
4265
+ startTime: string | null;
4266
+ visitorId: string;
4267
+ }
4268
+ interface Warning {
4269
+ code: string;
4270
+ message: string;
4271
+ }
4272
+ }
4273
+ export interface DashboardListParams extends CursorParams {
4274
+ /**
4275
+ * Case-insensitive substring search on Dashboard names.
4276
+ */
4277
+ search?: string;
4278
+ }
4279
+ export interface DashboardCreateParams {
4280
+ /**
4281
+ * Display name for the saved Dashboard.
4282
+ */
4283
+ name: string;
4284
+ /**
4285
+ * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
4286
+ * Journey tiles support up to 91 inclusive days; Insights retain their native
4287
+ * range limit.
4288
+ */
4289
+ reportContext: DashboardCreateParams.ReportContext;
4290
+ /**
4291
+ * Ordered collection of up to 12 tiles; every kind counts toward the limit. Each
4292
+ * tile has id, layout { width 3-12, height }, and exactly one of report { kind:
4293
+ * insight|funnel|journey, id }, text { markdown } (at most 10000 characters per
4294
+ * tile and 20000 per Dashboard; height 80-960), or replays { title?, eventName?,
4295
+ * pathname?, filter?, limit 5-25 } (height 240-960, like report tiles). Replaces
4296
+ * the collection on PATCH; removing a tile does not delete its report. Referenced
4297
+ * reports require web-analytics:view; Insights also require variables:find-custom
4298
+ * and Journeys with selected sources require source:view. Replay tile results
4299
+ * require web-analytics:view, like the Session Replay list.
4300
+ */
4301
+ tiles: Array<DashboardCreateParams.UnionMember0 | DashboardCreateParams.UnionMember1 | DashboardCreateParams.UnionMember2>;
4302
+ /**
4303
+ * Optional description; null clears it.
4304
+ */
4305
+ description?: string | null;
4306
+ /**
4307
+ * Shared analytics filter, combined with Insight report filters or Funnel and
4308
+ * Journey entry filters. Null clears it; report-specific filters remain in effect.
4309
+ */
4310
+ filter?: DashboardCreateParams.Filter;
4311
+ }
4312
+ export declare namespace DashboardCreateParams {
4313
+ /**
4314
+ * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
4315
+ * Journey tiles support up to 91 inclusive days; Insights retain their native
4316
+ * range limit.
4317
+ */
4318
+ interface ReportContext {
4319
+ dateRange: ReportContext.UnionMember0 | ReportContext.UnionMember1;
4320
+ }
4321
+ namespace ReportContext {
4322
+ interface UnionMember0 {
4323
+ from: string;
4324
+ to: string;
4325
+ timeZone?: 'UTC';
4326
+ }
4327
+ interface UnionMember1 {
4328
+ preset: 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days' | 'last_12_months' | 'week_to_date' | 'month_to_date' | 'year_to_date';
4329
+ timeZone?: 'UTC';
4330
+ }
4331
+ }
4332
+ interface UnionMember0 {
4333
+ id: string;
4334
+ layout: UnionMember0.Layout;
4335
+ report: UnionMember0.Report;
4336
+ }
4337
+ namespace UnionMember0 {
4338
+ interface Layout {
4339
+ height: number;
4340
+ width: number;
4341
+ }
4342
+ interface Report {
4343
+ id: string;
4344
+ kind: 'insight' | 'funnel' | 'journey';
4345
+ }
4346
+ }
4347
+ interface UnionMember1 {
4348
+ id: string;
4349
+ layout: UnionMember1.Layout;
4350
+ text: UnionMember1.Text;
4351
+ }
4352
+ namespace UnionMember1 {
4353
+ interface Layout {
4354
+ height: number;
4355
+ width: number;
4356
+ }
4357
+ interface Text {
4358
+ markdown: string;
4359
+ }
4360
+ }
4361
+ interface UnionMember2 {
4362
+ id: string;
4363
+ layout: UnionMember2.Layout;
4364
+ replays: UnionMember2.Replays;
4365
+ }
4366
+ namespace UnionMember2 {
4367
+ interface Layout {
4368
+ height: number;
4369
+ width: number;
4370
+ }
4371
+ interface Replays {
4372
+ limit: number;
4373
+ eventName?: string;
4374
+ filter?: Replays.Filter;
4375
+ pathname?: string;
4376
+ title?: string;
4377
+ }
4378
+ namespace Replays {
4379
+ interface Filter {
4380
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
4381
+ version: 1;
4382
+ }
4383
+ namespace Filter {
4384
+ interface UnionMember0 {
4385
+ children: Array<unknown>;
4386
+ kind: 'and' | 'or';
4387
+ }
4388
+ interface UnionMember1 {
4389
+ child: unknown;
4390
+ kind: 'not';
4391
+ }
4392
+ interface UnionMember2 {
4393
+ kind: 'predicate';
4394
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
4395
+ property: string;
4396
+ path?: Array<string>;
4397
+ type?: 'string' | 'number' | 'boolean';
4398
+ value?: string | number | boolean | Array<string | number | boolean>;
4399
+ }
4400
+ }
4401
+ }
4402
+ }
4403
+ /**
4404
+ * Shared analytics filter, combined with Insight report filters or Funnel and
4405
+ * Journey entry filters. Null clears it; report-specific filters remain in effect.
4406
+ */
4407
+ interface Filter {
4408
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
4409
+ version: 1;
4410
+ }
4411
+ namespace Filter {
4412
+ interface UnionMember0 {
4413
+ children: Array<UnionMember0.UnionMember0 | UnionMember0.UnionMember1 | UnionMember0.UnionMember2>;
4414
+ kind: 'and' | 'or';
4415
+ }
4416
+ namespace UnionMember0 {
4417
+ interface UnionMember0 {
4418
+ children: Array<unknown>;
4419
+ kind: 'and' | 'or';
4420
+ }
4421
+ interface UnionMember1 {
4422
+ child: unknown;
4423
+ kind: 'not';
4424
+ }
4425
+ interface UnionMember2 {
4426
+ kind: 'predicate';
4427
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
4428
+ property: string;
4429
+ path?: Array<string>;
4430
+ type?: 'string' | 'number' | 'boolean';
4431
+ value?: string | number | boolean | Array<string | number | boolean>;
4432
+ }
4433
+ }
4434
+ interface UnionMember1 {
4435
+ child: UnionMember1.UnionMember0 | UnionMember1.UnionMember1 | UnionMember1.UnionMember2;
4436
+ kind: 'not';
4437
+ }
4438
+ namespace UnionMember1 {
4439
+ interface UnionMember0 {
4440
+ children: Array<unknown>;
4441
+ kind: 'and' | 'or';
4442
+ }
4443
+ interface UnionMember1 {
4444
+ child: unknown;
4445
+ kind: 'not';
4446
+ }
4447
+ interface UnionMember2 {
4448
+ kind: 'predicate';
4449
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
4450
+ property: string;
4451
+ path?: Array<string>;
4452
+ type?: 'string' | 'number' | 'boolean';
4453
+ value?: string | number | boolean | Array<string | number | boolean>;
4454
+ }
4455
+ }
4456
+ interface UnionMember2 {
4457
+ kind: 'predicate';
4458
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
4459
+ property: string;
4460
+ path?: Array<string>;
4461
+ type?: 'string' | 'number' | 'boolean';
4462
+ value?: string | number | boolean | Array<string | number | boolean>;
4463
+ }
4464
+ }
4465
+ }
4466
+ export interface DashboardUpdateParams {
4467
+ /**
4468
+ * Current revision from get_dashboard, list_dashboards, or the last write. A stale
4469
+ * revision returns 409; reload before retrying.
4470
+ */
4471
+ expectedRevision: string;
4472
+ /**
4473
+ * Optional description; null clears it.
4474
+ */
4475
+ description?: string | null;
4476
+ /**
4477
+ * Shared analytics filter, combined with Insight report filters or Funnel and
4478
+ * Journey entry filters. Null clears it; report-specific filters remain in effect.
4479
+ */
4480
+ filter?: DashboardUpdateParams.Filter;
4481
+ /**
4482
+ * Display name for the saved Dashboard.
4483
+ */
4484
+ name?: string;
4485
+ /**
4486
+ * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
4487
+ * Journey tiles support up to 91 inclusive days; Insights retain their native
4488
+ * range limit.
4489
+ */
4490
+ reportContext?: DashboardUpdateParams.ReportContext;
4491
+ /**
4492
+ * Ordered collection of up to 12 tiles; every kind counts toward the limit. Each
4493
+ * tile has id, layout { width 3-12, height }, and exactly one of report { kind:
4494
+ * insight|funnel|journey, id }, text { markdown } (at most 10000 characters per
4495
+ * tile and 20000 per Dashboard; height 80-960), or replays { title?, eventName?,
4496
+ * pathname?, filter?, limit 5-25 } (height 240-960, like report tiles). Replaces
4497
+ * the collection on PATCH; removing a tile does not delete its report. Referenced
4498
+ * reports require web-analytics:view; Insights also require variables:find-custom
4499
+ * and Journeys with selected sources require source:view. Replay tile results
4500
+ * require web-analytics:view, like the Session Replay list.
4501
+ */
4502
+ tiles?: Array<DashboardUpdateParams.UnionMember0 | DashboardUpdateParams.UnionMember1 | DashboardUpdateParams.UnionMember2>;
4503
+ }
4504
+ export declare namespace DashboardUpdateParams {
4505
+ /**
4506
+ * Shared analytics filter, combined with Insight report filters or Funnel and
4507
+ * Journey entry filters. Null clears it; report-specific filters remain in effect.
4508
+ */
4509
+ interface Filter {
4510
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
4511
+ version: 1;
4512
+ }
4513
+ namespace Filter {
4514
+ interface UnionMember0 {
4515
+ children: Array<UnionMember0.UnionMember0 | UnionMember0.UnionMember1 | UnionMember0.UnionMember2>;
4516
+ kind: 'and' | 'or';
4517
+ }
4518
+ namespace UnionMember0 {
4519
+ interface UnionMember0 {
4520
+ children: Array<unknown>;
4521
+ kind: 'and' | 'or';
4522
+ }
4523
+ interface UnionMember1 {
4524
+ child: unknown;
4525
+ kind: 'not';
4526
+ }
4527
+ interface UnionMember2 {
4528
+ kind: 'predicate';
4529
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
4530
+ property: string;
4531
+ path?: Array<string>;
4532
+ type?: 'string' | 'number' | 'boolean';
4533
+ value?: string | number | boolean | Array<string | number | boolean>;
4534
+ }
4535
+ }
4536
+ interface UnionMember1 {
4537
+ child: UnionMember1.UnionMember0 | UnionMember1.UnionMember1 | UnionMember1.UnionMember2;
4538
+ kind: 'not';
4539
+ }
4540
+ namespace UnionMember1 {
4541
+ interface UnionMember0 {
4542
+ children: Array<unknown>;
4543
+ kind: 'and' | 'or';
4544
+ }
4545
+ interface UnionMember1 {
4546
+ child: unknown;
4547
+ kind: 'not';
4548
+ }
4549
+ interface UnionMember2 {
4550
+ kind: 'predicate';
4551
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
4552
+ property: string;
4553
+ path?: Array<string>;
4554
+ type?: 'string' | 'number' | 'boolean';
4555
+ value?: string | number | boolean | Array<string | number | boolean>;
4556
+ }
4557
+ }
4558
+ interface UnionMember2 {
4559
+ kind: 'predicate';
4560
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
4561
+ property: string;
4562
+ path?: Array<string>;
4563
+ type?: 'string' | 'number' | 'boolean';
4564
+ value?: string | number | boolean | Array<string | number | boolean>;
4565
+ }
4566
+ }
4567
+ /**
4568
+ * Complete UTC date context. Replaces the saved context on PATCH. Funnel and
4569
+ * Journey tiles support up to 91 inclusive days; Insights retain their native
4570
+ * range limit.
4571
+ */
4572
+ interface ReportContext {
4573
+ dateRange: ReportContext.UnionMember0 | ReportContext.UnionMember1;
4574
+ }
4575
+ namespace ReportContext {
4576
+ interface UnionMember0 {
4577
+ from: string;
4578
+ to: string;
4579
+ timeZone?: 'UTC';
4580
+ }
4581
+ interface UnionMember1 {
4582
+ preset: 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days' | 'last_12_months' | 'week_to_date' | 'month_to_date' | 'year_to_date';
4583
+ timeZone?: 'UTC';
4584
+ }
4585
+ }
4586
+ interface UnionMember0 {
4587
+ id: string;
4588
+ layout: UnionMember0.Layout;
4589
+ report: UnionMember0.Report;
4590
+ }
4591
+ namespace UnionMember0 {
4592
+ interface Layout {
4593
+ height: number;
4594
+ width: number;
4595
+ }
4596
+ interface Report {
4597
+ id: string;
4598
+ kind: 'insight' | 'funnel' | 'journey';
4599
+ }
4600
+ }
4601
+ interface UnionMember1 {
4602
+ id: string;
4603
+ layout: UnionMember1.Layout;
4604
+ text: UnionMember1.Text;
4605
+ }
4606
+ namespace UnionMember1 {
4607
+ interface Layout {
4608
+ height: number;
4609
+ width: number;
4610
+ }
4611
+ interface Text {
4612
+ markdown: string;
4613
+ }
4614
+ }
4615
+ interface UnionMember2 {
4616
+ id: string;
4617
+ layout: UnionMember2.Layout;
4618
+ replays: UnionMember2.Replays;
4619
+ }
4620
+ namespace UnionMember2 {
4621
+ interface Layout {
4622
+ height: number;
4623
+ width: number;
4624
+ }
4625
+ interface Replays {
4626
+ limit: number;
4627
+ eventName?: string;
4628
+ filter?: Replays.Filter;
4629
+ pathname?: string;
4630
+ title?: string;
4631
+ }
4632
+ namespace Replays {
4633
+ interface Filter {
4634
+ filter: Filter.UnionMember0 | Filter.UnionMember1 | Filter.UnionMember2;
4635
+ version: 1;
4636
+ }
4637
+ namespace Filter {
4638
+ interface UnionMember0 {
4639
+ children: Array<unknown>;
4640
+ kind: 'and' | 'or';
4641
+ }
4642
+ interface UnionMember1 {
4643
+ child: unknown;
4644
+ kind: 'not';
4645
+ }
4646
+ interface UnionMember2 {
4647
+ kind: 'predicate';
4648
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
4649
+ property: string;
4650
+ path?: Array<string>;
4651
+ type?: 'string' | 'number' | 'boolean';
4652
+ value?: string | number | boolean | Array<string | number | boolean>;
4653
+ }
4654
+ }
4655
+ }
4656
+ }
4657
+ }
4658
+ export interface DashboardDeleteParams {
4659
+ /**
4660
+ * Current revision from get_dashboard, list_dashboards, or the last write. A stale
4661
+ * revision returns 409; reload before retrying.
4662
+ */
4663
+ expectedRevision: string;
4664
+ }
4665
+ export interface DashboardDuplicateParams {
4666
+ /**
4667
+ * Current revision from get_dashboard, list_dashboards, or the last write. A stale
4668
+ * revision returns 409; reload before retrying.
4669
+ */
4670
+ expectedRevision: string;
4671
+ }
4672
+ export interface DashboardPreviewParams {
4673
+ /**
4674
+ * Required preview input: tileId, report { kind, id }, and context { from, to,
4675
+ * filter? }; comparison is optional. JSON-encode this object in the REST query
4676
+ * string; maximum 16384 bytes before URL encoding. Preview does not save a
4677
+ * Dashboard or change the report.
4678
+ */
4679
+ input: string;
4680
+ }
4681
+ export interface DashboardResultsParams {
4682
+ /**
4683
+ * Complete execution context: inclusive UTC from/to dates and an optional
4684
+ * temporary filter. Pass the saved Dashboard filter from get_dashboard to include
4685
+ * it; omitting filter applies only report-native filters. Resolve dates once for
4686
+ * every tile. This does not change the saved Dashboard or report.
4687
+ */
4688
+ context: string;
4689
+ /**
4690
+ * Current revision from get_dashboard, list_dashboards, or the last write. A stale
4691
+ * revision returns 409; reload before retrying.
4692
+ */
4693
+ expectedRevision: string;
4694
+ /**
4695
+ * Tile identifier from get_dashboard, or a new unique tile identifier for a report
4696
+ * preview.
4697
+ */
4698
+ tileId: string;
4699
+ /**
4700
+ * Temporary comparison for Insight tiles only. JSON-encoded in the REST query
4701
+ * string; never saved.
4702
+ */
4703
+ comparison?: string;
4704
+ }
4705
+ export interface DashboardReplayTileResultParams {
4706
+ /**
4707
+ * Complete execution context: inclusive UTC from/to dates and an optional
4708
+ * temporary filter, ANDed with the tile filter. Pass the saved Dashboard filter
4709
+ * from get_dashboard to include it. Dates older than the organization replay
4710
+ * retention are excluded and the window is limited to the most recent 61 days; the
4711
+ * response reports the effective window and warnings.
4712
+ */
4713
+ context: string;
4714
+ /**
4715
+ * Current revision from get_dashboard, list_dashboards, or the last write. A stale
4716
+ * revision returns 409; reload before retrying.
4717
+ */
4718
+ expectedRevision: string;
4719
+ /**
4720
+ * Tile identifier from get_dashboard, or a new unique tile identifier for a report
4721
+ * preview.
4722
+ */
4723
+ tileId: string;
4724
+ }
4725
+ export interface DashboardReplayPreviewParams {
4726
+ /**
4727
+ * Required preview input: tileId, replays { limit, title?, eventName?, pathname?,
4728
+ * filter? }, and context { from, to, filter? }. JSON-encode this object in the
4729
+ * REST query string; maximum 16384 bytes before URL encoding. Preview does not
4730
+ * save a Dashboard.
4731
+ */
4732
+ input: string;
4733
+ }
4734
+ export declare namespace Dashboards {
4735
+ export { type DashboardListResponse as DashboardListResponse, type DashboardCreateResponse as DashboardCreateResponse, type DashboardRetrieveResponse as DashboardRetrieveResponse, type DashboardUpdateResponse as DashboardUpdateResponse, type DashboardDeleteResponse as DashboardDeleteResponse, type DashboardDuplicateResponse as DashboardDuplicateResponse, type DashboardPreviewResponse as DashboardPreviewResponse, type DashboardResultsResponse as DashboardResultsResponse, type DashboardReplayTileResultResponse as DashboardReplayTileResultResponse, type DashboardReplayPreviewResponse as DashboardReplayPreviewResponse, type DashboardListResponsesCursor as DashboardListResponsesCursor, type DashboardListParams as DashboardListParams, type DashboardCreateParams as DashboardCreateParams, type DashboardUpdateParams as DashboardUpdateParams, type DashboardDeleteParams as DashboardDeleteParams, type DashboardDuplicateParams as DashboardDuplicateParams, type DashboardPreviewParams as DashboardPreviewParams, type DashboardResultsParams as DashboardResultsParams, type DashboardReplayTileResultParams as DashboardReplayTileResultParams, type DashboardReplayPreviewParams as DashboardReplayPreviewParams, };
4736
+ }
4737
+ //# sourceMappingURL=dashboards.d.ts.map