@pomeloanalytics/api 0.1.0-beta.3 → 0.1.0-beta.4

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.
@@ -65,7 +65,7 @@ export interface paths {
65
65
  query: {
66
66
  /** @description Compare current range against the previous equivalent period. */
67
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. */
68
+ /** @description Inclusive start date (YYYY-MM-DD), a day of the site's time zone (a UTC date for usage history). Pass explicit from and to dates to bound the requested period. */
69
69
  from?: components["parameters"]["FromDate"];
70
70
  /** @description Number of rows returned by top lists for report endpoints. */
71
71
  limit?: components["parameters"]["ReportLimit"];
@@ -76,7 +76,7 @@ export interface paths {
76
76
  * `tenant_id` identifies one tenant.
77
77
  */
78
78
  tenant_id?: components["parameters"]["TenantId"];
79
- /** @description Inclusive UTC end date (`YYYY-MM-DD`). Defaults to today. */
79
+ /** @description Inclusive end date (`YYYY-MM-DD`), a day of the site's time zone (a UTC date for usage history). Defaults to today. */
80
80
  to?: components["parameters"]["ToDate"];
81
81
  /** @description Traffic segment to include. */
82
82
  traffic?: components["parameters"]["TrafficParam"];
@@ -179,6 +179,7 @@ export interface paths {
179
179
  /**
180
180
  * @description Grouping dimension for breakdown endpoint.
181
181
  * When `dimension=tenant`, rows are grouped by stable `tenant_id`. The
182
+ * statistics of a tenant are those of the page's client space. The
182
183
  * response also includes `tenant_slug` and `tenant_name` as display labels.
183
184
  */
184
185
  dimension?: components["parameters"]["BreakdownDimension"];
@@ -187,7 +188,7 @@ export interface paths {
187
188
  * `{"device":"mobile","referrer":"google.com"}`.
188
189
  */
189
190
  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
+ /** @description Inclusive start date (YYYY-MM-DD), a day of the site's time zone (a UTC date for usage history). Pass explicit from and to dates to bound the requested period. */
191
192
  from?: components["parameters"]["FromDate"];
192
193
  /** @description Number of rows returned by breakdown endpoint. */
193
194
  limit?: components["parameters"]["BreakdownLimit"];
@@ -205,7 +206,7 @@ export interface paths {
205
206
  * `tenant_id` identifies one tenant.
206
207
  */
207
208
  tenant_id?: components["parameters"]["TenantId"];
208
- /** @description Inclusive UTC end date (`YYYY-MM-DD`). Defaults to today. */
209
+ /** @description Inclusive end date (`YYYY-MM-DD`), a day of the site's time zone (a UTC date for usage history). Defaults to today. */
209
210
  to?: components["parameters"]["ToDate"];
210
211
  };
211
212
  header?: {
@@ -263,9 +264,9 @@ export interface paths {
263
264
  * `{"device":"mobile","referrer":"google.com"}`.
264
265
  */
265
266
  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
+ /** @description Inclusive start date (YYYY-MM-DD), a day of the site's time zone (a UTC date for usage history). Pass explicit from and to dates to bound the requested period. */
267
268
  from?: components["parameters"]["FromDate"];
268
- /** @description Granularity (`hour` can require higher plan). */
269
+ /** @description Granularity (`day` or `hour`, on every plan with API access). */
269
270
  interval?: components["parameters"]["Interval"];
270
271
  /**
271
272
  * @description Metric to aggregate (default `pageviews`). `sessions` uses the same
@@ -281,7 +282,7 @@ export interface paths {
281
282
  * `tenant_id` identifies one tenant.
282
283
  */
283
284
  tenant_id?: components["parameters"]["TenantId"];
284
- /** @description Inclusive UTC end date (`YYYY-MM-DD`). Defaults to today. */
285
+ /** @description Inclusive end date (`YYYY-MM-DD`), a day of the site's time zone (a UTC date for usage history). Defaults to today. */
285
286
  to?: components["parameters"]["ToDate"];
286
287
  };
287
288
  header?: {
@@ -332,29 +333,46 @@ export interface paths {
332
333
  };
333
334
  /**
334
335
  * 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`.
336
+ * @description Provenance of every visit: referring domains, the named sources that
337
+ * gather them (google.fr and google.com under Google), the types of
338
+ * referring site (search engine, social network, messaging, AI
339
+ * assistant, other site) and landing pages. A direct visit has no
340
+ * referring domain. Sources and types are read through a fixed table;
341
+ * they never separate paid from organic.
342
+ *
343
+ * Channels, campaign sources, mediums, campaigns and impact by source
344
+ * belong to the Campagnes option: `by_channel`, `channels`,
345
+ * `channel_timeseries`, `top_sources`, `top_mediums`, `top_campaigns`,
346
+ * `dimensions.sources`, `dimensions.mediums`, `dimensions.campaigns`,
347
+ * `dimensions.contents`, `dimensions.terms` and `impact` (except
348
+ * `impact.landing_pages`) are computed on visits whose
349
+ * visitor gave consent, with the usual reporting precision (exact
350
+ * counts from 10, `< 10` below, rows under 10 visits grouped, rates and means `null`
351
+ * under 10 contributors), and are empty when the site does not have the
352
+ * option. `availability.sections` reports `acquisition_attribution` with
353
+ * the status of the report when the option is on and with the reason
354
+ * `campaigns_option_required` when it is off. `avg_pages_per_session`,
355
+ * `avg_session_eng_time_ms` and `avg_page_eng_time_ms` are `null` when
356
+ * fewer than ten visits contribute; they are never published as `0` in
357
+ * that case.
340
358
  * When report include selection is enabled, `include` selects the response
341
359
  * depth and omission selects `summary`. Otherwise, `include` is ignored
342
360
  * 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
361
+ * `include=summary` returns totals, coverage and the sessions timeseries.
362
+ * `full` returns `current.by_day` and top lists. `details` returns
345
363
  * dimensions, landing pages and optional goal impact; it is a distinct
346
364
  * Acquisition variant, not the Content alias for full.
347
365
  * `goal_id` optionally selects one configured site goal for `details`
348
- * impact. Impact reports distinct converted visits and rates by channel,
349
- * landing page, source, medium and campaign using first-pageview
350
- * attribution; omission uses the union of the site's configured goals.
366
+ * impact. Impact reports distinct converted visits and rates by landing
367
+ * page using first-pageview attribution; omission uses the union of the
368
+ * site's configured goals.
351
369
  */
352
370
  get: {
353
371
  parameters: {
354
372
  query: {
355
373
  /** @description Compare current range against the previous equivalent period. */
356
374
  compare?: components["parameters"]["CompareParam"];
357
- /** @description Inclusive UTC start date (YYYY-MM-DD). Pass explicit from and to dates to bound the requested period. */
375
+ /** @description Inclusive start date (YYYY-MM-DD), a day of the site's time zone (a UTC date for usage history). Pass explicit from and to dates to bound the requested period. */
358
376
  from?: components["parameters"]["FromDate"];
359
377
  /**
360
378
  * @description Acquisition `include=details` only. Selects one configured goal belonging
@@ -374,7 +392,7 @@ export interface paths {
374
392
  * `tenant_id` identifies one tenant.
375
393
  */
376
394
  tenant_id?: components["parameters"]["TenantId"];
377
- /** @description Inclusive UTC end date (`YYYY-MM-DD`). Defaults to today. */
395
+ /** @description Inclusive end date (`YYYY-MM-DD`), a day of the site's time zone (a UTC date for usage history). Defaults to today. */
378
396
  to?: components["parameters"]["ToDate"];
379
397
  /** @description Traffic segment to include. */
380
398
  traffic?: components["parameters"]["TrafficParam"];
@@ -389,11 +407,9 @@ export interface paths {
389
407
  requestBody?: never;
390
408
  responses: {
391
409
  /**
392
- * @description OK. Mixed route: the strict-safe acquisition slice succeeded.
393
- * `availability.readModel` shows what belongs to the strict-safe
394
- * baseline, while `availability.sections` reports whether
395
- * `acquisition_attribution` remains locked or only partially
396
- * compatible for the requested period.
410
+ * @description OK. `availability.sections` reports whether
411
+ * `acquisition_attribution` (Campagnes option) is available for the
412
+ * requested period.
397
413
  */
398
414
  200: {
399
415
  headers: {
@@ -431,13 +447,9 @@ export interface paths {
431
447
  cookie?: never;
432
448
  };
433
449
  /**
434
- * Simple action report with advanced families gated by profile
435
- * @description Mixed route family. The strict-safe slice covers bounded simple actions
436
- * (`ui.click`, `outbound.click`, `file.download`, `form.submit`). Richer
437
- * families such as goals, errors, and custom events remain profile-gated
438
- * and are marked through `availability.sections` as `actions_advanced`.
439
- * Use `availability.readModel` to distinguish the stable baseline from
440
- * the enriched families unlocked by `Extended`.
450
+ * Actions by family
451
+ * @description Goals, forms, outbound links, downloads, errors, custom events and
452
+ * instrumentation, by family.
441
453
  * When report include selection is enabled, `include` selects the response
442
454
  * depth and omission selects `summary`. Otherwise, `include` is ignored
443
455
  * and the handler uses `full`.
@@ -454,7 +466,7 @@ export interface paths {
454
466
  action_key?: components["parameters"]["ActionKey"];
455
467
  /** @description Compare current range against the previous equivalent period. */
456
468
  compare?: components["parameters"]["CompareParam"];
457
- /** @description Inclusive UTC start date (YYYY-MM-DD). Pass explicit from and to dates to bound the requested period. */
469
+ /** @description Inclusive start date (YYYY-MM-DD), a day of the site's time zone (a UTC date for usage history). Pass explicit from and to dates to bound the requested period. */
458
470
  from?: components["parameters"]["FromDate"];
459
471
  /** @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. */
460
472
  include?: components["parameters"]["ReportInclude"];
@@ -467,7 +479,7 @@ export interface paths {
467
479
  * `tenant_id` identifies one tenant.
468
480
  */
469
481
  tenant_id?: components["parameters"]["TenantId"];
470
- /** @description Inclusive UTC end date (`YYYY-MM-DD`). Defaults to today. */
482
+ /** @description Inclusive end date (`YYYY-MM-DD`), a day of the site's time zone (a UTC date for usage history). Defaults to today. */
471
483
  to?: components["parameters"]["ToDate"];
472
484
  /** @description Traffic segment to include. */
473
485
  traffic?: components["parameters"]["TrafficParam"];
@@ -481,13 +493,7 @@ export interface paths {
481
493
  };
482
494
  requestBody?: never;
483
495
  responses: {
484
- /**
485
- * @description OK. Mixed route: the strict-safe bounded action slice succeeded.
486
- * `availability.readModel` shows what belongs to the strict-safe
487
- * baseline, while `availability.sections` reports whether
488
- * `actions_advanced` remains locked or only partially compatible
489
- * for the requested period.
490
- */
496
+ /** @description OK */
491
497
  200: {
492
498
  headers: {
493
499
  "X-RateLimit-Limit": components["headers"]["XRateLimitLimit"];
@@ -525,7 +531,7 @@ export interface paths {
525
531
  };
526
532
  /**
527
533
  * Content report
528
- * @description `summary` supports 1-365 inclusive UTC days. `full` and its deprecated
534
+ * @description `summary` supports 1-365 inclusive days of the site's time zone. `full` and its deprecated
529
535
  * `details` alias support 1-90 days. Comparison supports at most 30 days
530
536
  * in either mode. Responses are never truncated: if the serialized proxy
531
537
  * response would exceed 5 MiB, the request returns HTTP 422 with
@@ -537,12 +543,12 @@ export interface paths {
537
543
  query: {
538
544
  /** @description Compare current range against the previous equivalent period. */
539
545
  compare?: components["parameters"]["CompareParam"];
540
- /** @description Inclusive UTC start date (YYYY-MM-DD). Pass explicit from and to dates to bound the requested period. */
546
+ /** @description Inclusive start date (YYYY-MM-DD), a day of the site's time zone (a UTC date for usage history). Pass explicit from and to dates to bound the requested period. */
541
547
  from?: components["parameters"]["FromDate"];
542
548
  /**
543
- * @description Content response depth. `summary` returns totals and one global UTC
544
- * pageview point per day; `limit` has no effect. `full` returns the
545
- * detailed Content report. `details` is a deprecated alias for `full`.
549
+ * @description Content response depth. `summary` returns totals and one global
550
+ * pageview point per day of the site's time zone; `limit` has no effect. `full` returns the
551
+ * detailed Content report.
546
552
  * When omitted, ranges up to 90 days use `full`; ranges from 91 through
547
553
  * 365 days use `summary`.
548
554
  */
@@ -556,7 +562,7 @@ export interface paths {
556
562
  * `tenant_id` identifies one tenant.
557
563
  */
558
564
  tenant_id?: components["parameters"]["TenantId"];
559
- /** @description Inclusive UTC end date (`YYYY-MM-DD`). Defaults to today. */
565
+ /** @description Inclusive end date (`YYYY-MM-DD`), a day of the site's time zone (a UTC date for usage history). Defaults to today. */
560
566
  to?: components["parameters"]["ToDate"];
561
567
  /** @description Traffic segment to include. */
562
568
  traffic?: components["parameters"]["TrafficParam"];
@@ -608,18 +614,19 @@ export interface paths {
608
614
  };
609
615
  /**
610
616
  * Consolidated site overview
611
- * @description Mixed route family. In `Strict`, the response still includes the
612
- * strict-safe overview baseline plus an acquisition-lite preview built
613
- * from channels, host-only referrers, and landing pages. Read
614
- * `availability.readModel` for the baseline split, then inspect
615
- * `availability.sections` for enriched slices that remain locked.
617
+ * @description Audience, content and acquisition of the site over the requested
618
+ * period. `avg_pages_per_session`, `avg_session_eng_time_ms` and
619
+ * `avg_page_eng_time_ms` are `null` when fewer than ten visits
620
+ * contribute; they are never published as `0` in that case. Channels belong to the Campagnes
621
+ * option: `acquisition.by_channel` holds visits with consent and is empty
622
+ * without the option.
616
623
  */
617
624
  get: {
618
625
  parameters: {
619
626
  query: {
620
627
  /** @description Compare current range against the previous equivalent period. */
621
628
  compare?: components["parameters"]["CompareParam"];
622
- /** @description Inclusive UTC start date (YYYY-MM-DD). Pass explicit from and to dates to bound the requested period. */
629
+ /** @description Inclusive start date (YYYY-MM-DD), a day of the site's time zone (a UTC date for usage history). Pass explicit from and to dates to bound the requested period. */
623
630
  from?: components["parameters"]["FromDate"];
624
631
  /** @description Number of rows returned by top lists for report endpoints. */
625
632
  limit?: components["parameters"]["ReportLimit"];
@@ -630,7 +637,7 @@ export interface paths {
630
637
  * `tenant_id` identifies one tenant.
631
638
  */
632
639
  tenant_id?: components["parameters"]["TenantId"];
633
- /** @description Inclusive UTC end date (`YYYY-MM-DD`). Defaults to today. */
640
+ /** @description Inclusive end date (`YYYY-MM-DD`), a day of the site's time zone (a UTC date for usage history). Defaults to today. */
634
641
  to?: components["parameters"]["ToDate"];
635
642
  /** @description Traffic segment to include. */
636
643
  traffic?: components["parameters"]["TrafficParam"];
@@ -644,11 +651,7 @@ export interface paths {
644
651
  };
645
652
  requestBody?: never;
646
653
  responses: {
647
- /**
648
- * @description OK. Mixed route: the strict-safe overview slice succeeded. Inspect
649
- * `availability.sections` for enriched or geo-detail sections that
650
- * remain locked or only partially compatible.
651
- */
654
+ /** @description OK */
652
655
  200: {
653
656
  headers: {
654
657
  "X-RateLimit-Limit": components["headers"]["XRateLimitLimit"];
@@ -830,9 +833,9 @@ export interface paths {
830
833
  get: {
831
834
  parameters: {
832
835
  query?: {
833
- /** @description Inclusive UTC start date (YYYY-MM-DD). Pass explicit from and to dates to bound the requested period. */
836
+ /** @description Inclusive start date (YYYY-MM-DD), a day of the site's time zone (a UTC date for usage history). Pass explicit from and to dates to bound the requested period. */
834
837
  from?: components["parameters"]["FromDate"];
835
- /** @description Inclusive UTC end date (`YYYY-MM-DD`). Defaults to today. */
838
+ /** @description Inclusive end date (`YYYY-MM-DD`), a day of the site's time zone (a UTC date for usage history). Defaults to today. */
836
839
  to?: components["parameters"]["ToDate"];
837
840
  };
838
841
  header?: {
@@ -875,83 +878,100 @@ export interface components {
875
878
  AcquisitionChannelItem: {
876
879
  /** @enum {string} */
877
880
  channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
878
- sessions: number;
881
+ sessions: number | null;
879
882
  };
883
+ /**
884
+ * @description Visits with and without a referring domain. A direct visit has no
885
+ * referring domain.
886
+ */
880
887
  AcquisitionCoverage: {
881
- direct_sessions: number;
882
- direct_share: number;
883
- non_direct_sessions: number;
884
- non_direct_share: number;
885
- tagged_sessions: number;
886
- tagged_share: number;
888
+ direct_sessions: number | null;
889
+ direct_share: number | null;
890
+ non_direct_sessions: number | null;
891
+ non_direct_share: number | null;
887
892
  };
888
893
  AcquisitionDetailsReportResponse: components["schemas"]["UserApiAcquisitionReportMeta"] & {
889
894
  compare: components["schemas"]["UserApiAcquisitionDetailsCurrent"] | null;
890
895
  current: components["schemas"]["UserApiAcquisitionDetailsCurrent"];
891
896
  };
892
897
  AcquisitionDimensionImpactItem: {
893
- converted_sessions: number;
894
- session_conversion_rate: number;
898
+ converted_sessions: number | null;
899
+ session_conversion_rate: number | null;
895
900
  value: string;
896
901
  };
897
902
  AcquisitionDimensionItem: components["schemas"]["AcquisitionSummaryTotals"] & {
898
903
  favicon_url?: string | null;
899
- share: number;
904
+ share: number | null;
900
905
  value: string;
901
906
  };
902
907
  AcquisitionFullReportResponse: components["schemas"]["UserApiAcquisitionEnvelope"] & {
903
908
  meta: components["schemas"]["MeteredMeta"];
904
909
  };
905
910
  /**
906
- * @description Extended-only goal impact. Each dimension comes from the visit's
911
+ * @description Goal impact by landing page. The landing page comes from the visit's
907
912
  * canonical first pageview in the requested scope. A converted visit
908
- * matches at least one selected goal through an eligible Extended event;
909
- * repeated matches count once. Rates divide converted visits by eligible
910
- * Extended visits in the same dimension, period and traffic scope.
913
+ * matches at least one selected goal; repeated matches count once. Rates
914
+ * divide converted visits by visits in the same landing page, period and
915
+ * traffic scope. `channels`, `sources`, `mediums` and `campaigns` belong
916
+ * to the Campagnes option: they are computed on visits whose visitor gave
917
+ * consent and are empty without the option.
911
918
  */
912
919
  AcquisitionImpact: {
913
920
  campaigns: components["schemas"]["AcquisitionDimensionImpactItem"][];
921
+ /** @description Computed on visits with consent (Campagnes option); empty without the option. */
914
922
  channels: {
915
923
  /** @enum {string} */
916
924
  channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
917
- converted_sessions: number;
918
- session_conversion_rate: number;
925
+ converted_sessions: number | null;
926
+ session_conversion_rate: number | null;
919
927
  }[];
920
928
  landing_pages: {
921
- converted_sessions: number;
929
+ converted_sessions: number | null;
922
930
  path_canon: string | null;
923
- session_conversion_rate: number;
931
+ session_conversion_rate: number | null;
924
932
  }[];
925
933
  mediums: components["schemas"]["AcquisitionDimensionImpactItem"][];
934
+ /** @description Computed on visits with consent (Campagnes option); empty without the option. */
926
935
  sources: components["schemas"]["AcquisitionDimensionImpactItem"][];
927
936
  };
928
937
  AcquisitionLandingPageSummaryItem: components["schemas"]["AcquisitionSummaryTotals"] & {
929
938
  page_title?: string | null;
930
939
  path_canon: string | null;
931
- /** @enum {string} */
932
- primary_channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
933
- share: number;
940
+ share: number | null;
941
+ };
942
+ /**
943
+ * @description A named source of the provenance, all visits. `domains` lists its
944
+ * domains of ten visits or more; the rest of the source is its other
945
+ * domains.
946
+ */
947
+ AcquisitionReferrerSourceItem: components["schemas"]["AcquisitionDimensionItem"] & {
948
+ domains: components["schemas"]["AcquisitionDimensionItem"][];
949
+ type: components["schemas"]["ReferrerType"];
950
+ };
951
+ /** @description Visits by type of referring site, all visits. */
952
+ AcquisitionReferrerTypeItem: components["schemas"]["AcquisitionSummaryTotals"] & {
953
+ share: number | null;
954
+ value: components["schemas"]["ReferrerType"];
934
955
  };
935
956
  /** @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. */
936
957
  AcquisitionReportResponse: components["schemas"]["AcquisitionFullReportResponse"] | components["schemas"]["AcquisitionSummaryReportResponse"] | components["schemas"]["AcquisitionDetailsReportResponse"];
937
958
  AcquisitionSummaryChannelItem: components["schemas"]["AcquisitionChannelItem"] & components["schemas"]["AcquisitionSummaryTotals"] & {
938
- share: number;
959
+ share: number | null;
939
960
  };
940
961
  AcquisitionSummaryReportResponse: components["schemas"]["UserApiAcquisitionReportMeta"] & {
941
962
  compare: components["schemas"]["UserApiAcquisitionSummaryCurrent"] | null;
942
963
  current: components["schemas"]["UserApiAcquisitionSummaryCurrent"];
943
964
  };
944
965
  AcquisitionSummaryTotals: {
945
- avg_pages_per_session: number;
946
- avg_session_eng_time_ms: number;
947
- engagement_rate: number;
948
- sessions: number;
966
+ avg_pages_per_session: number | null;
967
+ avg_session_eng_time_ms: number | null;
968
+ engagement_rate: number | null;
969
+ sessions: number | null;
949
970
  };
950
971
  ActionsCurrent: {
951
972
  /**
952
- * @description Exact action rows for the active envelope. On Strict sites, this
953
- * list is limited to bounded simple actions and stays readable in
954
- * HTTP `200`; advanced families remain section-gated.
973
+ * @description Action rows of the active family, or of every family when none is
974
+ * selected.
955
975
  */
956
976
  actions: {
957
977
  /** @description Stable element/action identifier when the action row can be narrowed by it. */
@@ -967,25 +987,21 @@ export interface components {
967
987
  form_action_path?: string | null;
968
988
  /** @description Form identifier when the form action row can be narrowed by it. */
969
989
  form_id?: string | null;
970
- occurrences: number;
971
- sessions: number;
990
+ occurrences: number | null;
991
+ sessions: number | null;
992
+ /** @description Derived from the published counts only; it reveals nothing finer than them. */
993
+ share?: number | null;
972
994
  top_page?: string | null;
973
- /** @enum {string|null} */
974
- top_source?: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other" | null;
975
995
  }[];
976
996
  /** @enum {string|null} */
977
997
  active_family: "goals" | "forms" | "outbound" | "downloads" | "errors" | "custom" | "instrumentation" | null;
978
- /**
979
- * @description Shared breakdown context for the active action envelope. Advanced
980
- * action families can remain unavailable even when the route itself
981
- * succeeds; inspect `availability.sections`.
982
- */
998
+ /** @description Pages and segments around the active family or action. */
983
999
  context: {
984
1000
  pages: {
985
1001
  path_canon?: string | null;
986
1002
  /** @enum {string} */
987
1003
  scope: "family" | "action";
988
- sessions: number;
1004
+ sessions: number | null;
989
1005
  }[];
990
1006
  segments: {
991
1007
  /** @enum {string} */
@@ -993,51 +1009,43 @@ export interface components {
993
1009
  label: string;
994
1010
  /** @enum {string} */
995
1011
  scope: "family" | "action";
996
- sessions: number;
997
- }[];
998
- sources: {
999
- /** @enum {string} */
1000
- channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
1001
- /** @enum {string} */
1002
- scope: "family" | "action";
1003
- sessions: number;
1012
+ sessions: number | null;
1004
1013
  }[];
1005
1014
  };
1006
1015
  /**
1007
- * @description Family summary for the current action envelope. On Strict sites,
1008
- * simple bounded families remain available; richer families are
1009
- * exposed through `availability.sections` as `actions_advanced`.
1016
+ * @description Summary of each action family: goals, forms, outbound, downloads,
1017
+ * errors, custom and instrumentation.
1010
1018
  */
1011
1019
  families: {
1012
1020
  /** @enum {string} */
1013
1021
  family: "goals" | "forms" | "outbound" | "downloads" | "errors" | "custom" | "instrumentation";
1014
- occurrences: number;
1015
- sessions: number;
1022
+ occurrences: number | null;
1023
+ sessions: number | null;
1016
1024
  }[];
1017
1025
  family_timeseries: {
1018
1026
  /** Format: date */
1019
1027
  date: string;
1020
1028
  /** @enum {string} */
1021
1029
  family: "goals" | "forms" | "outbound" | "downloads" | "errors" | "custom" | "instrumentation";
1022
- occurrences: number;
1023
- sessions: number;
1030
+ occurrences: number | null;
1031
+ sessions: number | null;
1024
1032
  }[];
1025
1033
  goals_configured: boolean;
1026
1034
  timeseries: {
1027
1035
  /** Format: date */
1028
1036
  date: string;
1029
- error_sessions: number;
1030
- instrumentation_sessions: number;
1031
- meaningful_action_sessions: number;
1032
- meaningful_occurrences: number;
1033
- total_sessions: number;
1037
+ error_sessions: number | null;
1038
+ instrumentation_sessions: number | null;
1039
+ meaningful_action_sessions: number | null;
1040
+ meaningful_occurrences: number | null;
1041
+ total_sessions: number | null;
1034
1042
  }[];
1035
1043
  totals: {
1036
- error_sessions: number;
1037
- instrumentation_sessions: number;
1038
- meaningful_action_sessions: number;
1039
- meaningful_occurrences: number;
1040
- total_sessions: number;
1044
+ error_sessions: number | null;
1045
+ instrumentation_sessions: number | null;
1046
+ meaningful_action_sessions: number | null;
1047
+ meaningful_occurrences: number | null;
1048
+ total_sessions: number | null;
1041
1049
  };
1042
1050
  };
1043
1051
  ActionsReportResponse: components["schemas"]["UserApiActionsEnvelope"] & {
@@ -1072,59 +1080,64 @@ export interface components {
1072
1080
  tenant_name?: string | null;
1073
1081
  /** @description Current routing slug for tenant breakdown rows. */
1074
1082
  tenant_slug?: string | null;
1075
- value: number;
1083
+ value: number | null;
1076
1084
  };
1077
1085
  ContentFullCurrent: {
1078
1086
  entries?: {
1079
- bounce_rate: number;
1080
- entries: number;
1087
+ bounce_rate: number | null;
1088
+ entries: number | null;
1081
1089
  page_title?: string | null;
1082
1090
  path_canon: string | null;
1083
1091
  }[];
1084
1092
  exits?: {
1085
- exit_rate: number;
1086
- exits: number;
1093
+ exit_rate: number | null;
1094
+ exits: number | null;
1087
1095
  page_title?: string | null;
1088
1096
  path_canon: string | null;
1089
1097
  }[];
1090
1098
  /** @enum {string} */
1091
1099
  include: "full";
1092
1100
  /**
1093
- * @description One measurement method selected from the current period and reused for comparison.
1101
+ * @description The only Web Vitals measurement method served.
1094
1102
  * @enum {string}
1095
1103
  */
1096
- metric_method?: "legacy" | "web-vitals-6.2.3-cls1";
1104
+ metric_method?: "web-vitals-6.2.3-cls1";
1097
1105
  pages: {
1098
- avg_page_eng_time_ms: number;
1106
+ avg_page_eng_time_ms: number | null;
1099
1107
  avg_scroll_depth?: number | null;
1100
- bounces: number;
1101
- entries: number;
1102
- exit_rate: number;
1103
- exits: number;
1104
- page_bounce_rate: number;
1108
+ bounces: number | null;
1109
+ entries: number | null;
1110
+ exit_rate: number | null;
1111
+ exits: number | null;
1112
+ page_bounce_rate: number | null;
1105
1113
  page_title?: string | null;
1106
- pageviews: number;
1114
+ pageviews: number | null;
1107
1115
  path_canon: string | null;
1108
1116
  performance?: {
1109
- n_cls?: number;
1110
- n_fcp?: number;
1111
- n_inp?: number;
1112
- n_lcp?: number;
1113
- n_ttfb?: number;
1117
+ n_cls?: number | null;
1118
+ n_fcp?: number | null;
1119
+ n_inp?: number | null;
1120
+ n_lcp?: number | null;
1121
+ n_ttfb?: number | null;
1114
1122
  p75_cls: number | null;
1115
1123
  p75_fcp?: number | null;
1116
1124
  p75_inp: number | null;
1117
1125
  p75_lcp: number | null;
1118
1126
  p75_ttfb: number | null;
1119
- samples: number;
1127
+ samples: number | null;
1120
1128
  } | null;
1121
- unique_pageviews: number;
1129
+ /** @description Derived from the published counts only; it reveals nothing finer than them. */
1130
+ share?: number | null;
1131
+ unique_pageviews: number | null;
1122
1132
  }[];
1123
1133
  timeseries: {
1124
1134
  /** Format: date */
1125
1135
  date: string;
1126
- pageviews: number;
1136
+ pageviews: number | null;
1127
1137
  path_canon: string;
1138
+ /** @description Visible page paths only (not `(other)`). Derived from the published counts only; it reveals nothing finer than them. */
1139
+ share?: number | null;
1140
+ total_pageviews?: number | null;
1128
1141
  }[];
1129
1142
  totals: components["schemas"]["ContentTotals"];
1130
1143
  };
@@ -1140,14 +1153,18 @@ export interface components {
1140
1153
  /** @enum {string} */
1141
1154
  include: "summary";
1142
1155
  /**
1143
- * @description Dense, strictly increasing UTC daily series. It contains exactly
1144
- * one point per requested day, including zero-valued empty days, and
1145
- * its pageview sum equals `totals.pageviews`.
1156
+ * @description Dense, strictly increasing daily series in the site's time zone. It
1157
+ * contains exactly one point per requested day, including zero-valued
1158
+ * empty days. The
1159
+ * exact daily pageviews add up to the exact period total, but each
1160
+ * point and `totals.pageviews` are published independently: a count
1161
+ * from 1 to 9 is published as `null` (« < 10 »; zero stays `0`), so
1162
+ * the returned points cannot be added up; use `totals.pageviews`.
1146
1163
  */
1147
1164
  timeseries: {
1148
1165
  /** Format: date */
1149
1166
  date: string;
1150
- pageviews: number;
1167
+ pageviews: number | null;
1151
1168
  }[];
1152
1169
  totals: components["schemas"]["ContentTotals"];
1153
1170
  };
@@ -1155,35 +1172,16 @@ export interface components {
1155
1172
  meta: components["schemas"]["MeteredMeta"];
1156
1173
  };
1157
1174
  ContentTotals: {
1158
- avg_page_eng_time_ms: number;
1159
- bounce_rate: number;
1160
- entries: number;
1161
- exit_rate: number;
1162
- pageviews: number;
1163
- unique_pageviews: number;
1164
- };
1165
- DerivedProductCapability: {
1166
- /** @enum {string} */
1167
- data_envelope: "strict" | "extended" | "mixed";
1168
- /** @enum {string} */
1169
- level: "none" | "limited" | "standard" | "guardrailed" | "advanced" | "custom";
1170
- /** @enum {string} */
1171
- maturity: "implemented" | "partially_implemented" | "not_explicitly_split" | "not_applicable";
1172
- notes: string[];
1173
- };
1174
- EffectiveProductCapabilities: {
1175
- acquisition: components["schemas"]["DerivedProductCapability"];
1176
- advanced_actions: components["schemas"]["DerivedProductCapability"];
1177
- api: components["schemas"]["DerivedProductCapability"];
1178
- collection: components["schemas"]["DerivedProductCapability"];
1179
- dashboard_surfaces: string[];
1180
- exports: components["schemas"]["DerivedProductCapability"];
1181
- multi_tenant: components["schemas"]["DerivedProductCapability"];
1182
- reports: components["schemas"]["DerivedProductCapability"];
1175
+ avg_page_eng_time_ms: number | null;
1176
+ bounce_rate: number | null;
1177
+ entries: number | null;
1178
+ exit_rate: number | null;
1179
+ pageviews: number | null;
1180
+ unique_pageviews: number | null;
1183
1181
  };
1184
1182
  ErrorBody: {
1185
1183
  /** @enum {string} */
1186
- 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";
1184
+ code: "UNAUTHORIZED" | "FORBIDDEN" | "INVALID_METHOD" | "INVALID_PARAMS" | "RETENTION_EXCEEDED" | "RATE_LIMITED" | "HARD_CAP_REACHED" | "REPORT_NOT_AVAILABLE_FOR_REQUESTED_PERIOD" | "REPORT_RESPONSE_TOO_LARGE" | "INTERNAL_ERROR" | "NOT_FOUND";
1187
1185
  details?: {
1188
1186
  [key: string]: unknown;
1189
1187
  } | null;
@@ -1212,13 +1210,24 @@ export interface components {
1212
1210
  GoalListResponse: {
1213
1211
  items: components["schemas"]["Goal"][];
1214
1212
  };
1213
+ /**
1214
+ * @description Goals whose selected population is below the reporting minimum or
1215
+ * whose converted-session cohort is below the per-cell minimum are
1216
+ * omitted. Consumers must not infer zero when a configured goal is absent.
1217
+ */
1215
1218
  GoalsConversionsCurrent: {
1216
1219
  goals: {
1217
- conversions: number;
1220
+ conversions: number | null;
1218
1221
  goal_id: string;
1219
1222
  last_seen_at: string | null;
1220
- total_sessions: number;
1221
- unique_sessions: number;
1223
+ /**
1224
+ * @description Always `available` for returned goal rows. Suppressed goals
1225
+ * are omitted rather than returned with zero.
1226
+ * @enum {string}
1227
+ */
1228
+ reporting_status?: "available" | "suppressed_small_group" | "insufficient_population";
1229
+ total_sessions: number | null;
1230
+ unique_sessions: number | null;
1222
1231
  }[];
1223
1232
  };
1224
1233
  GoalsConversionsEnvelope: {
@@ -1226,6 +1235,7 @@ export interface components {
1226
1235
  compare: components["schemas"]["GoalsConversionsCurrent"] | null;
1227
1236
  current: components["schemas"]["GoalsConversionsCurrent"];
1228
1237
  range: components["schemas"]["Range"];
1238
+ small_site?: components["schemas"]["SmallSiteBasis"] | null;
1229
1239
  };
1230
1240
  GoalsConversionsResponse: components["schemas"]["GoalsConversionsEnvelope"] & {
1231
1241
  meta: components["schemas"]["MeteredMeta"];
@@ -1234,22 +1244,11 @@ export interface components {
1234
1244
  /** Format: uri */
1235
1245
  docs_url: string;
1236
1246
  org_id: string;
1237
- /**
1238
- * @deprecated
1239
- * @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.
1240
- * @enum {string}
1241
- */
1242
- plan_id: "free" | "starter" | "pro";
1243
1247
  product: components["schemas"]["WorkspaceProductConfiguration"];
1244
1248
  quotas: components["schemas"]["Quotas"];
1245
1249
  rate_limits: {
1246
1250
  rps: number;
1247
1251
  };
1248
- /**
1249
- * @deprecated
1250
- * @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.
1251
- */
1252
- retention_days: number;
1253
1252
  };
1254
1253
  MeteredMeta: {
1255
1254
  billable_overage: boolean;
@@ -1260,50 +1259,55 @@ export interface components {
1260
1259
  };
1261
1260
  OverviewCurrent: {
1262
1261
  acquisition: {
1262
+ /**
1263
+ * @description Visits with consent by channel (Campagnes option); empty
1264
+ * without the option.
1265
+ */
1263
1266
  by_channel: components["schemas"]["AcquisitionChannelItem"][];
1264
1267
  top_landing_pages: {
1265
- /** @enum {string} */
1266
- channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
1267
1268
  page_title?: string | null;
1268
1269
  path_canon: string | null;
1269
- sessions: number;
1270
+ sessions: number | null;
1270
1271
  }[];
1272
+ /**
1273
+ * @description Named sources, all visits: the domains of one service under
1274
+ * its name, counted before the ten-visit threshold.
1275
+ */
1276
+ top_referrer_sources: components["schemas"]["TopReferrerSource"][];
1271
1277
  top_referrers: components["schemas"]["TopReferrer"][];
1272
1278
  };
1273
1279
  audience: {
1274
1280
  browsers: {
1275
1281
  browser_family: string;
1276
- sessions: number;
1282
+ sessions: number | null;
1277
1283
  }[];
1278
1284
  /**
1279
- * @description Mixed overview audience slice. When unavailable, inspect
1280
- * `availability.sections` for `overview_cities`.
1285
+ * @description Cities of ten visits or more. The city is read alone: the list
1286
+ * is empty with a hostname, client space, filter or segment.
1281
1287
  */
1282
- cities: {
1288
+ cities?: {
1283
1289
  city: string;
1284
1290
  country: string;
1285
- sessions: number;
1291
+ sessions: number | null;
1286
1292
  }[];
1287
1293
  countries: {
1288
1294
  country: string;
1289
- sessions: number;
1295
+ sessions: number | null;
1290
1296
  }[];
1291
1297
  devices: {
1298
+ avg_pages_per_session?: number | null;
1299
+ avg_session_eng_time_ms?: number | null;
1292
1300
  device_type: string;
1293
- sessions: number;
1301
+ sessions: number | null;
1294
1302
  }[];
1295
1303
  os: {
1296
1304
  os_family: string;
1297
- sessions: number;
1305
+ sessions: number | null;
1298
1306
  }[];
1299
- /**
1300
- * @description Mixed overview audience slice. When unavailable, inspect
1301
- * `availability.sections` for `overview_regions`.
1302
- */
1303
1307
  regions: {
1304
1308
  country: string;
1305
1309
  region: string;
1306
- sessions: number;
1310
+ sessions: number | null;
1307
1311
  }[];
1308
1312
  };
1309
1313
  content: {
@@ -1313,7 +1317,7 @@ export interface components {
1313
1317
  };
1314
1318
  top_pages: {
1315
1319
  page_title?: string | null;
1316
- pageviews: number;
1320
+ pageviews: number | null;
1317
1321
  path_canon: string | null;
1318
1322
  }[];
1319
1323
  };
@@ -1322,25 +1326,25 @@ export interface components {
1322
1326
  };
1323
1327
  overview: {
1324
1328
  timeseries: {
1325
- avg_page_eng_time_ms: number;
1326
- avg_session_eng_time_ms: number;
1327
- bounce_rate: number;
1329
+ avg_page_eng_time_ms: number | null;
1330
+ avg_session_eng_time_ms: number | null;
1331
+ bounce_rate: number | null;
1328
1332
  /** Format: date */
1329
1333
  date: string;
1330
- engagement_rate: number;
1331
- pageviews: number;
1332
- sessions: number;
1333
- visitors: number;
1334
+ engagement_rate: number | null;
1335
+ pageviews: number | null;
1336
+ sessions: number | null;
1337
+ visitors: number | null;
1334
1338
  }[];
1335
1339
  totals: {
1336
- avg_page_eng_time_ms: number;
1337
- avg_pages_per_session: number;
1338
- avg_session_eng_time_ms: number;
1339
- bounce_rate: number;
1340
- engagement_rate: number;
1341
- pageviews: number;
1342
- sessions: number;
1343
- visitors: number;
1340
+ avg_page_eng_time_ms: number | null;
1341
+ avg_pages_per_session: number | null;
1342
+ avg_session_eng_time_ms: number | null;
1343
+ bounce_rate: number | null;
1344
+ engagement_rate: number | null;
1345
+ pageviews: number | null;
1346
+ sessions: number | null;
1347
+ visitors: number | null;
1344
1348
  };
1345
1349
  /** @enum {string} */
1346
1350
  visitors_mode: "sessions" | "daily_uniques";
@@ -1367,18 +1371,10 @@ export interface components {
1367
1371
  usage_history_months: number;
1368
1372
  };
1369
1373
  ProductDashboard: {
1370
- /** @enum {string} */
1371
- breakdowns_high_cardinality_level: "none" | "limited" | "standard" | "guardrailed" | "advanced" | "custom";
1372
- /** @enum {string} */
1373
- breakdowns_standard_level: "none" | "limited" | "standard" | "guardrailed" | "advanced" | "custom";
1374
- /** @enum {string} */
1375
- essential_level: "none" | "limited" | "standard" | "guardrailed" | "advanced" | "custom";
1376
1374
  hourly_enabled: boolean;
1377
1375
  /** @enum {string} */
1378
1376
  hourly_level: "none" | "limited" | "standard" | "guardrailed" | "advanced" | "custom";
1379
1377
  /** @enum {string} */
1380
- standard_level: "none" | "limited" | "standard" | "guardrailed" | "advanced" | "custom";
1381
- /** @enum {string} */
1382
1378
  team_management_level: "none" | "limited" | "standard" | "guardrailed" | "advanced" | "custom";
1383
1379
  };
1384
1380
  ProductExports: {
@@ -1416,60 +1412,46 @@ export interface components {
1416
1412
  end: string;
1417
1413
  /** Format: date-time */
1418
1414
  start: string;
1415
+ /**
1416
+ * @description IANA time zone of the site, present when it is not UTC (absent:
1417
+ * UTC). The requested dates, the daily `date` values and the hourly
1418
+ * buckets follow it; `start` and `end` are the matching instants in
1419
+ * UTC.
1420
+ */
1421
+ timezone?: string;
1419
1422
  };
1420
1423
  /**
1421
- * @description Availability contract for profile-aware reads.
1422
- *
1423
- * For `mixed` routes, HTTP `200` means the strict-safe base slice was
1424
- * returned successfully. `readModel` tells you which slices belong to
1425
- * the strict-safe baseline and which belong to `Extended`.
1426
- * Section-level locks or partial compatibility for enriched sub-slices
1427
- * are reported in `sections`.
1424
+ * @description Type of referring site, read from the referring domain alone through
1425
+ * a fixed table. It never separates paid from organic.
1426
+ * @enum {string}
1427
+ */
1428
+ ReferrerType: "search" | "social" | "messaging" | "ai_assistant" | "other";
1429
+ /**
1430
+ * @description Availability of a report for the requested period and its comparison
1431
+ * period. `sections` lists the parts of the report that belong to the
1432
+ * Campagnes option; each one is reported with the reason
1433
+ * `campaigns_option_required` while the option is off.
1428
1434
  */
1429
1435
  ReportAvailability: {
1430
- classification: components["schemas"]["ReportAvailabilityClassification"];
1431
- /** Format: date-time */
1432
- collectionProfileEffectiveAt: string | null;
1433
1436
  compare: components["schemas"]["ReportPeriodAvailability"] | null;
1434
- /**
1435
- * @description Route-level availability for the current range. On `mixed` routes,
1436
- * `status=available` means the strict-safe base slice is readable;
1437
- * inspect `sections` for enriched sub-slices that remain locked or
1438
- * partial.
1439
- */
1440
1437
  current: components["schemas"]["ReportPeriodAvailability"];
1441
- /** @enum {string} */
1442
- currentProfile: "strict" | "extended";
1443
- readModel?: components["schemas"]["ReportAvailabilityReadModel"] | null;
1444
1438
  route: components["schemas"]["ReportAvailabilityRouteId"];
1445
- /**
1446
- * @description Section-level availability for mixed routes. Each entry describes
1447
- * an enriched sub-slice that may remain locked or partially
1448
- * compatible while the enclosing route still returns HTTP `200`.
1449
- */
1450
1439
  sections: components["schemas"]["ReportSectionAvailability"][];
1451
1440
  };
1452
- /** @enum {string} */
1453
- ReportAvailabilityClassification: "strict_safe" | "extended_only" | "mixed";
1454
1441
  /**
1455
- * @description Explicit read-model for mixed routes. `strictSafe` lists the baseline
1456
- * slices that remain available in `Strict`; `extended` lists the
1457
- * enriched slices unlocked by `Extended`.
1442
+ * @description - `campaigns_option_required`: the data belongs to the Campagnes
1443
+ * option, which is not enabled on the site.
1444
+ * - `outside_source_coverage`: the requested period is not covered by
1445
+ * collected data.
1446
+ * @enum {string|null}
1458
1447
  */
1459
- ReportAvailabilityReadModel: {
1460
- extended: components["schemas"]["ReportAvailabilityReadModelSliceId"][];
1461
- strictSafe: components["schemas"]["ReportAvailabilityReadModelSliceId"][];
1462
- };
1463
- /** @description Opaque identifier for a data slice within an availability result. */
1464
- ReportAvailabilityReadModelSliceId: string;
1465
- /** @enum {string|null} */
1466
- 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;
1448
+ ReportAvailabilityReason: "campaigns_option_required" | "outside_source_coverage" | null;
1467
1449
  /** @description Opaque identifier for the route associated with this availability result. */
1468
1450
  ReportAvailabilityRouteId: string;
1469
1451
  /** @description Opaque identifier for a section within an availability result. */
1470
1452
  ReportAvailabilitySectionId: string;
1471
1453
  /** @enum {string} */
1472
- ReportAvailabilityStatus: "available" | "locked_by_profile" | "partially_available_after_effective_at" | "partially_available_outside_source_coverage" | "not_available_for_requested_period";
1454
+ ReportAvailabilityStatus: "available" | "partially_available_outside_source_coverage" | "not_available_for_requested_period";
1473
1455
  ReportPeriodAvailability: {
1474
1456
  /** Format: date-time */
1475
1457
  compatibleEnd: string | null;
@@ -1483,12 +1465,11 @@ export interface components {
1483
1465
  status: components["schemas"]["ReportAvailabilityStatus"];
1484
1466
  };
1485
1467
  /**
1486
- * @description Section-level availability for mixed routes. A mixed route can return
1487
- * HTTP `200` while one or more enriched sections remain locked or only
1488
- * partially compatible for the requested period.
1468
+ * @description Availability of a report section that belongs to the Campagnes option.
1469
+ * The report itself is returned with HTTP `200`; the section is empty
1470
+ * when the site does not have the option.
1489
1471
  */
1490
1472
  ReportSectionAvailability: {
1491
- classification: components["schemas"]["ReportAvailabilityClassification"];
1492
1473
  compare: components["schemas"]["ReportPeriodAvailability"] | null;
1493
1474
  current: components["schemas"]["ReportPeriodAvailability"];
1494
1475
  id: components["schemas"]["ReportAvailabilitySectionId"];
@@ -1510,27 +1491,42 @@ export interface components {
1510
1491
  };
1511
1492
  SiteProductConfiguration: {
1512
1493
  api: components["schemas"]["ProductApi"];
1513
- capabilities: components["schemas"]["EffectiveProductCapabilities"];
1514
- /** @enum {string} */
1515
- collection_profile: "strict" | "extended";
1516
- /**
1517
- * Format: date-time
1518
- * @description Timestamp from which the current site profile applies to future collection. This is prospective only and does not backfill older events.
1519
- */
1520
- collection_profile_effective_at: string | null;
1521
- dashboard: components["schemas"]["SiteProductDashboard"];
1494
+ /** @description Campagnes option of the site: marketing reports (channels, sources, mediums, campaigns) computed on visits whose visitor gave consent. Off by default; the owner or an admin of the workspace sets it, on every plan. */
1495
+ campaigns_enabled: boolean;
1496
+ dashboard: components["schemas"]["ProductDashboard"];
1522
1497
  exports: components["schemas"]["ProductExports"];
1523
1498
  product_retention: components["schemas"]["ProductRetention"];
1524
1499
  /** @enum {string} */
1525
1500
  runtime_plan_id: "free" | "starter" | "pro";
1526
- technical_retention: components["schemas"]["TechnicalRetention"];
1527
- };
1528
- SiteProductDashboard: components["schemas"]["ProductDashboard"] & {
1529
- enabled_surfaces: string[];
1530
1501
  };
1531
1502
  SitesResponse: {
1532
1503
  items: components["schemas"]["SiteItem"][];
1533
1504
  };
1505
+ /**
1506
+ * @description Small-site rule. A rate, a mean or a percentile needs ten contributors;
1507
+ * below, it is `null` in `current`. When the requested period has fewer,
1508
+ * these are the same totals over the shortest calendar period (ISO week,
1509
+ * month, quarter, year) that contains it and counts ten contributors.
1510
+ * Complement rule: when a filter sets apart 1 to 9 visits of the site in
1511
+ * the requested period, its rates, means, durations and percentiles are
1512
+ * `null` (rows included, and in `compare`), and these totals come from
1513
+ * the shortest such period where the filter sets apart none or at least
1514
+ * ten visits (`reason: filter_complement`). Counts are unchanged.
1515
+ * Absent or `null` when no such period exists.
1516
+ */
1517
+ SmallSiteBasis: {
1518
+ period: {
1519
+ /** Format: date-time */
1520
+ end: string;
1521
+ /** Format: date-time */
1522
+ start: string;
1523
+ };
1524
+ /** @enum {string} */
1525
+ reason?: "small_site" | "filter_complement";
1526
+ totals: {
1527
+ [key: string]: number | null;
1528
+ };
1529
+ };
1534
1530
  /** @description Compare window metadata for report and metrics surfaces. */
1535
1531
  SurfaceCompareWindow: {
1536
1532
  /** Format: date-time */
@@ -1555,23 +1551,23 @@ export interface components {
1555
1551
  SurfaceExportCapability: {
1556
1552
  csv: boolean;
1557
1553
  /** @enum {string} */
1558
- dataEnvelope: "strict" | "extended" | "mixed";
1559
- /** @enum {string} */
1560
1554
  level: "none" | "limited" | "standard" | "guardrailed" | "advanced" | "custom";
1561
1555
  notes?: string[];
1562
1556
  };
1563
- /** @description Additive launch-readiness metadata for reports and metrics. */
1557
+ /** @description Additive metadata for reports and metrics. */
1564
1558
  SurfaceMeta: {
1565
1559
  compareWindow: components["schemas"]["SurfaceCompareWindow"];
1566
- /** @enum {string} */
1567
- dataEnvelope: "strict" | "extended" | "mixed";
1568
1560
  dataFreshness: components["schemas"]["SurfaceDataFreshness"];
1569
1561
  exportCapability: components["schemas"]["SurfaceExportCapability"];
1570
- /** @enum {string} */
1571
- mode: "strict" | "extended";
1572
- };
1573
- TechnicalRetention: {
1574
- site_data_retention_months: number;
1562
+ /** @description Analytics counts are exact from 10 and 0 is a measured empty count. A count of 1..9 is `null` in totals, list rows and time series points alike: render it as less than 10, never as a number. A field absent from a response was not measured. Totals are computed on exact values, then published by the same rule; never add up displayed values. A share is `null` for a row under 10 visits. A change (`delta`, `delta_pct`) is published only when both counts are, and `delta_pct` is a ratio (0.56 is +56%). Rates are published to the percent; 0.005 and 0.995 represent the open tails below 1% and above 99%. Rates, means, durations and percentiles are null under 10 contributors. Last conversion dates have day precision. Usage metering, billing, limits and diagnostics remain exact. This policy reduces detail; it is not a guarantee of anonymity. */
1563
+ reportingPrecision?: {
1564
+ /** @enum {integer} */
1565
+ minimumCount: 10;
1566
+ /** @enum {number} */
1567
+ rateStep: 0.01;
1568
+ /** @enum {string} */
1569
+ version: "exact-masked-counts-v1";
1570
+ };
1575
1571
  };
1576
1572
  TenantItem: {
1577
1573
  /** @enum {string} */
@@ -1588,22 +1584,27 @@ export interface components {
1588
1584
  };
1589
1585
  TimeseriesPoint: {
1590
1586
  ts: string;
1591
- value: number;
1587
+ value: number | null;
1592
1588
  };
1593
1589
  TimeseriesResponse: {
1594
1590
  availability: components["schemas"]["ReportAvailability"];
1595
1591
  meta: components["schemas"]["MeteredMeta"];
1592
+ period_total: number | null;
1596
1593
  points: components["schemas"]["TimeseriesPoint"][];
1597
1594
  };
1598
1595
  TopReferrer: {
1599
- /** @enum {string} */
1600
- channel?: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
1601
1596
  domain: string;
1602
1597
  favicon_url?: string | null;
1603
- sessions: number;
1598
+ sessions: number | null;
1599
+ };
1600
+ TopReferrerSource: {
1601
+ favicon_url?: string | null;
1602
+ sessions: number | null;
1603
+ source: string;
1604
+ type: components["schemas"]["ReferrerType"];
1604
1605
  };
1605
1606
  TopSource: {
1606
- sessions: number;
1607
+ sessions: number | null;
1607
1608
  source: string;
1608
1609
  };
1609
1610
  UsageCurrentResponse: {
@@ -1632,58 +1633,78 @@ export interface components {
1632
1633
  used_units: number;
1633
1634
  };
1634
1635
  UserApiAcquisitionCurrent: {
1636
+ /**
1637
+ * @description Visits with consent by channel (Campagnes option, section
1638
+ * `acquisition_attribution`); empty without the option.
1639
+ */
1635
1640
  by_channel: components["schemas"]["AcquisitionChannelItem"][];
1636
1641
  by_day: {
1637
- /** @enum {string} */
1638
- channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
1639
1642
  /** Format: date */
1640
1643
  date: string;
1641
- sessions: number;
1644
+ sessions: number | null;
1642
1645
  }[];
1646
+ /** @description Campagnes option of the site. When `false`, the Campagnes sections are empty. */
1647
+ campaigns_enabled: boolean;
1648
+ /** @description Visits with Campagnes consent in the period, published like the other counts. `0` when the option is off. */
1649
+ consented_sessions: number | null;
1643
1650
  /**
1644
- * @description Mixed acquisition section `acquisition_attribution`. May be empty
1645
- * when the route returns only the strict-safe slice in HTTP `200`.
1651
+ * @description Visits with consent by campaign (Campagnes option, section
1652
+ * `acquisition_attribution`); empty without the option.
1646
1653
  */
1647
1654
  top_campaigns: {
1648
1655
  campaign: string;
1649
- sessions: number;
1656
+ sessions: number | null;
1650
1657
  }[];
1651
- /** @description Strict-safe acquisition-lite slice available in both Strict and Extended. */
1658
+ /** @description Landing pages of the visits. */
1652
1659
  top_landing_pages: {
1653
- /** @enum {string} */
1654
- channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
1655
1660
  page_title?: string | null;
1656
1661
  path_canon: string | null;
1657
- sessions: number;
1662
+ sessions: number | null;
1658
1663
  }[];
1659
1664
  /**
1660
- * @description Mixed acquisition section `acquisition_attribution`. May be empty
1661
- * when the route returns only the strict-safe slice in HTTP `200`.
1665
+ * @description Visits with consent by medium (Campagnes option, section
1666
+ * `acquisition_attribution`); empty without the option.
1662
1667
  */
1663
1668
  top_mediums: {
1664
1669
  medium: string;
1665
- sessions: number;
1670
+ sessions: number | null;
1666
1671
  }[];
1667
- /** @description Strict-safe host-only referral slice available in both Strict and Extended. */
1672
+ /** @description Referring domains of the visits. */
1668
1673
  top_referrers: components["schemas"]["TopReferrer"][];
1669
1674
  /**
1670
- * @description Mixed acquisition section `acquisition_attribution`. May be empty
1671
- * when the route returns only the strict-safe slice in HTTP `200`.
1675
+ * @description Visits with consent by source (Campagnes option, section
1676
+ * `acquisition_attribution`); empty without the option.
1672
1677
  */
1673
1678
  top_sources: components["schemas"]["TopSource"][];
1674
1679
  totals: {
1675
- avg_session_eng_time_ms: number;
1676
- engagement_rate: number;
1677
- pageviews: number;
1678
- sessions: number;
1680
+ avg_session_eng_time_ms: number | null;
1681
+ engagement_rate: number | null;
1682
+ pageviews: number | null;
1683
+ sessions: number | null;
1679
1684
  };
1680
1685
  };
1681
1686
  UserApiAcquisitionDetailsCurrent: {
1687
+ /** @description Campagnes option of the site. When `false`, the Campagnes sections are empty. */
1688
+ campaigns_enabled: boolean;
1689
+ /** @description Visits with Campagnes consent in the period, published like the other counts. `0` when the option is off. */
1690
+ consented_sessions: number | null;
1682
1691
  dimensions: {
1692
+ /** @description Computed on visits with consent (Campagnes option); empty without the option. */
1683
1693
  campaigns: components["schemas"]["AcquisitionDimensionItem"][];
1694
+ /** @description Computed on visits with consent (Campagnes option); empty without the option. */
1695
+ contents: components["schemas"]["AcquisitionDimensionItem"][];
1696
+ /** @description Computed on visits with consent (Campagnes option); empty without the option. */
1684
1697
  mediums: components["schemas"]["AcquisitionDimensionItem"][];
1698
+ /** @description Named sources, all visits: the domains of one service under its name, counted before the ten-visit threshold. */
1699
+ referrer_sources: components["schemas"]["AcquisitionReferrerSourceItem"][];
1700
+ /** @description Types of referring site, all visits: search engine, social network, messaging, AI assistant, other site. */
1701
+ referrer_types: components["schemas"]["AcquisitionReferrerTypeItem"][];
1702
+ /** @description Referring domains, all visits. */
1685
1703
  referrers: components["schemas"]["AcquisitionDimensionItem"][];
1704
+ /** @description Computed on visits with consent (Campagnes option); empty without the option. */
1686
1705
  sources: components["schemas"]["AcquisitionDimensionItem"][];
1706
+ /** @description Computed on visits with consent (Campagnes option); empty without the option. */
1707
+ terms: components["schemas"]["AcquisitionDimensionItem"][];
1687
1708
  };
1688
1709
  goals_configured: boolean;
1689
1710
  impact?: components["schemas"]["AcquisitionImpact"] | null;
@@ -1694,6 +1715,7 @@ export interface components {
1694
1715
  compare: components["schemas"]["UserApiAcquisitionCurrent"] | null;
1695
1716
  current: components["schemas"]["UserApiAcquisitionCurrent"];
1696
1717
  range: components["schemas"]["Range"];
1718
+ small_site?: components["schemas"]["SmallSiteBasis"] | null;
1697
1719
  };
1698
1720
  UserApiAcquisitionReportMeta: {
1699
1721
  availability: components["schemas"]["ReportAvailability"];
@@ -1701,15 +1723,32 @@ export interface components {
1701
1723
  range: components["schemas"]["Range"];
1702
1724
  };
1703
1725
  UserApiAcquisitionSummaryCurrent: {
1726
+ /** @description Campagnes option of the site. When `false`, the Campagnes sections are empty. */
1727
+ campaigns_enabled: boolean;
1728
+ /**
1729
+ * @description Visits with consent by channel and day (Campagnes option); empty
1730
+ * without the option.
1731
+ */
1732
+ channel_timeseries: {
1733
+ /** @enum {string} */
1734
+ channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
1735
+ /** Format: date */
1736
+ date: string;
1737
+ sessions: number | null;
1738
+ }[];
1739
+ /**
1740
+ * @description Visits with consent by channel (Campagnes option, section
1741
+ * `acquisition_attribution`); empty without the option.
1742
+ */
1704
1743
  channels: components["schemas"]["AcquisitionSummaryChannelItem"][];
1744
+ /** @description Visits with Campagnes consent in the period, published like the other counts. `0` when the option is off. */
1745
+ consented_sessions: number | null;
1705
1746
  coverage: components["schemas"]["AcquisitionCoverage"];
1706
1747
  goals_configured: boolean;
1707
1748
  mix_timeseries: {
1708
- /** @enum {string} */
1709
- channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
1710
1749
  /** Format: date */
1711
1750
  date: string;
1712
- sessions: number;
1751
+ sessions: number | null;
1713
1752
  }[];
1714
1753
  totals: components["schemas"]["AcquisitionSummaryTotals"];
1715
1754
  };
@@ -1718,18 +1757,21 @@ export interface components {
1718
1757
  compare: components["schemas"]["ActionsCurrent"] | null;
1719
1758
  current: components["schemas"]["ActionsCurrent"];
1720
1759
  range: components["schemas"]["Range"];
1760
+ small_site?: components["schemas"]["SmallSiteBasis"] | null;
1721
1761
  };
1722
1762
  UserApiContentFullEnvelope: {
1723
1763
  availability: components["schemas"]["ReportAvailability"];
1724
1764
  compare: components["schemas"]["ContentFullCurrent"] | null;
1725
1765
  current: components["schemas"]["ContentFullCurrent"];
1726
1766
  range: components["schemas"]["Range"];
1767
+ small_site?: components["schemas"]["SmallSiteBasis"] | null;
1727
1768
  };
1728
1769
  UserApiContentSummaryEnvelope: {
1729
1770
  availability: components["schemas"]["ReportAvailability"];
1730
1771
  compare: components["schemas"]["ContentSummaryCurrent"] | null;
1731
1772
  current: components["schemas"]["ContentSummaryCurrent"];
1732
1773
  range: components["schemas"]["Range"];
1774
+ small_site?: components["schemas"]["SmallSiteBasis"] | null;
1733
1775
  };
1734
1776
  UserApiGoalFilters: {
1735
1777
  action_id?: string;
@@ -1738,25 +1780,23 @@ export interface components {
1738
1780
  form_id?: string;
1739
1781
  };
1740
1782
  UserApiMoverItem: {
1741
- current_pageviews: number;
1742
- delta: number;
1743
- delta_pct: number;
1783
+ current_pageviews: number | null;
1784
+ delta: number | null;
1785
+ delta_pct: number | null;
1744
1786
  page_title?: string | null;
1745
1787
  path_canon: string | null;
1746
- previous_pageviews: number;
1788
+ previous_pageviews: number | null;
1747
1789
  };
1748
1790
  UserApiOverviewEnvelope: {
1749
1791
  availability: components["schemas"]["ReportAvailability"];
1750
1792
  compare: components["schemas"]["OverviewCurrent"] | null;
1751
1793
  current: components["schemas"]["OverviewCurrent"];
1752
1794
  range: components["schemas"]["Range"];
1795
+ small_site?: components["schemas"]["SmallSiteBasis"] | null;
1753
1796
  };
1754
1797
  WorkspaceProductConfiguration: {
1755
1798
  api: components["schemas"]["ProductApi"];
1756
- capabilities: components["schemas"]["EffectiveProductCapabilities"];
1757
1799
  dashboard: components["schemas"]["ProductDashboard"];
1758
- /** @enum {string} */
1759
- default_collection_profile: "strict" | "extended";
1760
1800
  exports: components["schemas"]["ProductExports"];
1761
1801
  product_retention: components["schemas"]["ProductRetention"];
1762
1802
  quotas: components["schemas"]["ProductQuotas"];
@@ -1801,7 +1841,7 @@ export interface components {
1801
1841
  "application/json": components["schemas"]["ErrorResponse"];
1802
1842
  };
1803
1843
  };
1804
- /** @description Request parameters are invalid. */
1844
+ /** @description Request parameters are invalid, or the result is below the minimum reporting cohort (`REPORTING_THRESHOLD`, no `details`). */
1805
1845
  InvalidParams: {
1806
1846
  headers: {
1807
1847
  "X-Request-Id": components["headers"]["XRequestId"];
@@ -1825,9 +1865,8 @@ export interface components {
1825
1865
  };
1826
1866
  };
1827
1867
  /**
1828
- * @description The requested route family is not available for the current
1829
- * `collection_profile`, or the requested period does not contain the
1830
- * required Extended data envelope.
1868
+ * @description The requested period is not covered by collected data
1869
+ * (`REPORT_NOT_AVAILABLE_FOR_REQUESTED_PERIOD`).
1831
1870
  */
1832
1871
  ReportAvailabilityConflict: {
1833
1872
  headers: {
@@ -1864,29 +1903,30 @@ export interface components {
1864
1903
  /**
1865
1904
  * @description Grouping dimension for breakdown endpoint.
1866
1905
  * When `dimension=tenant`, rows are grouped by stable `tenant_id`. The
1906
+ * statistics of a tenant are those of the page's client space. The
1867
1907
  * response also includes `tenant_slug` and `tenant_name` as display labels.
1868
1908
  */
1869
- BreakdownDimension: "device" | "referrer" | "page" | "browser" | "os" | "tenant";
1909
+ BreakdownDimension: "device" | "referrer" | "page" | "browser" | "os" | "country" | "tenant";
1870
1910
  /** @description Number of rows returned by breakdown endpoint. */
1871
1911
  BreakdownLimit: number;
1872
1912
  /** @description Compare current range against the previous equivalent period. */
1873
1913
  CompareParam: "prev_period";
1874
1914
  /**
1875
- * @description Content response depth. `summary` returns totals and one global UTC
1876
- * pageview point per day; `limit` has no effect. `full` returns the
1877
- * detailed Content report. `details` is a deprecated alias for `full`.
1915
+ * @description Content response depth. `summary` returns totals and one global
1916
+ * pageview point per day of the site's time zone; `limit` has no effect. `full` returns the
1917
+ * detailed Content report.
1878
1918
  * When omitted, ranges up to 90 days use `full`; ranges from 91 through
1879
1919
  * 365 days use `summary`.
1880
1920
  */
1881
- ContentInclude: "summary" | "full" | "details";
1921
+ ContentInclude: "summary" | "full";
1882
1922
  /**
1883
1923
  * @description JSON object serialized as string, example:
1884
1924
  * `{"device":"mobile","referrer":"google.com"}`.
1885
1925
  */
1886
1926
  Filters: string;
1887
- /** @description Inclusive UTC start date (YYYY-MM-DD). Pass explicit from and to dates to bound the requested period. */
1927
+ /** @description Inclusive start date (YYYY-MM-DD), a day of the site's time zone (a UTC date for usage history). Pass explicit from and to dates to bound the requested period. */
1888
1928
  FromDate: string;
1889
- /** @description Granularity (`hour` can require higher plan). */
1929
+ /** @description Granularity (`day` or `hour`, on every plan with API access). */
1890
1930
  Interval: "day" | "hour";
1891
1931
  /**
1892
1932
  * @description Metric to aggregate (default `pageviews`). `sessions` uses the same
@@ -1908,7 +1948,7 @@ export interface components {
1908
1948
  * `tenant_id` identifies one tenant.
1909
1949
  */
1910
1950
  TenantId: string;
1911
- /** @description Inclusive UTC end date (`YYYY-MM-DD`). Defaults to today. */
1951
+ /** @description Inclusive end date (`YYYY-MM-DD`), a day of the site's time zone (a UTC date for usage history). Defaults to today. */
1912
1952
  ToDate: string;
1913
1953
  /** @description Traffic segment to include. */
1914
1954
  TrafficParam: "humans" | "humans_including_ai" | "bots_only" | "ai_bots_only" | "all";