@pomeloanalytics/api 0.0.0-stage → 0.1.0-beta.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.
@@ -0,0 +1,1887 @@
1
+ export interface paths {
2
+ "/v1/goals": {
3
+ parameters: {
4
+ query?: never;
5
+ header?: never;
6
+ path?: never;
7
+ cookie?: never;
8
+ };
9
+ /**
10
+ * List goals configured for a site
11
+ * @description Read-only goal listing. Goals are created and managed from the Pomelo dashboard,
12
+ * then exposed here for API consumers. This endpoint is not metered.
13
+ */
14
+ get: {
15
+ parameters: {
16
+ query: {
17
+ site_id: components["parameters"]["SiteId"];
18
+ };
19
+ header?: {
20
+ /** @description Optional idempotency/request correlation identifier. */
21
+ "X-Request-Id"?: components["parameters"]["RequestIdHeader"];
22
+ };
23
+ path?: never;
24
+ cookie?: never;
25
+ };
26
+ requestBody?: never;
27
+ responses: {
28
+ /** @description OK */
29
+ 200: {
30
+ headers: {
31
+ "X-Request-Id": components["headers"]["XRequestId"];
32
+ [name: string]: unknown;
33
+ };
34
+ content: {
35
+ "application/json": components["schemas"]["GoalListResponse"];
36
+ };
37
+ };
38
+ 401: components["responses"]["Unauthorized"];
39
+ 403: components["responses"]["Forbidden"];
40
+ 422: components["responses"]["InvalidParams"];
41
+ 429: components["responses"]["RateLimited"];
42
+ };
43
+ };
44
+ put?: never;
45
+ post?: never;
46
+ delete?: never;
47
+ options?: never;
48
+ head?: never;
49
+ patch?: never;
50
+ trace?: never;
51
+ };
52
+ "/v1/goals/conversions": {
53
+ parameters: {
54
+ query?: never;
55
+ header?: never;
56
+ path?: never;
57
+ cookie?: never;
58
+ };
59
+ /**
60
+ * Goal conversions over time range
61
+ * @description Read-only conversions for goals already configured in the Pomelo dashboard.
62
+ */
63
+ get: {
64
+ parameters: {
65
+ query: {
66
+ /** @description Compare current range against the previous equivalent period. */
67
+ compare?: components["parameters"]["CompareParam"];
68
+ /** @description Inclusive UTC start date (YYYY-MM-DD). Pass explicit from and to dates to bound the requested period. */
69
+ from?: components["parameters"]["FromDate"];
70
+ /** @description Number of rows returned by top lists for report endpoints. */
71
+ limit?: components["parameters"]["ReportLimit"];
72
+ site_id: components["parameters"]["SiteId"];
73
+ /**
74
+ * @description Stable tenant identifier. Use this for tenant-scoped analytics and
75
+ * tenant-scoped access control. `site_id` identifies the shared product,
76
+ * `tenant_id` identifies one tenant.
77
+ */
78
+ tenant_id?: components["parameters"]["TenantId"];
79
+ /** @description Inclusive UTC end date (`YYYY-MM-DD`). Defaults to today. */
80
+ to?: components["parameters"]["ToDate"];
81
+ /** @description Traffic segment to include. */
82
+ traffic?: components["parameters"]["TrafficParam"];
83
+ };
84
+ header?: {
85
+ /** @description Optional idempotency/request correlation identifier. */
86
+ "X-Request-Id"?: components["parameters"]["RequestIdHeader"];
87
+ };
88
+ path?: never;
89
+ cookie?: never;
90
+ };
91
+ requestBody?: never;
92
+ responses: {
93
+ /** @description OK */
94
+ 200: {
95
+ headers: {
96
+ "X-RateLimit-Limit": components["headers"]["XRateLimitLimit"];
97
+ "X-RateLimit-Remaining": components["headers"]["XRateLimitRemaining"];
98
+ "X-RateLimit-Reset": components["headers"]["XRateLimitReset"];
99
+ "X-Request-Id": components["headers"]["XRequestId"];
100
+ [name: string]: unknown;
101
+ };
102
+ content: {
103
+ "application/json": components["schemas"]["GoalsConversionsResponse"];
104
+ };
105
+ };
106
+ 401: components["responses"]["Unauthorized"];
107
+ 402: components["responses"]["HardCapReached"];
108
+ 403: components["responses"]["Forbidden"];
109
+ 409: components["responses"]["ReportAvailabilityConflict"];
110
+ 422: components["responses"]["InvalidParams"];
111
+ 429: components["responses"]["RateLimited"];
112
+ 503: components["responses"]["AnalyticsUnavailable"];
113
+ };
114
+ };
115
+ put?: never;
116
+ post?: never;
117
+ delete?: never;
118
+ options?: never;
119
+ head?: never;
120
+ patch?: never;
121
+ trace?: never;
122
+ };
123
+ "/v1/me": {
124
+ parameters: {
125
+ query?: never;
126
+ header?: never;
127
+ path?: never;
128
+ cookie?: never;
129
+ };
130
+ /** Current API principal and plan limits */
131
+ get: {
132
+ parameters: {
133
+ query?: never;
134
+ header?: {
135
+ /** @description Optional idempotency/request correlation identifier. */
136
+ "X-Request-Id"?: components["parameters"]["RequestIdHeader"];
137
+ };
138
+ path?: never;
139
+ cookie?: never;
140
+ };
141
+ requestBody?: never;
142
+ responses: {
143
+ /** @description OK */
144
+ 200: {
145
+ headers: {
146
+ "X-RateLimit-Limit": components["headers"]["XRateLimitLimit"];
147
+ "X-RateLimit-Remaining": components["headers"]["XRateLimitRemaining"];
148
+ "X-RateLimit-Reset": components["headers"]["XRateLimitReset"];
149
+ "X-Request-Id": components["headers"]["XRequestId"];
150
+ [name: string]: unknown;
151
+ };
152
+ content: {
153
+ "application/json": components["schemas"]["MeResponse"];
154
+ };
155
+ };
156
+ 401: components["responses"]["Unauthorized"];
157
+ 429: components["responses"]["RateLimited"];
158
+ };
159
+ };
160
+ put?: never;
161
+ post?: never;
162
+ delete?: never;
163
+ options?: never;
164
+ head?: never;
165
+ patch?: never;
166
+ trace?: never;
167
+ };
168
+ "/v1/metrics/breakdown": {
169
+ parameters: {
170
+ query?: never;
171
+ header?: never;
172
+ path?: never;
173
+ cookie?: never;
174
+ };
175
+ /** Query metrics grouped by dimension */
176
+ get: {
177
+ parameters: {
178
+ query: {
179
+ /**
180
+ * @description Grouping dimension for breakdown endpoint.
181
+ * When `dimension=tenant`, rows are grouped by stable `tenant_id`. The
182
+ * response also includes `tenant_slug` and `tenant_name` as display labels.
183
+ */
184
+ dimension?: components["parameters"]["BreakdownDimension"];
185
+ /**
186
+ * @description JSON object serialized as string, example:
187
+ * `{"device":"mobile","referrer":"google.com"}`.
188
+ */
189
+ filters?: components["parameters"]["Filters"];
190
+ /** @description Inclusive UTC start date (YYYY-MM-DD). Pass explicit from and to dates to bound the requested period. */
191
+ from?: components["parameters"]["FromDate"];
192
+ /** @description Number of rows returned by breakdown endpoint. */
193
+ limit?: components["parameters"]["BreakdownLimit"];
194
+ /**
195
+ * @description Metric to aggregate (default `pageviews`). `sessions` uses the same
196
+ * visit model as the dashboard: a `visit_id` starts from the
197
+ * privacy-preserving daily visitor key and is split after 30 minutes of
198
+ * inactivity.
199
+ */
200
+ metric?: components["parameters"]["Metric"];
201
+ site_id: components["parameters"]["SiteId"];
202
+ /**
203
+ * @description Stable tenant identifier. Use this for tenant-scoped analytics and
204
+ * tenant-scoped access control. `site_id` identifies the shared product,
205
+ * `tenant_id` identifies one tenant.
206
+ */
207
+ tenant_id?: components["parameters"]["TenantId"];
208
+ /** @description Inclusive UTC end date (`YYYY-MM-DD`). Defaults to today. */
209
+ to?: components["parameters"]["ToDate"];
210
+ };
211
+ header?: {
212
+ /** @description Optional idempotency/request correlation identifier. */
213
+ "X-Request-Id"?: components["parameters"]["RequestIdHeader"];
214
+ };
215
+ path?: never;
216
+ cookie?: never;
217
+ };
218
+ requestBody?: never;
219
+ responses: {
220
+ /** @description OK */
221
+ 200: {
222
+ headers: {
223
+ "X-RateLimit-Limit": components["headers"]["XRateLimitLimit"];
224
+ "X-RateLimit-Remaining": components["headers"]["XRateLimitRemaining"];
225
+ "X-RateLimit-Reset": components["headers"]["XRateLimitReset"];
226
+ "X-Request-Id": components["headers"]["XRequestId"];
227
+ [name: string]: unknown;
228
+ };
229
+ content: {
230
+ "application/json": components["schemas"]["BreakdownResponse"];
231
+ };
232
+ };
233
+ 401: components["responses"]["Unauthorized"];
234
+ 402: components["responses"]["HardCapReached"];
235
+ 403: components["responses"]["Forbidden"];
236
+ 409: components["responses"]["ReportAvailabilityConflict"];
237
+ 422: components["responses"]["InvalidParams"];
238
+ 429: components["responses"]["RateLimited"];
239
+ 503: components["responses"]["AnalyticsUnavailable"];
240
+ };
241
+ };
242
+ put?: never;
243
+ post?: never;
244
+ delete?: never;
245
+ options?: never;
246
+ head?: never;
247
+ patch?: never;
248
+ trace?: never;
249
+ };
250
+ "/v1/metrics/timeseries": {
251
+ parameters: {
252
+ query?: never;
253
+ header?: never;
254
+ path?: never;
255
+ cookie?: never;
256
+ };
257
+ /** Query metrics as timeseries points */
258
+ get: {
259
+ parameters: {
260
+ query: {
261
+ /**
262
+ * @description JSON object serialized as string, example:
263
+ * `{"device":"mobile","referrer":"google.com"}`.
264
+ */
265
+ filters?: components["parameters"]["Filters"];
266
+ /** @description Inclusive UTC start date (YYYY-MM-DD). Pass explicit from and to dates to bound the requested period. */
267
+ from?: components["parameters"]["FromDate"];
268
+ /** @description Granularity (`hour` can require higher plan). */
269
+ interval?: components["parameters"]["Interval"];
270
+ /**
271
+ * @description Metric to aggregate (default `pageviews`). `sessions` uses the same
272
+ * visit model as the dashboard: a `visit_id` starts from the
273
+ * privacy-preserving daily visitor key and is split after 30 minutes of
274
+ * inactivity.
275
+ */
276
+ metric?: components["parameters"]["Metric"];
277
+ site_id: components["parameters"]["SiteId"];
278
+ /**
279
+ * @description Stable tenant identifier. Use this for tenant-scoped analytics and
280
+ * tenant-scoped access control. `site_id` identifies the shared product,
281
+ * `tenant_id` identifies one tenant.
282
+ */
283
+ tenant_id?: components["parameters"]["TenantId"];
284
+ /** @description Inclusive UTC end date (`YYYY-MM-DD`). Defaults to today. */
285
+ to?: components["parameters"]["ToDate"];
286
+ };
287
+ header?: {
288
+ /** @description Optional idempotency/request correlation identifier. */
289
+ "X-Request-Id"?: components["parameters"]["RequestIdHeader"];
290
+ };
291
+ path?: never;
292
+ cookie?: never;
293
+ };
294
+ requestBody?: never;
295
+ responses: {
296
+ /** @description OK */
297
+ 200: {
298
+ headers: {
299
+ "X-RateLimit-Limit": components["headers"]["XRateLimitLimit"];
300
+ "X-RateLimit-Remaining": components["headers"]["XRateLimitRemaining"];
301
+ "X-RateLimit-Reset": components["headers"]["XRateLimitReset"];
302
+ "X-Request-Id": components["headers"]["XRequestId"];
303
+ [name: string]: unknown;
304
+ };
305
+ content: {
306
+ "application/json": components["schemas"]["TimeseriesResponse"];
307
+ };
308
+ };
309
+ 401: components["responses"]["Unauthorized"];
310
+ 402: components["responses"]["HardCapReached"];
311
+ 403: components["responses"]["Forbidden"];
312
+ 409: components["responses"]["ReportAvailabilityConflict"];
313
+ 422: components["responses"]["InvalidParams"];
314
+ 429: components["responses"]["RateLimited"];
315
+ 503: components["responses"]["AnalyticsUnavailable"];
316
+ };
317
+ };
318
+ put?: never;
319
+ post?: never;
320
+ delete?: never;
321
+ options?: never;
322
+ head?: never;
323
+ patch?: never;
324
+ trace?: never;
325
+ };
326
+ "/v1/reports/acquisition": {
327
+ parameters: {
328
+ query?: never;
329
+ header?: never;
330
+ path?: never;
331
+ cookie?: never;
332
+ };
333
+ /**
334
+ * Acquisition channels, referrers, and landing pages
335
+ * @description Mixed route family. The strict-safe slice exposes channels, host-only
336
+ * referrers, and landing pages. Attribution slices such as sources,
337
+ * mediums, and campaigns remain profile-gated. Read
338
+ * `availability.readModel` for the route split, then inspect
339
+ * `availability.sections` as `acquisition_attribution`.
340
+ * When report include selection is enabled, `include` selects the response
341
+ * depth and omission selects `summary`. Otherwise, `include` is ignored
342
+ * and the handler uses `full`.
343
+ * `include=summary` returns `current.channels`, coverage and mix timeseries.
344
+ * `full` returns `current.by_channel` and top lists. `details` returns
345
+ * dimensions, landing pages and optional goal impact; it is a distinct
346
+ * Acquisition variant, not the Content alias for full.
347
+ */
348
+ get: {
349
+ parameters: {
350
+ query: {
351
+ /** @description Compare current range against the previous equivalent period. */
352
+ compare?: components["parameters"]["CompareParam"];
353
+ /** @description Inclusive UTC start date (YYYY-MM-DD). Pass explicit from and to dates to bound the requested period. */
354
+ from?: components["parameters"]["FromDate"];
355
+ /** @description Report depth for Acquisition and Actions. When report include selection is enabled, omission selects summary; otherwise the handler uses full even when include is supplied. No unconditional default is declared here. */
356
+ include?: components["parameters"]["ReportInclude"];
357
+ /** @description Number of rows returned by top lists for report endpoints. */
358
+ limit?: components["parameters"]["ReportLimit"];
359
+ site_id: components["parameters"]["SiteId"];
360
+ /**
361
+ * @description Stable tenant identifier. Use this for tenant-scoped analytics and
362
+ * tenant-scoped access control. `site_id` identifies the shared product,
363
+ * `tenant_id` identifies one tenant.
364
+ */
365
+ tenant_id?: components["parameters"]["TenantId"];
366
+ /** @description Inclusive UTC end date (`YYYY-MM-DD`). Defaults to today. */
367
+ to?: components["parameters"]["ToDate"];
368
+ /** @description Traffic segment to include. */
369
+ traffic?: components["parameters"]["TrafficParam"];
370
+ };
371
+ header?: {
372
+ /** @description Optional idempotency/request correlation identifier. */
373
+ "X-Request-Id"?: components["parameters"]["RequestIdHeader"];
374
+ };
375
+ path?: never;
376
+ cookie?: never;
377
+ };
378
+ requestBody?: never;
379
+ responses: {
380
+ /**
381
+ * @description OK. Mixed route: the strict-safe acquisition slice succeeded.
382
+ * `availability.readModel` shows what belongs to the strict-safe
383
+ * baseline, while `availability.sections` reports whether
384
+ * `acquisition_attribution` remains locked or only partially
385
+ * compatible for the requested period.
386
+ */
387
+ 200: {
388
+ headers: {
389
+ "X-RateLimit-Limit": components["headers"]["XRateLimitLimit"];
390
+ "X-RateLimit-Remaining": components["headers"]["XRateLimitRemaining"];
391
+ "X-RateLimit-Reset": components["headers"]["XRateLimitReset"];
392
+ "X-Request-Id": components["headers"]["XRequestId"];
393
+ [name: string]: unknown;
394
+ };
395
+ content: {
396
+ "application/json": components["schemas"]["AcquisitionReportResponse"];
397
+ };
398
+ };
399
+ 401: components["responses"]["Unauthorized"];
400
+ 402: components["responses"]["HardCapReached"];
401
+ 403: components["responses"]["Forbidden"];
402
+ 422: components["responses"]["InvalidParams"];
403
+ 429: components["responses"]["RateLimited"];
404
+ 503: components["responses"]["AnalyticsUnavailable"];
405
+ };
406
+ };
407
+ put?: never;
408
+ post?: never;
409
+ delete?: never;
410
+ options?: never;
411
+ head?: never;
412
+ patch?: never;
413
+ trace?: never;
414
+ };
415
+ "/v1/reports/actions": {
416
+ parameters: {
417
+ query?: never;
418
+ header?: never;
419
+ path?: never;
420
+ cookie?: never;
421
+ };
422
+ /**
423
+ * Simple action report with advanced families gated by profile
424
+ * @description Mixed route family. The strict-safe slice covers bounded simple actions
425
+ * (`ui.click`, `outbound.click`, `file.download`, `form.submit`). Richer
426
+ * families such as goals, errors, and custom events remain profile-gated
427
+ * and are marked through `availability.sections` as `actions_advanced`.
428
+ * Use `availability.readModel` to distinguish the stable baseline from
429
+ * the enriched families unlocked by `Extended`.
430
+ * When report include selection is enabled, `include` selects the response
431
+ * depth and omission selects `summary`. Otherwise, `include` is ignored
432
+ * and the handler uses `full`.
433
+ * `include=summary` keeps aggregate families and timeseries and leaves
434
+ * action/context detail lists empty. `full` and `details` request those
435
+ * detail rows using the same Actions response schema.
436
+ */
437
+ get: {
438
+ parameters: {
439
+ query: {
440
+ /** @description Filter action reports by normalized action family. */
441
+ action_family?: components["parameters"]["ActionFamily"];
442
+ /** @description Filter action reports by normalized action key. */
443
+ action_key?: components["parameters"]["ActionKey"];
444
+ /** @description Compare current range against the previous equivalent period. */
445
+ compare?: components["parameters"]["CompareParam"];
446
+ /** @description Inclusive UTC start date (YYYY-MM-DD). Pass explicit from and to dates to bound the requested period. */
447
+ from?: components["parameters"]["FromDate"];
448
+ /** @description Report depth for Acquisition and Actions. When report include selection is enabled, omission selects summary; otherwise the handler uses full even when include is supplied. No unconditional default is declared here. */
449
+ include?: components["parameters"]["ReportInclude"];
450
+ /** @description Number of rows returned by top lists for report endpoints. */
451
+ limit?: components["parameters"]["ReportLimit"];
452
+ site_id: components["parameters"]["SiteId"];
453
+ /**
454
+ * @description Stable tenant identifier. Use this for tenant-scoped analytics and
455
+ * tenant-scoped access control. `site_id` identifies the shared product,
456
+ * `tenant_id` identifies one tenant.
457
+ */
458
+ tenant_id?: components["parameters"]["TenantId"];
459
+ /** @description Inclusive UTC end date (`YYYY-MM-DD`). Defaults to today. */
460
+ to?: components["parameters"]["ToDate"];
461
+ /** @description Traffic segment to include. */
462
+ traffic?: components["parameters"]["TrafficParam"];
463
+ };
464
+ header?: {
465
+ /** @description Optional idempotency/request correlation identifier. */
466
+ "X-Request-Id"?: components["parameters"]["RequestIdHeader"];
467
+ };
468
+ path?: never;
469
+ cookie?: never;
470
+ };
471
+ requestBody?: never;
472
+ responses: {
473
+ /**
474
+ * @description OK. Mixed route: the strict-safe bounded action slice succeeded.
475
+ * `availability.readModel` shows what belongs to the strict-safe
476
+ * baseline, while `availability.sections` reports whether
477
+ * `actions_advanced` remains locked or only partially compatible
478
+ * for the requested period.
479
+ */
480
+ 200: {
481
+ headers: {
482
+ "X-RateLimit-Limit": components["headers"]["XRateLimitLimit"];
483
+ "X-RateLimit-Remaining": components["headers"]["XRateLimitRemaining"];
484
+ "X-RateLimit-Reset": components["headers"]["XRateLimitReset"];
485
+ "X-Request-Id": components["headers"]["XRequestId"];
486
+ [name: string]: unknown;
487
+ };
488
+ content: {
489
+ "application/json": components["schemas"]["ActionsReportResponse"];
490
+ };
491
+ };
492
+ 401: components["responses"]["Unauthorized"];
493
+ 402: components["responses"]["HardCapReached"];
494
+ 403: components["responses"]["Forbidden"];
495
+ 422: components["responses"]["InvalidParams"];
496
+ 429: components["responses"]["RateLimited"];
497
+ 503: components["responses"]["AnalyticsUnavailable"];
498
+ };
499
+ };
500
+ put?: never;
501
+ post?: never;
502
+ delete?: never;
503
+ options?: never;
504
+ head?: never;
505
+ patch?: never;
506
+ trace?: never;
507
+ };
508
+ "/v1/reports/content": {
509
+ parameters: {
510
+ query?: never;
511
+ header?: never;
512
+ path?: never;
513
+ cookie?: never;
514
+ };
515
+ /**
516
+ * Content report
517
+ * @description `summary` supports 1-365 inclusive UTC days. `full` and its deprecated
518
+ * `details` alias support 1-90 days. Comparison supports at most 30 days
519
+ * in either mode. Responses are never truncated: if the serialized proxy
520
+ * response would exceed 5 MiB, the request returns HTTP 422 with
521
+ * `REPORT_RESPONSE_TOO_LARGE` and consumes zero metered units. Detailed
522
+ * exports beyond 90 days are not provided synchronously by this endpoint.
523
+ */
524
+ get: {
525
+ parameters: {
526
+ query: {
527
+ /** @description Compare current range against the previous equivalent period. */
528
+ compare?: components["parameters"]["CompareParam"];
529
+ /** @description Inclusive UTC start date (YYYY-MM-DD). Pass explicit from and to dates to bound the requested period. */
530
+ from?: components["parameters"]["FromDate"];
531
+ /**
532
+ * @description Content response depth. `summary` returns totals and one global UTC
533
+ * pageview point per day; `limit` has no effect. `full` returns the
534
+ * detailed Content report. `details` is a deprecated alias for `full`.
535
+ * When omitted, ranges up to 90 days use `full`; ranges from 91 through
536
+ * 365 days use `summary`.
537
+ */
538
+ include?: components["parameters"]["ContentInclude"];
539
+ /** @description Number of rows returned by top lists for report endpoints. */
540
+ limit?: components["parameters"]["ReportLimit"];
541
+ site_id: components["parameters"]["SiteId"];
542
+ /**
543
+ * @description Stable tenant identifier. Use this for tenant-scoped analytics and
544
+ * tenant-scoped access control. `site_id` identifies the shared product,
545
+ * `tenant_id` identifies one tenant.
546
+ */
547
+ tenant_id?: components["parameters"]["TenantId"];
548
+ /** @description Inclusive UTC end date (`YYYY-MM-DD`). Defaults to today. */
549
+ to?: components["parameters"]["ToDate"];
550
+ /** @description Traffic segment to include. */
551
+ traffic?: components["parameters"]["TrafficParam"];
552
+ };
553
+ header?: {
554
+ /** @description Optional idempotency/request correlation identifier. */
555
+ "X-Request-Id"?: components["parameters"]["RequestIdHeader"];
556
+ };
557
+ path?: never;
558
+ cookie?: never;
559
+ };
560
+ requestBody?: never;
561
+ responses: {
562
+ /** @description OK */
563
+ 200: {
564
+ headers: {
565
+ "X-RateLimit-Limit": components["headers"]["XRateLimitLimit"];
566
+ "X-RateLimit-Remaining": components["headers"]["XRateLimitRemaining"];
567
+ "X-RateLimit-Reset": components["headers"]["XRateLimitReset"];
568
+ "X-Request-Id": components["headers"]["XRequestId"];
569
+ [name: string]: unknown;
570
+ };
571
+ content: {
572
+ "application/json": components["schemas"]["ContentReportResponse"];
573
+ };
574
+ };
575
+ 401: components["responses"]["Unauthorized"];
576
+ 402: components["responses"]["HardCapReached"];
577
+ 403: components["responses"]["Forbidden"];
578
+ 422: components["responses"]["InvalidParams"];
579
+ 429: components["responses"]["RateLimited"];
580
+ 503: components["responses"]["AnalyticsUnavailable"];
581
+ };
582
+ };
583
+ put?: never;
584
+ post?: never;
585
+ delete?: never;
586
+ options?: never;
587
+ head?: never;
588
+ patch?: never;
589
+ trace?: never;
590
+ };
591
+ "/v1/reports/overview": {
592
+ parameters: {
593
+ query?: never;
594
+ header?: never;
595
+ path?: never;
596
+ cookie?: never;
597
+ };
598
+ /**
599
+ * Consolidated site overview
600
+ * @description Mixed route family. In `Strict`, the response still includes the
601
+ * strict-safe overview baseline plus an acquisition-lite preview built
602
+ * from channels, host-only referrers, and landing pages. Read
603
+ * `availability.readModel` for the baseline split, then inspect
604
+ * `availability.sections` for enriched slices that remain locked.
605
+ */
606
+ get: {
607
+ parameters: {
608
+ query: {
609
+ /** @description Compare current range against the previous equivalent period. */
610
+ compare?: components["parameters"]["CompareParam"];
611
+ /** @description Inclusive UTC start date (YYYY-MM-DD). Pass explicit from and to dates to bound the requested period. */
612
+ from?: components["parameters"]["FromDate"];
613
+ /** @description Number of rows returned by top lists for report endpoints. */
614
+ limit?: components["parameters"]["ReportLimit"];
615
+ site_id: components["parameters"]["SiteId"];
616
+ /**
617
+ * @description Stable tenant identifier. Use this for tenant-scoped analytics and
618
+ * tenant-scoped access control. `site_id` identifies the shared product,
619
+ * `tenant_id` identifies one tenant.
620
+ */
621
+ tenant_id?: components["parameters"]["TenantId"];
622
+ /** @description Inclusive UTC end date (`YYYY-MM-DD`). Defaults to today. */
623
+ to?: components["parameters"]["ToDate"];
624
+ /** @description Traffic segment to include. */
625
+ traffic?: components["parameters"]["TrafficParam"];
626
+ };
627
+ header?: {
628
+ /** @description Optional idempotency/request correlation identifier. */
629
+ "X-Request-Id"?: components["parameters"]["RequestIdHeader"];
630
+ };
631
+ path?: never;
632
+ cookie?: never;
633
+ };
634
+ requestBody?: never;
635
+ responses: {
636
+ /**
637
+ * @description OK. Mixed route: the strict-safe overview slice succeeded. Inspect
638
+ * `availability.sections` for enriched or geo-detail sections that
639
+ * remain locked or only partially compatible.
640
+ */
641
+ 200: {
642
+ headers: {
643
+ "X-RateLimit-Limit": components["headers"]["XRateLimitLimit"];
644
+ "X-RateLimit-Remaining": components["headers"]["XRateLimitRemaining"];
645
+ "X-RateLimit-Reset": components["headers"]["XRateLimitReset"];
646
+ "X-Request-Id": components["headers"]["XRequestId"];
647
+ [name: string]: unknown;
648
+ };
649
+ content: {
650
+ "application/json": components["schemas"]["OverviewReportResponse"];
651
+ };
652
+ };
653
+ 401: components["responses"]["Unauthorized"];
654
+ 402: components["responses"]["HardCapReached"];
655
+ 403: components["responses"]["Forbidden"];
656
+ 422: components["responses"]["InvalidParams"];
657
+ 429: components["responses"]["RateLimited"];
658
+ 503: components["responses"]["AnalyticsUnavailable"];
659
+ };
660
+ };
661
+ put?: never;
662
+ post?: never;
663
+ delete?: never;
664
+ options?: never;
665
+ head?: never;
666
+ patch?: never;
667
+ trace?: never;
668
+ };
669
+ "/v1/sites": {
670
+ parameters: {
671
+ query?: never;
672
+ header?: never;
673
+ path?: never;
674
+ cookie?: never;
675
+ };
676
+ /** List accessible sites for this token */
677
+ get: {
678
+ parameters: {
679
+ query?: never;
680
+ header?: {
681
+ /** @description Optional idempotency/request correlation identifier. */
682
+ "X-Request-Id"?: components["parameters"]["RequestIdHeader"];
683
+ };
684
+ path?: never;
685
+ cookie?: never;
686
+ };
687
+ requestBody?: never;
688
+ responses: {
689
+ /** @description OK */
690
+ 200: {
691
+ headers: {
692
+ "X-Request-Id": components["headers"]["XRequestId"];
693
+ [name: string]: unknown;
694
+ };
695
+ content: {
696
+ "application/json": components["schemas"]["SitesResponse"];
697
+ };
698
+ };
699
+ 401: components["responses"]["Unauthorized"];
700
+ 429: components["responses"]["RateLimited"];
701
+ };
702
+ };
703
+ put?: never;
704
+ post?: never;
705
+ delete?: never;
706
+ options?: never;
707
+ head?: never;
708
+ patch?: never;
709
+ trace?: never;
710
+ };
711
+ "/v1/tenants": {
712
+ parameters: {
713
+ query?: never;
714
+ header?: never;
715
+ path?: never;
716
+ cookie?: never;
717
+ };
718
+ /**
719
+ * List accessible tenants for a site
720
+ * @description Returns all active tenants accessible for the requested `site_id`.
721
+ */
722
+ get: {
723
+ parameters: {
724
+ query: {
725
+ site_id: components["parameters"]["SiteId"];
726
+ };
727
+ header?: {
728
+ /** @description Optional idempotency/request correlation identifier. */
729
+ "X-Request-Id"?: components["parameters"]["RequestIdHeader"];
730
+ };
731
+ path?: never;
732
+ cookie?: never;
733
+ };
734
+ requestBody?: never;
735
+ responses: {
736
+ /** @description OK */
737
+ 200: {
738
+ headers: {
739
+ "X-Request-Id": components["headers"]["XRequestId"];
740
+ [name: string]: unknown;
741
+ };
742
+ content: {
743
+ "application/json": components["schemas"]["TenantsResponse"];
744
+ };
745
+ };
746
+ 401: components["responses"]["Unauthorized"];
747
+ 403: components["responses"]["Forbidden"];
748
+ 422: components["responses"]["InvalidParams"];
749
+ 429: components["responses"]["RateLimited"];
750
+ };
751
+ };
752
+ put?: never;
753
+ post?: never;
754
+ delete?: never;
755
+ options?: never;
756
+ head?: never;
757
+ patch?: never;
758
+ trace?: never;
759
+ };
760
+ "/v1/usage/current": {
761
+ parameters: {
762
+ query?: never;
763
+ header?: never;
764
+ path?: never;
765
+ cookie?: never;
766
+ };
767
+ /**
768
+ * Current billing period usage
769
+ * @description Requires `usage:read` scope. Tokens with `metrics:read` also
770
+ * have implicit access to this endpoint.
771
+ */
772
+ get: {
773
+ parameters: {
774
+ query?: never;
775
+ header?: {
776
+ /** @description Optional idempotency/request correlation identifier. */
777
+ "X-Request-Id"?: components["parameters"]["RequestIdHeader"];
778
+ };
779
+ path?: never;
780
+ cookie?: never;
781
+ };
782
+ requestBody?: never;
783
+ responses: {
784
+ /** @description OK */
785
+ 200: {
786
+ headers: {
787
+ "X-Request-Id": components["headers"]["XRequestId"];
788
+ [name: string]: unknown;
789
+ };
790
+ content: {
791
+ "application/json": components["schemas"]["UsageCurrentResponse"];
792
+ };
793
+ };
794
+ 401: components["responses"]["Unauthorized"];
795
+ 403: components["responses"]["Forbidden"];
796
+ 429: components["responses"]["RateLimited"];
797
+ };
798
+ };
799
+ put?: never;
800
+ post?: never;
801
+ delete?: never;
802
+ options?: never;
803
+ head?: never;
804
+ patch?: never;
805
+ trace?: never;
806
+ };
807
+ "/v1/usage/history": {
808
+ parameters: {
809
+ query?: never;
810
+ header?: never;
811
+ path?: never;
812
+ cookie?: never;
813
+ };
814
+ /**
815
+ * Usage history by month
816
+ * @description Requires `usage:read` scope. Tokens with `metrics:read` also
817
+ * have implicit access to this endpoint.
818
+ */
819
+ get: {
820
+ parameters: {
821
+ query?: {
822
+ /** @description Inclusive UTC start date (YYYY-MM-DD). Pass explicit from and to dates to bound the requested period. */
823
+ from?: components["parameters"]["FromDate"];
824
+ /** @description Inclusive UTC end date (`YYYY-MM-DD`). Defaults to today. */
825
+ to?: components["parameters"]["ToDate"];
826
+ };
827
+ header?: {
828
+ /** @description Optional idempotency/request correlation identifier. */
829
+ "X-Request-Id"?: components["parameters"]["RequestIdHeader"];
830
+ };
831
+ path?: never;
832
+ cookie?: never;
833
+ };
834
+ requestBody?: never;
835
+ responses: {
836
+ /** @description OK */
837
+ 200: {
838
+ headers: {
839
+ "X-Request-Id": components["headers"]["XRequestId"];
840
+ [name: string]: unknown;
841
+ };
842
+ content: {
843
+ "application/json": components["schemas"]["UsageHistoryResponse"];
844
+ };
845
+ };
846
+ 401: components["responses"]["Unauthorized"];
847
+ 403: components["responses"]["Forbidden"];
848
+ 422: components["responses"]["InvalidParams"];
849
+ 429: components["responses"]["RateLimited"];
850
+ };
851
+ };
852
+ put?: never;
853
+ post?: never;
854
+ delete?: never;
855
+ options?: never;
856
+ head?: never;
857
+ patch?: never;
858
+ trace?: never;
859
+ };
860
+ }
861
+ export type webhooks = Record<string, never>;
862
+ export interface components {
863
+ schemas: {
864
+ AcquisitionChannelItem: {
865
+ /** @enum {string} */
866
+ channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
867
+ sessions: number;
868
+ };
869
+ AcquisitionCoverage: {
870
+ direct_sessions: number;
871
+ direct_share: number;
872
+ non_direct_sessions: number;
873
+ non_direct_share: number;
874
+ tagged_sessions: number;
875
+ tagged_share: number;
876
+ };
877
+ AcquisitionDetailsReportResponse: components["schemas"]["UserApiAcquisitionReportMeta"] & {
878
+ compare: components["schemas"]["UserApiAcquisitionDetailsCurrent"] | null;
879
+ current: components["schemas"]["UserApiAcquisitionDetailsCurrent"];
880
+ };
881
+ AcquisitionDimensionItem: components["schemas"]["AcquisitionSummaryTotals"] & {
882
+ favicon_url?: string | null;
883
+ share: number;
884
+ value: string;
885
+ };
886
+ AcquisitionFullReportResponse: components["schemas"]["UserApiAcquisitionEnvelope"] & {
887
+ meta: components["schemas"]["MeteredMeta"];
888
+ };
889
+ AcquisitionImpact: {
890
+ channels: {
891
+ /** @enum {string} */
892
+ channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
893
+ converted_sessions: number;
894
+ session_conversion_rate: number;
895
+ }[];
896
+ landing_pages: {
897
+ converted_sessions: number;
898
+ path_canon: string | null;
899
+ session_conversion_rate: number;
900
+ }[];
901
+ };
902
+ AcquisitionLandingPageSummaryItem: components["schemas"]["AcquisitionSummaryTotals"] & {
903
+ page_title?: string | null;
904
+ path_canon: string | null;
905
+ /** @enum {string} */
906
+ primary_channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
907
+ share: number;
908
+ };
909
+ /** @description Source response variants selected by the effective Acquisition include mode. Current and comparison use the same shape; availability and metering remain present in every variant. */
910
+ AcquisitionReportResponse: components["schemas"]["AcquisitionFullReportResponse"] | components["schemas"]["AcquisitionSummaryReportResponse"] | components["schemas"]["AcquisitionDetailsReportResponse"];
911
+ AcquisitionSummaryChannelItem: components["schemas"]["AcquisitionChannelItem"] & components["schemas"]["AcquisitionSummaryTotals"] & {
912
+ share: number;
913
+ };
914
+ AcquisitionSummaryReportResponse: components["schemas"]["UserApiAcquisitionReportMeta"] & {
915
+ compare: components["schemas"]["UserApiAcquisitionSummaryCurrent"] | null;
916
+ current: components["schemas"]["UserApiAcquisitionSummaryCurrent"];
917
+ };
918
+ AcquisitionSummaryTotals: {
919
+ avg_pages_per_session: number;
920
+ avg_session_eng_time_ms: number;
921
+ engagement_rate: number;
922
+ sessions: number;
923
+ };
924
+ ActionsCurrent: {
925
+ /**
926
+ * @description Exact action rows for the active envelope. On Strict sites, this
927
+ * list is limited to bounded simple actions and stays readable in
928
+ * HTTP `200`; advanced families remain section-gated.
929
+ */
930
+ actions: {
931
+ /** @description Stable element/action identifier when the action row can be narrowed by it. */
932
+ action_id?: string | null;
933
+ action_key: string;
934
+ action_name: string;
935
+ /** @description Target host when the action row can be narrowed by outbound or download target. */
936
+ action_target_host?: string | null;
937
+ event_name?: string | null;
938
+ /** @enum {string} */
939
+ family: "goals" | "forms" | "outbound" | "downloads" | "errors" | "custom" | "instrumentation";
940
+ /** @description Form action path when the form action row can be narrowed by it. */
941
+ form_action_path?: string | null;
942
+ /** @description Form identifier when the form action row can be narrowed by it. */
943
+ form_id?: string | null;
944
+ occurrences: number;
945
+ sessions: number;
946
+ top_page?: string | null;
947
+ /** @enum {string|null} */
948
+ top_source?: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other" | null;
949
+ }[];
950
+ /** @enum {string|null} */
951
+ active_family: "goals" | "forms" | "outbound" | "downloads" | "errors" | "custom" | "instrumentation" | null;
952
+ /**
953
+ * @description Shared breakdown context for the active action envelope. Advanced
954
+ * action families can remain unavailable even when the route itself
955
+ * succeeds; inspect `availability.sections`.
956
+ */
957
+ context: {
958
+ pages: {
959
+ path_canon?: string | null;
960
+ /** @enum {string} */
961
+ scope: "family" | "action";
962
+ sessions: number;
963
+ }[];
964
+ segments: {
965
+ /** @enum {string} */
966
+ kind: "device" | "country" | "browser";
967
+ label: string;
968
+ /** @enum {string} */
969
+ scope: "family" | "action";
970
+ sessions: number;
971
+ }[];
972
+ sources: {
973
+ /** @enum {string} */
974
+ channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
975
+ /** @enum {string} */
976
+ scope: "family" | "action";
977
+ sessions: number;
978
+ }[];
979
+ };
980
+ /**
981
+ * @description Family summary for the current action envelope. On Strict sites,
982
+ * simple bounded families remain available; richer families are
983
+ * exposed through `availability.sections` as `actions_advanced`.
984
+ */
985
+ families: {
986
+ /** @enum {string} */
987
+ family: "goals" | "forms" | "outbound" | "downloads" | "errors" | "custom" | "instrumentation";
988
+ occurrences: number;
989
+ sessions: number;
990
+ }[];
991
+ family_timeseries: {
992
+ /** Format: date */
993
+ date: string;
994
+ /** @enum {string} */
995
+ family: "goals" | "forms" | "outbound" | "downloads" | "errors" | "custom" | "instrumentation";
996
+ occurrences: number;
997
+ sessions: number;
998
+ }[];
999
+ goals_configured: boolean;
1000
+ timeseries: {
1001
+ /** Format: date */
1002
+ date: string;
1003
+ error_sessions: number;
1004
+ instrumentation_sessions: number;
1005
+ meaningful_action_sessions: number;
1006
+ meaningful_occurrences: number;
1007
+ total_sessions: number;
1008
+ }[];
1009
+ totals: {
1010
+ error_sessions: number;
1011
+ instrumentation_sessions: number;
1012
+ meaningful_action_sessions: number;
1013
+ meaningful_occurrences: number;
1014
+ total_sessions: number;
1015
+ };
1016
+ };
1017
+ ActionsReportResponse: components["schemas"]["UserApiActionsEnvelope"] & {
1018
+ meta: components["schemas"]["MeteredMeta"];
1019
+ };
1020
+ AnalyticsUnavailableErrorBody: {
1021
+ /** @enum {string} */
1022
+ code: "ANALYTICS_DB_TIMEOUT" | "ANALYTICS_DB_UNAVAILABLE";
1023
+ details?: {
1024
+ [key: string]: unknown;
1025
+ } | null;
1026
+ message: string;
1027
+ request_id: string;
1028
+ };
1029
+ AnalyticsUnavailableErrorResponse: {
1030
+ error: components["schemas"]["AnalyticsUnavailableErrorBody"];
1031
+ };
1032
+ BreakdownResponse: {
1033
+ availability: components["schemas"]["ReportAvailability"];
1034
+ meta: components["schemas"]["MeteredMeta"];
1035
+ rows: components["schemas"]["BreakdownRow"][];
1036
+ };
1037
+ BreakdownRow: {
1038
+ /**
1039
+ * @description Breakdown key. When `dimension=tenant`, this is the stable
1040
+ * `tenant_id`.
1041
+ */
1042
+ key: string;
1043
+ /** @description Stable tenant identifier for tenant breakdown rows. */
1044
+ tenant_id?: string | null;
1045
+ /** @description Current display name for tenant breakdown rows. */
1046
+ tenant_name?: string | null;
1047
+ /** @description Current routing slug for tenant breakdown rows. */
1048
+ tenant_slug?: string | null;
1049
+ value: number;
1050
+ };
1051
+ ContentFullCurrent: {
1052
+ entries?: {
1053
+ bounce_rate: number;
1054
+ entries: number;
1055
+ page_title?: string | null;
1056
+ path_canon: string | null;
1057
+ }[];
1058
+ exits?: {
1059
+ exit_rate: number;
1060
+ exits: number;
1061
+ page_title?: string | null;
1062
+ path_canon: string | null;
1063
+ }[];
1064
+ /** @enum {string} */
1065
+ include: "full";
1066
+ pages: {
1067
+ avg_page_eng_time_ms: number;
1068
+ avg_scroll_depth?: number | null;
1069
+ bounces: number;
1070
+ entries: number;
1071
+ exit_rate: number;
1072
+ exits: number;
1073
+ page_bounce_rate: number;
1074
+ page_title?: string | null;
1075
+ pageviews: number;
1076
+ path_canon: string | null;
1077
+ performance?: {
1078
+ p75_cls: number | null;
1079
+ p75_fcp?: number | null;
1080
+ p75_inp: number | null;
1081
+ p75_lcp: number | null;
1082
+ p75_ttfb: number | null;
1083
+ samples: number;
1084
+ } | null;
1085
+ unique_pageviews: number;
1086
+ }[];
1087
+ timeseries: {
1088
+ /** Format: date */
1089
+ date: string;
1090
+ pageviews: number;
1091
+ path_canon: string;
1092
+ }[];
1093
+ totals: components["schemas"]["ContentTotals"];
1094
+ };
1095
+ ContentFullReportResponse: components["schemas"]["UserApiContentFullEnvelope"] & {
1096
+ meta: components["schemas"]["MeteredMeta"];
1097
+ };
1098
+ /**
1099
+ * @description Discriminated response union selected by `current.include`. Current and
1100
+ * compare always use the same Content mode.
1101
+ */
1102
+ ContentReportResponse: components["schemas"]["ContentSummaryReportResponse"] | components["schemas"]["ContentFullReportResponse"];
1103
+ ContentSummaryCurrent: {
1104
+ /** @enum {string} */
1105
+ include: "summary";
1106
+ /**
1107
+ * @description Dense, strictly increasing UTC daily series. It contains exactly
1108
+ * one point per requested day, including zero-valued empty days, and
1109
+ * its pageview sum equals `totals.pageviews`.
1110
+ */
1111
+ timeseries: {
1112
+ /** Format: date */
1113
+ date: string;
1114
+ pageviews: number;
1115
+ }[];
1116
+ totals: components["schemas"]["ContentTotals"];
1117
+ };
1118
+ ContentSummaryReportResponse: components["schemas"]["UserApiContentSummaryEnvelope"] & {
1119
+ meta: components["schemas"]["MeteredMeta"];
1120
+ };
1121
+ ContentTotals: {
1122
+ avg_page_eng_time_ms: number;
1123
+ bounce_rate: number;
1124
+ entries: number;
1125
+ exit_rate: number;
1126
+ pageviews: number;
1127
+ unique_pageviews: number;
1128
+ };
1129
+ DerivedProductCapability: {
1130
+ /** @enum {string} */
1131
+ data_envelope: "strict" | "extended" | "mixed";
1132
+ /** @enum {string} */
1133
+ level: "none" | "limited" | "standard" | "guardrailed" | "advanced" | "custom";
1134
+ /** @enum {string} */
1135
+ maturity: "implemented" | "partially_implemented" | "not_explicitly_split" | "not_applicable";
1136
+ notes: string[];
1137
+ };
1138
+ EffectiveProductCapabilities: {
1139
+ acquisition: components["schemas"]["DerivedProductCapability"];
1140
+ advanced_actions: components["schemas"]["DerivedProductCapability"];
1141
+ api: components["schemas"]["DerivedProductCapability"];
1142
+ collection: components["schemas"]["DerivedProductCapability"];
1143
+ dashboard_surfaces: string[];
1144
+ exports: components["schemas"]["DerivedProductCapability"];
1145
+ multi_tenant: components["schemas"]["DerivedProductCapability"];
1146
+ reports: components["schemas"]["DerivedProductCapability"];
1147
+ };
1148
+ ErrorBody: {
1149
+ /** @enum {string} */
1150
+ code: "UNAUTHORIZED" | "FORBIDDEN" | "INVALID_METHOD" | "INVALID_PARAMS" | "RETENTION_EXCEEDED" | "RATE_LIMITED" | "HARD_CAP_REACHED" | "REPORT_LOCKED_BY_PROFILE" | "REPORT_NOT_AVAILABLE_FOR_REQUESTED_PERIOD" | "REPORT_RESPONSE_TOO_LARGE" | "INTERNAL_ERROR" | "NOT_FOUND";
1151
+ details?: {
1152
+ [key: string]: unknown;
1153
+ } | null;
1154
+ message: string;
1155
+ request_id: string;
1156
+ };
1157
+ ErrorResponse: {
1158
+ error: components["schemas"]["ErrorBody"];
1159
+ };
1160
+ Goal: {
1161
+ /** Format: date-time */
1162
+ createdAt: string;
1163
+ filters?: components["schemas"]["UserApiGoalFilters"];
1164
+ goalId: string;
1165
+ /** @enum {string} */
1166
+ intent: "lead" | "signup" | "purchase" | "download" | "outbound" | "content" | "custom";
1167
+ name: string;
1168
+ orgId: string;
1169
+ pattern: string;
1170
+ siteId: string;
1171
+ /** @enum {string} */
1172
+ type: "PAGEVIEW_MATCH" | "EVENT_MATCH";
1173
+ /** Format: date-time */
1174
+ updatedAt: string;
1175
+ };
1176
+ GoalListResponse: {
1177
+ items: components["schemas"]["Goal"][];
1178
+ };
1179
+ GoalsConversionsCurrent: {
1180
+ goals: {
1181
+ conversions: number;
1182
+ goal_id: string;
1183
+ last_seen_at: string | null;
1184
+ total_sessions: number;
1185
+ unique_sessions: number;
1186
+ }[];
1187
+ };
1188
+ GoalsConversionsEnvelope: {
1189
+ availability: components["schemas"]["ReportAvailability"];
1190
+ compare: components["schemas"]["GoalsConversionsCurrent"] | null;
1191
+ current: components["schemas"]["GoalsConversionsCurrent"];
1192
+ range: components["schemas"]["Range"];
1193
+ };
1194
+ GoalsConversionsResponse: components["schemas"]["GoalsConversionsEnvelope"] & {
1195
+ meta: components["schemas"]["MeteredMeta"];
1196
+ };
1197
+ MeResponse: {
1198
+ /** Format: uri */
1199
+ docs_url: string;
1200
+ org_id: string;
1201
+ /**
1202
+ * @deprecated
1203
+ * @description Deprecated compatibility mirror of `product.runtime_plan_id`. The canonical product object is `product`. This field is retained for compatibility and must not be used by new integrations. It remains returned as a deprecated mirror; no sunset date has been announced.
1204
+ * @enum {string}
1205
+ */
1206
+ plan_id: "free" | "starter" | "pro";
1207
+ product: components["schemas"]["WorkspaceProductConfiguration"];
1208
+ quotas: components["schemas"]["Quotas"];
1209
+ rate_limits: {
1210
+ rps: number;
1211
+ };
1212
+ /**
1213
+ * @deprecated
1214
+ * @description Deprecated compatibility mirror of `product.product_retention.api_retention_days`. This field is retained for compatibility and must not be used by new integrations. It remains returned as a deprecated mirror; no sunset date has been announced.
1215
+ */
1216
+ retention_days: number;
1217
+ };
1218
+ MeteredMeta: {
1219
+ billable_overage: boolean;
1220
+ request_id: string;
1221
+ surface?: components["schemas"]["SurfaceMeta"];
1222
+ units_charged: number;
1223
+ usage: components["schemas"]["UsageMeta"];
1224
+ };
1225
+ OverviewCurrent: {
1226
+ acquisition: {
1227
+ by_channel: components["schemas"]["AcquisitionChannelItem"][];
1228
+ top_landing_pages: {
1229
+ /** @enum {string} */
1230
+ channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
1231
+ page_title?: string | null;
1232
+ path_canon: string | null;
1233
+ sessions: number;
1234
+ }[];
1235
+ top_referrers: components["schemas"]["TopReferrer"][];
1236
+ };
1237
+ audience: {
1238
+ browsers: {
1239
+ browser_family: string;
1240
+ sessions: number;
1241
+ }[];
1242
+ /**
1243
+ * @description Mixed overview audience slice. When unavailable, inspect
1244
+ * `availability.sections` for `overview_cities`.
1245
+ */
1246
+ cities: {
1247
+ city: string;
1248
+ country: string;
1249
+ sessions: number;
1250
+ }[];
1251
+ countries: {
1252
+ country: string;
1253
+ sessions: number;
1254
+ }[];
1255
+ devices: {
1256
+ device_type: string;
1257
+ sessions: number;
1258
+ }[];
1259
+ os: {
1260
+ os_family: string;
1261
+ sessions: number;
1262
+ }[];
1263
+ /**
1264
+ * @description Mixed overview audience slice. When unavailable, inspect
1265
+ * `availability.sections` for `overview_regions`.
1266
+ */
1267
+ regions: {
1268
+ country: string;
1269
+ region: string;
1270
+ sessions: number;
1271
+ }[];
1272
+ };
1273
+ content: {
1274
+ movers: {
1275
+ top_gainers: components["schemas"]["UserApiMoverItem"][];
1276
+ top_losers: components["schemas"]["UserApiMoverItem"][];
1277
+ };
1278
+ top_pages: {
1279
+ page_title?: string | null;
1280
+ pageviews: number;
1281
+ path_canon: string | null;
1282
+ }[];
1283
+ };
1284
+ data_health: {
1285
+ last_event_at: string | null;
1286
+ };
1287
+ overview: {
1288
+ timeseries: {
1289
+ avg_page_eng_time_ms: number;
1290
+ avg_session_eng_time_ms: number;
1291
+ bounce_rate: number;
1292
+ /** Format: date */
1293
+ date: string;
1294
+ engagement_rate: number;
1295
+ pageviews: number;
1296
+ sessions: number;
1297
+ visitors: number;
1298
+ }[];
1299
+ totals: {
1300
+ avg_page_eng_time_ms: number;
1301
+ avg_pages_per_session: number;
1302
+ avg_session_eng_time_ms: number;
1303
+ bounce_rate: number;
1304
+ engagement_rate: number;
1305
+ pageviews: number;
1306
+ sessions: number;
1307
+ visitors: number;
1308
+ };
1309
+ /** @enum {string} */
1310
+ visitors_mode: "sessions" | "daily_uniques";
1311
+ };
1312
+ };
1313
+ OverviewReportResponse: components["schemas"]["UserApiOverviewEnvelope"] & {
1314
+ meta: components["schemas"]["MeteredMeta"];
1315
+ };
1316
+ ProductApi: {
1317
+ allow_goals: boolean;
1318
+ allow_reports: boolean;
1319
+ allow_tenant_dimension: boolean;
1320
+ allow_tenants: boolean;
1321
+ /** @enum {string} */
1322
+ availability: "none" | "limited" | "standard" | "custom";
1323
+ can_create_tokens: boolean;
1324
+ hard_cap_units?: number | null;
1325
+ max_breakdown_limit: number;
1326
+ max_range_days: number;
1327
+ max_report_limit: number;
1328
+ monthly_included_units?: number | null;
1329
+ rate_limit_rps?: number | null;
1330
+ retention_days?: number | null;
1331
+ usage_history_months: number;
1332
+ };
1333
+ ProductDashboard: {
1334
+ /** @enum {string} */
1335
+ breakdowns_high_cardinality_level: "none" | "limited" | "standard" | "guardrailed" | "advanced" | "custom";
1336
+ /** @enum {string} */
1337
+ breakdowns_standard_level: "none" | "limited" | "standard" | "guardrailed" | "advanced" | "custom";
1338
+ /** @enum {string} */
1339
+ essential_level: "none" | "limited" | "standard" | "guardrailed" | "advanced" | "custom";
1340
+ hourly_enabled: boolean;
1341
+ /** @enum {string} */
1342
+ hourly_level: "none" | "limited" | "standard" | "guardrailed" | "advanced" | "custom";
1343
+ /** @enum {string} */
1344
+ standard_level: "none" | "limited" | "standard" | "guardrailed" | "advanced" | "custom";
1345
+ /** @enum {string} */
1346
+ team_management_level: "none" | "limited" | "standard" | "guardrailed" | "advanced" | "custom";
1347
+ };
1348
+ ProductExports: {
1349
+ csv: boolean;
1350
+ formats: "csv"[];
1351
+ /** @enum {string} */
1352
+ level: "none" | "limited" | "standard" | "guardrailed" | "advanced" | "custom";
1353
+ surfaces: ("content" | "acquisition" | "actions" | "technology" | "performance")[];
1354
+ };
1355
+ ProductQuotas: {
1356
+ events_included: number;
1357
+ hard_site_limit: number;
1358
+ hard_user_limit: number | null;
1359
+ sites_included: number;
1360
+ users_included: number | null;
1361
+ };
1362
+ ProductRetention: {
1363
+ api_retention_days?: number | null;
1364
+ workspace_retention: components["schemas"]["RetentionPolicy"];
1365
+ };
1366
+ Quotas: {
1367
+ hard_cap_units: number;
1368
+ included_units: number;
1369
+ overage_units: number;
1370
+ /** Format: date-time */
1371
+ reset_at: string;
1372
+ used_units: number;
1373
+ };
1374
+ Range: {
1375
+ /** Format: date-time */
1376
+ compare_end: string | null;
1377
+ /** Format: date-time */
1378
+ compare_start: string | null;
1379
+ /** Format: date-time */
1380
+ end: string;
1381
+ /** Format: date-time */
1382
+ start: string;
1383
+ };
1384
+ /**
1385
+ * @description Availability contract for profile-aware reads.
1386
+ *
1387
+ * For `mixed` routes, HTTP `200` means the strict-safe base slice was
1388
+ * returned successfully. `readModel` tells you which slices belong to
1389
+ * the strict-safe baseline and which belong to `Extended`.
1390
+ * Section-level locks or partial compatibility for enriched sub-slices
1391
+ * are reported in `sections`.
1392
+ */
1393
+ ReportAvailability: {
1394
+ classification: components["schemas"]["ReportAvailabilityClassification"];
1395
+ /** Format: date-time */
1396
+ collectionProfileEffectiveAt: string | null;
1397
+ compare: components["schemas"]["ReportPeriodAvailability"] | null;
1398
+ /**
1399
+ * @description Route-level availability for the current range. On `mixed` routes,
1400
+ * `status=available` means the strict-safe base slice is readable;
1401
+ * inspect `sections` for enriched sub-slices that remain locked or
1402
+ * partial.
1403
+ */
1404
+ current: components["schemas"]["ReportPeriodAvailability"];
1405
+ /** @enum {string} */
1406
+ currentProfile: "strict" | "extended";
1407
+ readModel?: components["schemas"]["ReportAvailabilityReadModel"] | null;
1408
+ route: components["schemas"]["ReportAvailabilityRouteId"];
1409
+ /**
1410
+ * @description Section-level availability for mixed routes. Each entry describes
1411
+ * an enriched sub-slice that may remain locked or partially
1412
+ * compatible while the enclosing route still returns HTTP `200`.
1413
+ */
1414
+ sections: components["schemas"]["ReportSectionAvailability"][];
1415
+ };
1416
+ /** @enum {string} */
1417
+ ReportAvailabilityClassification: "strict_safe" | "extended_only" | "mixed";
1418
+ /**
1419
+ * @description Explicit read-model for mixed routes. `strictSafe` lists the baseline
1420
+ * slices that remain available in `Strict`; `extended` lists the
1421
+ * enriched slices unlocked by `Extended`.
1422
+ */
1423
+ ReportAvailabilityReadModel: {
1424
+ extended: components["schemas"]["ReportAvailabilityReadModelSliceId"][];
1425
+ strictSafe: components["schemas"]["ReportAvailabilityReadModelSliceId"][];
1426
+ };
1427
+ /** @description Opaque identifier for a data slice within an availability result. */
1428
+ ReportAvailabilityReadModelSliceId: string;
1429
+ /** @enum {string|null} */
1430
+ ReportAvailabilityReason: "strict_safe_route" | "extended_data_required" | "requested_period_has_no_extended_data" | "requested_period_crosses_profile_change" | "outside_source_coverage" | "section_not_collected_in_runtime" | null;
1431
+ /** @description Opaque identifier for the route associated with this availability result. */
1432
+ ReportAvailabilityRouteId: string;
1433
+ /** @description Opaque identifier for a section within an availability result. */
1434
+ ReportAvailabilitySectionId: string;
1435
+ /** @enum {string} */
1436
+ ReportAvailabilityStatus: "available" | "locked_by_profile" | "partially_available_after_effective_at" | "partially_available_outside_source_coverage" | "not_available_for_requested_period";
1437
+ ReportPeriodAvailability: {
1438
+ /** Format: date-time */
1439
+ compatibleEnd: string | null;
1440
+ /** Format: date-time */
1441
+ compatibleStart: string | null;
1442
+ reason: components["schemas"]["ReportAvailabilityReason"];
1443
+ /** Format: date-time */
1444
+ requestedEnd: string;
1445
+ /** Format: date-time */
1446
+ requestedStart: string;
1447
+ status: components["schemas"]["ReportAvailabilityStatus"];
1448
+ };
1449
+ /**
1450
+ * @description Section-level availability for mixed routes. A mixed route can return
1451
+ * HTTP `200` while one or more enriched sections remain locked or only
1452
+ * partially compatible for the requested period.
1453
+ */
1454
+ ReportSectionAvailability: {
1455
+ classification: components["schemas"]["ReportAvailabilityClassification"];
1456
+ compare: components["schemas"]["ReportPeriodAvailability"] | null;
1457
+ current: components["schemas"]["ReportPeriodAvailability"];
1458
+ id: components["schemas"]["ReportAvailabilitySectionId"];
1459
+ };
1460
+ RetentionPolicy: {
1461
+ /** @enum {string} */
1462
+ kind: "fixed" | "custom";
1463
+ /** @enum {string} */
1464
+ unit?: "days" | "months";
1465
+ value?: number;
1466
+ };
1467
+ SiteItem: {
1468
+ hostnames: string[];
1469
+ name: string;
1470
+ product_configuration: components["schemas"]["SiteProductConfiguration"];
1471
+ siteId: string;
1472
+ /** @enum {string} */
1473
+ status: "ACTIVE" | "SUSPENDED";
1474
+ };
1475
+ SiteProductConfiguration: {
1476
+ api: components["schemas"]["ProductApi"];
1477
+ capabilities: components["schemas"]["EffectiveProductCapabilities"];
1478
+ /** @enum {string} */
1479
+ collection_profile: "strict" | "extended";
1480
+ /**
1481
+ * Format: date-time
1482
+ * @description Timestamp from which the current site profile applies to future collection. This is prospective only and does not backfill older events.
1483
+ */
1484
+ collection_profile_effective_at: string | null;
1485
+ dashboard: components["schemas"]["SiteProductDashboard"];
1486
+ exports: components["schemas"]["ProductExports"];
1487
+ product_retention: components["schemas"]["ProductRetention"];
1488
+ /** @enum {string} */
1489
+ runtime_plan_id: "free" | "starter" | "pro";
1490
+ technical_retention: components["schemas"]["TechnicalRetention"];
1491
+ };
1492
+ SiteProductDashboard: components["schemas"]["ProductDashboard"] & {
1493
+ enabled_surfaces: string[];
1494
+ };
1495
+ SitesResponse: {
1496
+ items: components["schemas"]["SiteItem"][];
1497
+ };
1498
+ /** @description Compare window metadata for report and metrics surfaces. */
1499
+ SurfaceCompareWindow: {
1500
+ /** Format: date-time */
1501
+ compareEnd?: string | null;
1502
+ /** Format: date-time */
1503
+ compareStart?: string | null;
1504
+ enabled: boolean;
1505
+ /** @enum {string|null} */
1506
+ mode?: "prev_period" | null;
1507
+ };
1508
+ /** @description Freshness metadata for a report or metrics surface. */
1509
+ SurfaceDataFreshness: {
1510
+ /** Format: date-time */
1511
+ asOf?: string | null;
1512
+ cached?: boolean;
1513
+ lagMinutes?: number | null;
1514
+ notes?: string[];
1515
+ /** @enum {string} */
1516
+ status: "fresh" | "delayed" | "stale" | "unknown";
1517
+ };
1518
+ /** @description Export availability for the returned surface and selected plan. */
1519
+ SurfaceExportCapability: {
1520
+ csv: boolean;
1521
+ /** @enum {string} */
1522
+ dataEnvelope: "strict" | "extended" | "mixed";
1523
+ /** @enum {string} */
1524
+ level: "none" | "limited" | "standard" | "guardrailed" | "advanced" | "custom";
1525
+ notes?: string[];
1526
+ };
1527
+ /** @description Additive launch-readiness metadata for reports and metrics. */
1528
+ SurfaceMeta: {
1529
+ compareWindow: components["schemas"]["SurfaceCompareWindow"];
1530
+ /** @enum {string} */
1531
+ dataEnvelope: "strict" | "extended" | "mixed";
1532
+ dataFreshness: components["schemas"]["SurfaceDataFreshness"];
1533
+ exportCapability: components["schemas"]["SurfaceExportCapability"];
1534
+ /** @enum {string} */
1535
+ mode: "strict" | "extended";
1536
+ };
1537
+ TechnicalRetention: {
1538
+ site_data_retention_months: number;
1539
+ };
1540
+ TenantItem: {
1541
+ /** @enum {string} */
1542
+ status: "ACTIVE" | "INACTIVE";
1543
+ /** @description Stable tenant identifier. */
1544
+ tenant_id: string;
1545
+ /** @description Current display name from the tenant registry. */
1546
+ tenant_name: string;
1547
+ /** @description Current routing slug from the tenant registry. */
1548
+ tenant_slug: string;
1549
+ };
1550
+ TenantsResponse: {
1551
+ items: components["schemas"]["TenantItem"][];
1552
+ };
1553
+ TimeseriesPoint: {
1554
+ ts: string;
1555
+ value: number;
1556
+ };
1557
+ TimeseriesResponse: {
1558
+ availability: components["schemas"]["ReportAvailability"];
1559
+ meta: components["schemas"]["MeteredMeta"];
1560
+ points: components["schemas"]["TimeseriesPoint"][];
1561
+ };
1562
+ TopReferrer: {
1563
+ /** @enum {string} */
1564
+ channel?: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
1565
+ domain: string;
1566
+ favicon_url?: string | null;
1567
+ sessions: number;
1568
+ };
1569
+ TopSource: {
1570
+ sessions: number;
1571
+ source: string;
1572
+ };
1573
+ UsageCurrentResponse: {
1574
+ hard_cap_units: number;
1575
+ period: string;
1576
+ /** Format: date-time */
1577
+ reset_at: string;
1578
+ units_included: number;
1579
+ units_overage: number;
1580
+ units_used: number;
1581
+ };
1582
+ UsageHistoryItem: {
1583
+ hard_cap_units: number;
1584
+ period: string;
1585
+ units_included: number;
1586
+ units_overage: number;
1587
+ units_used: number;
1588
+ };
1589
+ UsageHistoryResponse: {
1590
+ items: components["schemas"]["UsageHistoryItem"][];
1591
+ };
1592
+ UsageMeta: {
1593
+ hard_cap_units: number;
1594
+ included_units: number;
1595
+ overage_units: number;
1596
+ used_units: number;
1597
+ };
1598
+ UserApiAcquisitionCurrent: {
1599
+ by_channel: components["schemas"]["AcquisitionChannelItem"][];
1600
+ by_day: {
1601
+ /** @enum {string} */
1602
+ channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
1603
+ /** Format: date */
1604
+ date: string;
1605
+ sessions: number;
1606
+ }[];
1607
+ /**
1608
+ * @description Mixed acquisition section `acquisition_attribution`. May be empty
1609
+ * when the route returns only the strict-safe slice in HTTP `200`.
1610
+ */
1611
+ top_campaigns: {
1612
+ campaign: string;
1613
+ sessions: number;
1614
+ }[];
1615
+ /** @description Strict-safe acquisition-lite slice available in both Strict and Extended. */
1616
+ top_landing_pages: {
1617
+ /** @enum {string} */
1618
+ channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
1619
+ page_title?: string | null;
1620
+ path_canon: string | null;
1621
+ sessions: number;
1622
+ }[];
1623
+ /**
1624
+ * @description Mixed acquisition section `acquisition_attribution`. May be empty
1625
+ * when the route returns only the strict-safe slice in HTTP `200`.
1626
+ */
1627
+ top_mediums: {
1628
+ medium: string;
1629
+ sessions: number;
1630
+ }[];
1631
+ /** @description Strict-safe host-only referral slice available in both Strict and Extended. */
1632
+ top_referrers: components["schemas"]["TopReferrer"][];
1633
+ /**
1634
+ * @description Mixed acquisition section `acquisition_attribution`. May be empty
1635
+ * when the route returns only the strict-safe slice in HTTP `200`.
1636
+ */
1637
+ top_sources: components["schemas"]["TopSource"][];
1638
+ totals: {
1639
+ avg_session_eng_time_ms: number;
1640
+ engagement_rate: number;
1641
+ pageviews: number;
1642
+ sessions: number;
1643
+ };
1644
+ };
1645
+ UserApiAcquisitionDetailsCurrent: {
1646
+ dimensions: {
1647
+ campaigns: components["schemas"]["AcquisitionDimensionItem"][];
1648
+ mediums: components["schemas"]["AcquisitionDimensionItem"][];
1649
+ referrers: components["schemas"]["AcquisitionDimensionItem"][];
1650
+ sources: components["schemas"]["AcquisitionDimensionItem"][];
1651
+ };
1652
+ goals_configured: boolean;
1653
+ impact?: components["schemas"]["AcquisitionImpact"] | null;
1654
+ landing_pages: components["schemas"]["AcquisitionLandingPageSummaryItem"][];
1655
+ };
1656
+ UserApiAcquisitionEnvelope: {
1657
+ availability: components["schemas"]["ReportAvailability"];
1658
+ compare: components["schemas"]["UserApiAcquisitionCurrent"] | null;
1659
+ current: components["schemas"]["UserApiAcquisitionCurrent"];
1660
+ range: components["schemas"]["Range"];
1661
+ };
1662
+ UserApiAcquisitionReportMeta: {
1663
+ availability: components["schemas"]["ReportAvailability"];
1664
+ meta: components["schemas"]["MeteredMeta"];
1665
+ range: components["schemas"]["Range"];
1666
+ };
1667
+ UserApiAcquisitionSummaryCurrent: {
1668
+ channels: components["schemas"]["AcquisitionSummaryChannelItem"][];
1669
+ coverage: components["schemas"]["AcquisitionCoverage"];
1670
+ goals_configured: boolean;
1671
+ mix_timeseries: {
1672
+ /** @enum {string} */
1673
+ channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
1674
+ /** Format: date */
1675
+ date: string;
1676
+ sessions: number;
1677
+ }[];
1678
+ totals: components["schemas"]["AcquisitionSummaryTotals"];
1679
+ };
1680
+ UserApiActionsEnvelope: {
1681
+ availability: components["schemas"]["ReportAvailability"];
1682
+ compare: components["schemas"]["ActionsCurrent"] | null;
1683
+ current: components["schemas"]["ActionsCurrent"];
1684
+ range: components["schemas"]["Range"];
1685
+ };
1686
+ UserApiContentFullEnvelope: {
1687
+ availability: components["schemas"]["ReportAvailability"];
1688
+ compare: components["schemas"]["ContentFullCurrent"] | null;
1689
+ current: components["schemas"]["ContentFullCurrent"];
1690
+ range: components["schemas"]["Range"];
1691
+ };
1692
+ UserApiContentSummaryEnvelope: {
1693
+ availability: components["schemas"]["ReportAvailability"];
1694
+ compare: components["schemas"]["ContentSummaryCurrent"] | null;
1695
+ current: components["schemas"]["ContentSummaryCurrent"];
1696
+ range: components["schemas"]["Range"];
1697
+ };
1698
+ UserApiGoalFilters: {
1699
+ action_id?: string;
1700
+ action_target_host?: string;
1701
+ form_action_path?: string;
1702
+ form_id?: string;
1703
+ };
1704
+ UserApiMoverItem: {
1705
+ current_pageviews: number;
1706
+ delta: number;
1707
+ delta_pct: number;
1708
+ page_title?: string | null;
1709
+ path_canon: string | null;
1710
+ previous_pageviews: number;
1711
+ };
1712
+ UserApiOverviewEnvelope: {
1713
+ availability: components["schemas"]["ReportAvailability"];
1714
+ compare: components["schemas"]["OverviewCurrent"] | null;
1715
+ current: components["schemas"]["OverviewCurrent"];
1716
+ range: components["schemas"]["Range"];
1717
+ };
1718
+ WorkspaceProductConfiguration: {
1719
+ api: components["schemas"]["ProductApi"];
1720
+ capabilities: components["schemas"]["EffectiveProductCapabilities"];
1721
+ dashboard: components["schemas"]["ProductDashboard"];
1722
+ /** @enum {string} */
1723
+ default_collection_profile: "strict" | "extended";
1724
+ exports: components["schemas"]["ProductExports"];
1725
+ product_retention: components["schemas"]["ProductRetention"];
1726
+ quotas: components["schemas"]["ProductQuotas"];
1727
+ /** @enum {string} */
1728
+ runtime_plan_id: "free" | "starter" | "pro";
1729
+ };
1730
+ };
1731
+ responses: {
1732
+ /**
1733
+ * @description Analytics serving timed out (`ANALYTICS_DB_TIMEOUT`) or is temporarily
1734
+ * unavailable (`ANALYTICS_DB_UNAVAILABLE`).
1735
+ */
1736
+ AnalyticsUnavailable: {
1737
+ headers: {
1738
+ "X-RateLimit-Limit": components["headers"]["XRateLimitLimit"];
1739
+ "X-RateLimit-Remaining": components["headers"]["XRateLimitRemaining"];
1740
+ "X-RateLimit-Reset": components["headers"]["XRateLimitReset"];
1741
+ "X-Request-Id": components["headers"]["XRequestId"];
1742
+ [name: string]: unknown;
1743
+ };
1744
+ content: {
1745
+ "application/json": components["schemas"]["AnalyticsUnavailableErrorResponse"];
1746
+ };
1747
+ };
1748
+ /** @description Token scope/site/plan does not allow this request. */
1749
+ Forbidden: {
1750
+ headers: {
1751
+ "X-Request-Id": components["headers"]["XRequestId"];
1752
+ [name: string]: unknown;
1753
+ };
1754
+ content: {
1755
+ "application/json": components["schemas"]["ErrorResponse"];
1756
+ };
1757
+ };
1758
+ /** @description Billing hard cap reached for current month. */
1759
+ HardCapReached: {
1760
+ headers: {
1761
+ "X-Request-Id": components["headers"]["XRequestId"];
1762
+ [name: string]: unknown;
1763
+ };
1764
+ content: {
1765
+ "application/json": components["schemas"]["ErrorResponse"];
1766
+ };
1767
+ };
1768
+ /** @description Request parameters are invalid. */
1769
+ InvalidParams: {
1770
+ headers: {
1771
+ "X-Request-Id": components["headers"]["XRequestId"];
1772
+ [name: string]: unknown;
1773
+ };
1774
+ content: {
1775
+ "application/json": components["schemas"]["ErrorResponse"];
1776
+ };
1777
+ };
1778
+ /** @description Request was throttled. */
1779
+ RateLimited: {
1780
+ headers: {
1781
+ "X-RateLimit-Limit": components["headers"]["XRateLimitLimit"];
1782
+ "X-RateLimit-Remaining": components["headers"]["XRateLimitRemaining"];
1783
+ "X-RateLimit-Reset": components["headers"]["XRateLimitReset"];
1784
+ "X-Request-Id": components["headers"]["XRequestId"];
1785
+ [name: string]: unknown;
1786
+ };
1787
+ content: {
1788
+ "application/json": components["schemas"]["ErrorResponse"];
1789
+ };
1790
+ };
1791
+ /**
1792
+ * @description The requested route family is not available for the current
1793
+ * `collection_profile`, or the requested period does not contain the
1794
+ * required Extended data envelope.
1795
+ */
1796
+ ReportAvailabilityConflict: {
1797
+ headers: {
1798
+ "X-Request-Id": components["headers"]["XRequestId"];
1799
+ [name: string]: unknown;
1800
+ };
1801
+ content: {
1802
+ "application/json": components["schemas"]["ErrorResponse"];
1803
+ };
1804
+ };
1805
+ /** @description Invalid or revoked API token. */
1806
+ Unauthorized: {
1807
+ headers: {
1808
+ "X-Request-Id": components["headers"]["XRequestId"];
1809
+ [name: string]: unknown;
1810
+ };
1811
+ content: {
1812
+ "application/json": components["schemas"]["ErrorResponse"];
1813
+ };
1814
+ };
1815
+ };
1816
+ parameters: {
1817
+ /** @description Filter action reports by normalized action family. */
1818
+ ActionFamily: "goals" | "forms" | "outbound" | "downloads" | "errors" | "custom" | "instrumentation";
1819
+ /** @description Filter action reports by normalized action key. */
1820
+ ActionKey: string;
1821
+ /**
1822
+ * @description Grouping dimension for breakdown endpoint.
1823
+ * When `dimension=tenant`, rows are grouped by stable `tenant_id`. The
1824
+ * response also includes `tenant_slug` and `tenant_name` as display labels.
1825
+ */
1826
+ BreakdownDimension: "device" | "referrer" | "page" | "browser" | "os" | "tenant";
1827
+ /** @description Number of rows returned by breakdown endpoint. */
1828
+ BreakdownLimit: number;
1829
+ /** @description Compare current range against the previous equivalent period. */
1830
+ CompareParam: "prev_period";
1831
+ /**
1832
+ * @description Content response depth. `summary` returns totals and one global UTC
1833
+ * pageview point per day; `limit` has no effect. `full` returns the
1834
+ * detailed Content report. `details` is a deprecated alias for `full`.
1835
+ * When omitted, ranges up to 90 days use `full`; ranges from 91 through
1836
+ * 365 days use `summary`.
1837
+ */
1838
+ ContentInclude: "summary" | "full" | "details";
1839
+ /**
1840
+ * @description JSON object serialized as string, example:
1841
+ * `{"device":"mobile","referrer":"google.com"}`.
1842
+ */
1843
+ Filters: string;
1844
+ /** @description Inclusive UTC start date (YYYY-MM-DD). Pass explicit from and to dates to bound the requested period. */
1845
+ FromDate: string;
1846
+ /** @description Granularity (`hour` can require higher plan). */
1847
+ Interval: "day" | "hour";
1848
+ /**
1849
+ * @description Metric to aggregate (default `pageviews`). `sessions` uses the same
1850
+ * visit model as the dashboard: a `visit_id` starts from the
1851
+ * privacy-preserving daily visitor key and is split after 30 minutes of
1852
+ * inactivity.
1853
+ */
1854
+ Metric: "pageviews" | "sessions" | "events";
1855
+ /** @description Report depth for Acquisition and Actions. When report include selection is enabled, omission selects summary; otherwise the handler uses full even when include is supplied. No unconditional default is declared here. */
1856
+ ReportInclude: "summary" | "full" | "details";
1857
+ /** @description Number of rows returned by top lists for report endpoints. */
1858
+ ReportLimit: number;
1859
+ /** @description Optional idempotency/request correlation identifier. */
1860
+ RequestIdHeader: string;
1861
+ SiteId: string;
1862
+ /**
1863
+ * @description Stable tenant identifier. Use this for tenant-scoped analytics and
1864
+ * tenant-scoped access control. `site_id` identifies the shared product,
1865
+ * `tenant_id` identifies one tenant.
1866
+ */
1867
+ TenantId: string;
1868
+ /** @description Inclusive UTC end date (`YYYY-MM-DD`). Defaults to today. */
1869
+ ToDate: string;
1870
+ /** @description Traffic segment to include. */
1871
+ TrafficParam: "humans" | "humans_including_ai" | "bots_only" | "ai_bots_only" | "all";
1872
+ };
1873
+ requestBodies: never;
1874
+ headers: {
1875
+ /** @description Maximum requests allowed during current short window. */
1876
+ XRateLimitLimit: number;
1877
+ /** @description Remaining requests in current short window. */
1878
+ XRateLimitRemaining: number;
1879
+ /** @description Unix timestamp when short window resets. */
1880
+ XRateLimitReset: number;
1881
+ /** @description Request identifier for troubleshooting. */
1882
+ XRequestId: string;
1883
+ };
1884
+ pathItems: never;
1885
+ }
1886
+ export type $defs = Record<string, never>;
1887
+ export type operations = Record<string, never>;