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

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 tracked 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"];
@@ -761,7 +764,65 @@ export interface paths {
761
764
  };
762
765
  };
763
766
  put?: never;
764
- post?: never;
767
+ /**
768
+ * Register or update tenants of a site
769
+ * @description Requires the dedicated `tenants:write` scope, distinct from the read
770
+ * scopes; a token restricted to some tenants cannot hold it.
771
+ *
772
+ * Additive and idempotent. The listed tenants are created or updated;
773
+ * tenants that are not listed are never changed. Sending the same body
774
+ * again changes nothing (`unchanged`). A tenant is deactivated only by
775
+ * an explicit `status: INACTIVE`. The whole body is validated before
776
+ * the first write; a batch interrupted by a failure is resumed by
777
+ * sending it again. At most 100 tenants per request: send larger
778
+ * registries in several requests. A slug already used by another tenant
779
+ * of the site is refused with `409 TENANT_SLUG_CONFLICT`. A tenant
780
+ * changed by another write between the read and the write is refused with
781
+ * `409 TENANT_CONFLICT`: nothing is overwritten, send the request again.
782
+ */
783
+ post: {
784
+ parameters: {
785
+ query?: never;
786
+ header?: {
787
+ /** @description Optional idempotency/request correlation identifier. */
788
+ "X-Request-Id"?: components["parameters"]["RequestIdHeader"];
789
+ };
790
+ path?: never;
791
+ cookie?: never;
792
+ };
793
+ requestBody: {
794
+ content: {
795
+ "application/json": components["schemas"]["TenantsWriteRequest"];
796
+ };
797
+ };
798
+ responses: {
799
+ /** @description OK */
800
+ 200: {
801
+ headers: {
802
+ "X-Pomelo-Usage-Warning": components["headers"]["XPomeloUsageWarning"];
803
+ "X-Request-Id": components["headers"]["XRequestId"];
804
+ [name: string]: unknown;
805
+ };
806
+ content: {
807
+ "application/json": components["schemas"]["TenantsWriteResponse"];
808
+ };
809
+ };
810
+ 401: components["responses"]["Unauthorized"];
811
+ 403: components["responses"]["Forbidden"];
812
+ /** @description `TENANT_SLUG_CONFLICT`: a slug is already used by another tenant of the site. `TENANT_CONFLICT`: a tenant was changed concurrently; send the request again. */
813
+ 409: {
814
+ headers: {
815
+ "X-Request-Id": components["headers"]["XRequestId"];
816
+ [name: string]: unknown;
817
+ };
818
+ content: {
819
+ "application/json": components["schemas"]["TenantConflictErrorResponse"];
820
+ };
821
+ };
822
+ 422: components["responses"]["InvalidParams"];
823
+ 429: components["responses"]["RateLimited"];
824
+ };
825
+ };
765
826
  delete?: never;
766
827
  options?: never;
767
828
  head?: never;
@@ -779,6 +840,8 @@ export interface paths {
779
840
  * Current billing period usage
780
841
  * @description Requires `usage:read` scope. Tokens with `metrics:read` also
781
842
  * have implicit access to this endpoint.
843
+ * A token restricted to tenants (`allowed_tenant_ids`) is refused with
844
+ * `403 FORBIDDEN`: it cannot read the organization's consumption.
782
845
  */
783
846
  get: {
784
847
  parameters: {
@@ -826,13 +889,15 @@ export interface paths {
826
889
  * Usage history by month
827
890
  * @description Requires `usage:read` scope. Tokens with `metrics:read` also
828
891
  * have implicit access to this endpoint.
892
+ * A token restricted to tenants (`allowed_tenant_ids`) is refused with
893
+ * `403 FORBIDDEN`: it cannot read the organization's consumption.
829
894
  */
830
895
  get: {
831
896
  parameters: {
832
897
  query?: {
833
- /** @description Inclusive UTC start date (YYYY-MM-DD). Pass explicit from and to dates to bound the requested period. */
898
+ /** @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
899
  from?: components["parameters"]["FromDate"];
835
- /** @description Inclusive UTC end date (`YYYY-MM-DD`). Defaults to today. */
900
+ /** @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
901
  to?: components["parameters"]["ToDate"];
837
902
  };
838
903
  header?: {
@@ -875,83 +940,100 @@ export interface components {
875
940
  AcquisitionChannelItem: {
876
941
  /** @enum {string} */
877
942
  channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
878
- sessions: number;
943
+ sessions: number | null;
879
944
  };
945
+ /**
946
+ * @description Visits with and without a referring domain. A direct visit has no
947
+ * referring domain.
948
+ */
880
949
  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;
950
+ direct_sessions: number | null;
951
+ direct_share: number | null;
952
+ non_direct_sessions: number | null;
953
+ non_direct_share: number | null;
887
954
  };
888
955
  AcquisitionDetailsReportResponse: components["schemas"]["UserApiAcquisitionReportMeta"] & {
889
956
  compare: components["schemas"]["UserApiAcquisitionDetailsCurrent"] | null;
890
957
  current: components["schemas"]["UserApiAcquisitionDetailsCurrent"];
891
958
  };
892
959
  AcquisitionDimensionImpactItem: {
893
- converted_sessions: number;
894
- session_conversion_rate: number;
960
+ converted_sessions: number | null;
961
+ session_conversion_rate: number | null;
895
962
  value: string;
896
963
  };
897
964
  AcquisitionDimensionItem: components["schemas"]["AcquisitionSummaryTotals"] & {
898
965
  favicon_url?: string | null;
899
- share: number;
966
+ share: number | null;
900
967
  value: string;
901
968
  };
902
969
  AcquisitionFullReportResponse: components["schemas"]["UserApiAcquisitionEnvelope"] & {
903
970
  meta: components["schemas"]["MeteredMeta"];
904
971
  };
905
972
  /**
906
- * @description Extended-only goal impact. Each dimension comes from the visit's
973
+ * @description Goal impact by landing page. The landing page comes from the visit's
907
974
  * 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.
975
+ * matches at least one selected goal; repeated matches count once. Rates
976
+ * divide converted visits by visits in the same landing page, period and
977
+ * traffic scope. `channels`, `sources`, `mediums` and `campaigns` belong
978
+ * to the Campagnes option: they are computed on visits whose visitor gave
979
+ * consent and are empty without the option.
911
980
  */
912
981
  AcquisitionImpact: {
913
982
  campaigns: components["schemas"]["AcquisitionDimensionImpactItem"][];
983
+ /** @description Computed on visits with consent (Campagnes option); empty without the option. */
914
984
  channels: {
915
985
  /** @enum {string} */
916
986
  channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
917
- converted_sessions: number;
918
- session_conversion_rate: number;
987
+ converted_sessions: number | null;
988
+ session_conversion_rate: number | null;
919
989
  }[];
920
990
  landing_pages: {
921
- converted_sessions: number;
991
+ converted_sessions: number | null;
922
992
  path_canon: string | null;
923
- session_conversion_rate: number;
993
+ session_conversion_rate: number | null;
924
994
  }[];
925
995
  mediums: components["schemas"]["AcquisitionDimensionImpactItem"][];
996
+ /** @description Computed on visits with consent (Campagnes option); empty without the option. */
926
997
  sources: components["schemas"]["AcquisitionDimensionImpactItem"][];
927
998
  };
928
999
  AcquisitionLandingPageSummaryItem: components["schemas"]["AcquisitionSummaryTotals"] & {
929
1000
  page_title?: string | null;
930
1001
  path_canon: string | null;
931
- /** @enum {string} */
932
- primary_channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
933
- share: number;
1002
+ share: number | null;
1003
+ };
1004
+ /**
1005
+ * @description A named source of the provenance, all visits. `domains` lists its
1006
+ * domains of ten visits or more; the rest of the source is its other
1007
+ * domains.
1008
+ */
1009
+ AcquisitionReferrerSourceItem: components["schemas"]["AcquisitionDimensionItem"] & {
1010
+ domains: components["schemas"]["AcquisitionDimensionItem"][];
1011
+ type: components["schemas"]["ReferrerType"];
1012
+ };
1013
+ /** @description Visits by type of referring site, all visits. */
1014
+ AcquisitionReferrerTypeItem: components["schemas"]["AcquisitionSummaryTotals"] & {
1015
+ share: number | null;
1016
+ value: components["schemas"]["ReferrerType"];
934
1017
  };
935
1018
  /** @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
1019
  AcquisitionReportResponse: components["schemas"]["AcquisitionFullReportResponse"] | components["schemas"]["AcquisitionSummaryReportResponse"] | components["schemas"]["AcquisitionDetailsReportResponse"];
937
1020
  AcquisitionSummaryChannelItem: components["schemas"]["AcquisitionChannelItem"] & components["schemas"]["AcquisitionSummaryTotals"] & {
938
- share: number;
1021
+ share: number | null;
939
1022
  };
940
1023
  AcquisitionSummaryReportResponse: components["schemas"]["UserApiAcquisitionReportMeta"] & {
941
1024
  compare: components["schemas"]["UserApiAcquisitionSummaryCurrent"] | null;
942
1025
  current: components["schemas"]["UserApiAcquisitionSummaryCurrent"];
943
1026
  };
944
1027
  AcquisitionSummaryTotals: {
945
- avg_pages_per_session: number;
946
- avg_session_eng_time_ms: number;
947
- engagement_rate: number;
948
- sessions: number;
1028
+ avg_pages_per_session: number | null;
1029
+ avg_session_eng_time_ms: number | null;
1030
+ engagement_rate: number | null;
1031
+ sessions: number | null;
949
1032
  };
950
1033
  ActionsCurrent: {
951
1034
  /**
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.
1035
+ * @description Action rows of the active family, or of every family when none is
1036
+ * selected.
955
1037
  */
956
1038
  actions: {
957
1039
  /** @description Stable element/action identifier when the action row can be narrowed by it. */
@@ -967,25 +1049,21 @@ export interface components {
967
1049
  form_action_path?: string | null;
968
1050
  /** @description Form identifier when the form action row can be narrowed by it. */
969
1051
  form_id?: string | null;
970
- occurrences: number;
971
- sessions: number;
1052
+ occurrences: number | null;
1053
+ sessions: number | null;
1054
+ /** @description Derived from the published counts only; it reveals nothing finer than them. */
1055
+ share?: number | null;
972
1056
  top_page?: string | null;
973
- /** @enum {string|null} */
974
- top_source?: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other" | null;
975
1057
  }[];
976
1058
  /** @enum {string|null} */
977
1059
  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
- */
1060
+ /** @description Pages and segments around the active family or action. */
983
1061
  context: {
984
1062
  pages: {
985
1063
  path_canon?: string | null;
986
1064
  /** @enum {string} */
987
1065
  scope: "family" | "action";
988
- sessions: number;
1066
+ sessions: number | null;
989
1067
  }[];
990
1068
  segments: {
991
1069
  /** @enum {string} */
@@ -993,51 +1071,43 @@ export interface components {
993
1071
  label: string;
994
1072
  /** @enum {string} */
995
1073
  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;
1074
+ sessions: number | null;
1004
1075
  }[];
1005
1076
  };
1006
1077
  /**
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`.
1078
+ * @description Summary of each action family: goals, forms, outbound, downloads,
1079
+ * errors, custom and instrumentation.
1010
1080
  */
1011
1081
  families: {
1012
1082
  /** @enum {string} */
1013
1083
  family: "goals" | "forms" | "outbound" | "downloads" | "errors" | "custom" | "instrumentation";
1014
- occurrences: number;
1015
- sessions: number;
1084
+ occurrences: number | null;
1085
+ sessions: number | null;
1016
1086
  }[];
1017
1087
  family_timeseries: {
1018
1088
  /** Format: date */
1019
1089
  date: string;
1020
1090
  /** @enum {string} */
1021
1091
  family: "goals" | "forms" | "outbound" | "downloads" | "errors" | "custom" | "instrumentation";
1022
- occurrences: number;
1023
- sessions: number;
1092
+ occurrences: number | null;
1093
+ sessions: number | null;
1024
1094
  }[];
1025
1095
  goals_configured: boolean;
1026
1096
  timeseries: {
1027
1097
  /** Format: date */
1028
1098
  date: string;
1029
- error_sessions: number;
1030
- instrumentation_sessions: number;
1031
- meaningful_action_sessions: number;
1032
- meaningful_occurrences: number;
1033
- total_sessions: number;
1099
+ error_sessions: number | null;
1100
+ instrumentation_sessions: number | null;
1101
+ meaningful_action_sessions: number | null;
1102
+ meaningful_occurrences: number | null;
1103
+ total_sessions: number | null;
1034
1104
  }[];
1035
1105
  totals: {
1036
- error_sessions: number;
1037
- instrumentation_sessions: number;
1038
- meaningful_action_sessions: number;
1039
- meaningful_occurrences: number;
1040
- total_sessions: number;
1106
+ error_sessions: number | null;
1107
+ instrumentation_sessions: number | null;
1108
+ meaningful_action_sessions: number | null;
1109
+ meaningful_occurrences: number | null;
1110
+ total_sessions: number | null;
1041
1111
  };
1042
1112
  };
1043
1113
  ActionsReportResponse: components["schemas"]["UserApiActionsEnvelope"] & {
@@ -1058,6 +1128,15 @@ export interface components {
1058
1128
  BreakdownResponse: {
1059
1129
  availability: components["schemas"]["ReportAvailability"];
1060
1130
  meta: components["schemas"]["MeteredMeta"];
1131
+ /**
1132
+ * @description Values of ten visits or more, except the whole-site breakdowns
1133
+ * exact from 1. With a filter, a client space or a raw referrer, the
1134
+ * values under ten visits are grouped in one last row,
1135
+ * `key: "(other)"`, summed before the cut to `limit`; its `value` is
1136
+ * exact from 10 and `null` from 1 to 9, and the row is absent when
1137
+ * nothing is grouped. A client that reads the rows as entities must
1138
+ * skip it.
1139
+ */
1061
1140
  rows: components["schemas"]["BreakdownRow"][];
1062
1141
  };
1063
1142
  BreakdownRow: {
@@ -1072,59 +1151,64 @@ export interface components {
1072
1151
  tenant_name?: string | null;
1073
1152
  /** @description Current routing slug for tenant breakdown rows. */
1074
1153
  tenant_slug?: string | null;
1075
- value: number;
1154
+ value: number | null;
1076
1155
  };
1077
1156
  ContentFullCurrent: {
1078
1157
  entries?: {
1079
- bounce_rate: number;
1080
- entries: number;
1158
+ bounce_rate: number | null;
1159
+ entries: number | null;
1081
1160
  page_title?: string | null;
1082
1161
  path_canon: string | null;
1083
1162
  }[];
1084
1163
  exits?: {
1085
- exit_rate: number;
1086
- exits: number;
1164
+ exit_rate: number | null;
1165
+ exits: number | null;
1087
1166
  page_title?: string | null;
1088
1167
  path_canon: string | null;
1089
1168
  }[];
1090
1169
  /** @enum {string} */
1091
1170
  include: "full";
1092
1171
  /**
1093
- * @description One measurement method selected from the current period and reused for comparison.
1172
+ * @description The only Web Vitals measurement method served.
1094
1173
  * @enum {string}
1095
1174
  */
1096
- metric_method?: "legacy" | "web-vitals-6.2.3-cls1";
1175
+ metric_method?: "web-vitals-6.2.3-cls1";
1097
1176
  pages: {
1098
- avg_page_eng_time_ms: number;
1177
+ avg_page_eng_time_ms: number | null;
1099
1178
  avg_scroll_depth?: number | null;
1100
- bounces: number;
1101
- entries: number;
1102
- exit_rate: number;
1103
- exits: number;
1104
- page_bounce_rate: number;
1179
+ bounces: number | null;
1180
+ entries: number | null;
1181
+ exit_rate: number | null;
1182
+ exits: number | null;
1183
+ page_bounce_rate: number | null;
1105
1184
  page_title?: string | null;
1106
- pageviews: number;
1185
+ pageviews: number | null;
1107
1186
  path_canon: string | null;
1108
1187
  performance?: {
1109
- n_cls?: number;
1110
- n_fcp?: number;
1111
- n_inp?: number;
1112
- n_lcp?: number;
1113
- n_ttfb?: number;
1188
+ n_cls?: number | null;
1189
+ n_fcp?: number | null;
1190
+ n_inp?: number | null;
1191
+ n_lcp?: number | null;
1192
+ n_ttfb?: number | null;
1114
1193
  p75_cls: number | null;
1115
1194
  p75_fcp?: number | null;
1116
1195
  p75_inp: number | null;
1117
1196
  p75_lcp: number | null;
1118
1197
  p75_ttfb: number | null;
1119
- samples: number;
1198
+ samples: number | null;
1120
1199
  } | null;
1121
- unique_pageviews: number;
1200
+ /** @description Derived from the published counts only; it reveals nothing finer than them. */
1201
+ share?: number | null;
1202
+ unique_pageviews: number | null;
1122
1203
  }[];
1123
1204
  timeseries: {
1124
1205
  /** Format: date */
1125
1206
  date: string;
1126
- pageviews: number;
1207
+ pageviews: number | null;
1127
1208
  path_canon: string;
1209
+ /** @description Visible page paths only (not `(other)`). Derived from the published counts only; it reveals nothing finer than them. */
1210
+ share?: number | null;
1211
+ total_pageviews?: number | null;
1128
1212
  }[];
1129
1213
  totals: components["schemas"]["ContentTotals"];
1130
1214
  };
@@ -1140,14 +1224,19 @@ export interface components {
1140
1224
  /** @enum {string} */
1141
1225
  include: "summary";
1142
1226
  /**
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`.
1227
+ * @description Dense, strictly increasing daily series in the site's time zone. It
1228
+ * contains exactly one point per requested day, including zero-valued
1229
+ * empty days. The
1230
+ * exact daily pageviews add up to the exact period total. Without
1231
+ * any filter, each point and `totals.pageviews` are published
1232
+ * exactly from 1. With a filter, a count from 1 to 9 is published
1233
+ * as `null` (« < 10 »; zero stays `0`), so the returned points
1234
+ * cannot be added up; use `totals.pageviews`.
1146
1235
  */
1147
1236
  timeseries: {
1148
1237
  /** Format: date */
1149
1238
  date: string;
1150
- pageviews: number;
1239
+ pageviews: number | null;
1151
1240
  }[];
1152
1241
  totals: components["schemas"]["ContentTotals"];
1153
1242
  };
@@ -1155,35 +1244,16 @@ export interface components {
1155
1244
  meta: components["schemas"]["MeteredMeta"];
1156
1245
  };
1157
1246
  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"];
1247
+ avg_page_eng_time_ms: number | null;
1248
+ bounce_rate: number | null;
1249
+ entries: number | null;
1250
+ exit_rate: number | null;
1251
+ pageviews: number | null;
1252
+ unique_pageviews: number | null;
1183
1253
  };
1184
1254
  ErrorBody: {
1185
1255
  /** @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";
1256
+ 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
1257
  details?: {
1188
1258
  [key: string]: unknown;
1189
1259
  } | null;
@@ -1212,13 +1282,24 @@ export interface components {
1212
1282
  GoalListResponse: {
1213
1283
  items: components["schemas"]["Goal"][];
1214
1284
  };
1285
+ /**
1286
+ * @description Goals whose selected population is below the reporting minimum or
1287
+ * whose converted-session cohort is below the per-cell minimum are
1288
+ * omitted. Consumers must not infer zero when a configured goal is absent.
1289
+ */
1215
1290
  GoalsConversionsCurrent: {
1216
1291
  goals: {
1217
- conversions: number;
1292
+ conversions: number | null;
1218
1293
  goal_id: string;
1219
1294
  last_seen_at: string | null;
1220
- total_sessions: number;
1221
- unique_sessions: number;
1295
+ /**
1296
+ * @description Always `available` for returned goal rows. Suppressed goals
1297
+ * are omitted rather than returned with zero.
1298
+ * @enum {string}
1299
+ */
1300
+ reporting_status?: "available" | "suppressed_small_group" | "insufficient_population";
1301
+ total_sessions: number | null;
1302
+ unique_sessions: number | null;
1222
1303
  }[];
1223
1304
  };
1224
1305
  GoalsConversionsEnvelope: {
@@ -1226,6 +1307,7 @@ export interface components {
1226
1307
  compare: components["schemas"]["GoalsConversionsCurrent"] | null;
1227
1308
  current: components["schemas"]["GoalsConversionsCurrent"];
1228
1309
  range: components["schemas"]["Range"];
1310
+ small_site?: components["schemas"]["SmallSiteBasis"] | null;
1229
1311
  };
1230
1312
  GoalsConversionsResponse: components["schemas"]["GoalsConversionsEnvelope"] & {
1231
1313
  meta: components["schemas"]["MeteredMeta"];
@@ -1234,76 +1316,111 @@ export interface components {
1234
1316
  /** Format: uri */
1235
1317
  docs_url: string;
1236
1318
  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
1319
  product: components["schemas"]["WorkspaceProductConfiguration"];
1244
- quotas: components["schemas"]["Quotas"];
1320
+ quotas?: components["schemas"]["Quotas"];
1245
1321
  rate_limits: {
1246
1322
  rps: number;
1247
1323
  };
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
1324
  };
1254
1325
  MeteredMeta: {
1255
- billable_overage: boolean;
1326
+ billable_overage?: boolean;
1256
1327
  request_id: string;
1257
1328
  surface?: components["schemas"]["SurfaceMeta"];
1258
1329
  units_charged: number;
1259
- usage: components["schemas"]["UsageMeta"];
1330
+ usage?: components["schemas"]["UsageMeta"];
1260
1331
  };
1261
1332
  OverviewCurrent: {
1262
1333
  acquisition: {
1334
+ /**
1335
+ * @description Visits with consent by channel (Campagnes option); empty
1336
+ * without the option.
1337
+ */
1263
1338
  by_channel: components["schemas"]["AcquisitionChannelItem"][];
1264
1339
  top_landing_pages: {
1265
- /** @enum {string} */
1266
- channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
1267
1340
  page_title?: string | null;
1268
1341
  path_canon: string | null;
1269
- sessions: number;
1342
+ sessions: number | null;
1270
1343
  }[];
1344
+ /**
1345
+ * @description Named sources, all visits: the domains of one service under
1346
+ * its name, counted before the ten-visit threshold. Outside the
1347
+ * whole-site view the sources under ten visits are grouped in
1348
+ * one last row, `source: "(other)"` of type `other`, counted as
1349
+ * `audience.countries`.
1350
+ */
1351
+ top_referrer_sources: components["schemas"]["TopReferrerSource"][];
1352
+ /**
1353
+ * @description Raw referring domains of ten visits or more. The domains under
1354
+ * ten visits are grouped in one last row, `domain: "(other)"`;
1355
+ * its `sessions` is exact from 10 and `null` from 1 to 9, and
1356
+ * the row is absent when nothing is grouped.
1357
+ */
1271
1358
  top_referrers: components["schemas"]["TopReferrer"][];
1272
1359
  };
1273
1360
  audience: {
1361
+ /**
1362
+ * @description Browser families. Outside the whole-site view the families
1363
+ * under ten visits are grouped in one last row,
1364
+ * `browser_family: "(other)"`, counted as `countries`.
1365
+ */
1274
1366
  browsers: {
1275
1367
  browser_family: string;
1276
- sessions: number;
1368
+ sessions: number | null;
1277
1369
  }[];
1278
1370
  /**
1279
- * @description Mixed overview audience slice. When unavailable, inspect
1280
- * `availability.sections` for `overview_cities`.
1371
+ * @description Cities of ten visits or more. The cities under ten visits are
1372
+ * grouped in one last row, `city: "(other)"` and
1373
+ * `country: "(other)"`; its `sessions` is exact from 10 and
1374
+ * `null` from 1 to 9, and the row is absent when nothing is
1375
+ * grouped. The city is read alone: the list is empty with a
1376
+ * hostname, client space, filter or segment.
1281
1377
  */
1282
- cities: {
1378
+ cities?: {
1283
1379
  city: string;
1284
1380
  country: string;
1285
- sessions: number;
1381
+ sessions: number | null;
1286
1382
  }[];
1383
+ /**
1384
+ * @description Countries of ten visits or more (exact from 1 on the whole
1385
+ * site with no filter). Elsewhere the countries under ten visits
1386
+ * are grouped in one last row, `country: "(other)"`; its
1387
+ * `sessions` is exact from 10 and `null` from 1 to 9, and the row
1388
+ * is absent when nothing is grouped.
1389
+ */
1287
1390
  countries: {
1288
1391
  country: string;
1289
- sessions: number;
1392
+ sessions: number | null;
1290
1393
  }[];
1394
+ /**
1395
+ * @description Device types. Outside the whole-site view the types under ten
1396
+ * visits are grouped in one last row, `device_type: "(other)"`,
1397
+ * counted as `countries`; its averages are `null`.
1398
+ */
1291
1399
  devices: {
1400
+ avg_pages_per_session?: number | null;
1401
+ avg_session_eng_time_ms?: number | null;
1292
1402
  device_type: string;
1293
- sessions: number;
1403
+ sessions: number | null;
1294
1404
  }[];
1405
+ /**
1406
+ * @description Operating system families. Outside the whole-site view the
1407
+ * families under ten visits are grouped in one last row,
1408
+ * `os_family: "(other)"`, counted as `countries`.
1409
+ */
1295
1410
  os: {
1296
1411
  os_family: string;
1297
- sessions: number;
1412
+ sessions: number | null;
1298
1413
  }[];
1299
1414
  /**
1300
- * @description Mixed overview audience slice. When unavailable, inspect
1301
- * `availability.sections` for `overview_regions`.
1415
+ * @description Regions of ten visits or more (exact from 1 on the whole site
1416
+ * with no filter). Elsewhere the regions under ten visits are
1417
+ * grouped in one last row, `region: "(other)"` and
1418
+ * `country: "(other)"`, counted as `countries`.
1302
1419
  */
1303
1420
  regions: {
1304
1421
  country: string;
1305
1422
  region: string;
1306
- sessions: number;
1423
+ sessions: number | null;
1307
1424
  }[];
1308
1425
  };
1309
1426
  content: {
@@ -1313,7 +1430,7 @@ export interface components {
1313
1430
  };
1314
1431
  top_pages: {
1315
1432
  page_title?: string | null;
1316
- pageviews: number;
1433
+ pageviews: number | null;
1317
1434
  path_canon: string | null;
1318
1435
  }[];
1319
1436
  };
@@ -1322,25 +1439,25 @@ export interface components {
1322
1439
  };
1323
1440
  overview: {
1324
1441
  timeseries: {
1325
- avg_page_eng_time_ms: number;
1326
- avg_session_eng_time_ms: number;
1327
- bounce_rate: number;
1442
+ avg_page_eng_time_ms: number | null;
1443
+ avg_session_eng_time_ms: number | null;
1444
+ bounce_rate: number | null;
1328
1445
  /** Format: date */
1329
1446
  date: string;
1330
- engagement_rate: number;
1331
- pageviews: number;
1332
- sessions: number;
1333
- visitors: number;
1447
+ engagement_rate: number | null;
1448
+ pageviews: number | null;
1449
+ sessions: number | null;
1450
+ visitors: number | null;
1334
1451
  }[];
1335
1452
  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;
1453
+ avg_page_eng_time_ms: number | null;
1454
+ avg_pages_per_session: number | null;
1455
+ avg_session_eng_time_ms: number | null;
1456
+ bounce_rate: number | null;
1457
+ engagement_rate: number | null;
1458
+ pageviews: number | null;
1459
+ sessions: number | null;
1460
+ visitors: number | null;
1344
1461
  };
1345
1462
  /** @enum {string} */
1346
1463
  visitors_mode: "sessions" | "daily_uniques";
@@ -1367,18 +1484,10 @@ export interface components {
1367
1484
  usage_history_months: number;
1368
1485
  };
1369
1486
  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
1487
  hourly_enabled: boolean;
1377
1488
  /** @enum {string} */
1378
1489
  hourly_level: "none" | "limited" | "standard" | "guardrailed" | "advanced" | "custom";
1379
1490
  /** @enum {string} */
1380
- standard_level: "none" | "limited" | "standard" | "guardrailed" | "advanced" | "custom";
1381
- /** @enum {string} */
1382
1491
  team_management_level: "none" | "limited" | "standard" | "guardrailed" | "advanced" | "custom";
1383
1492
  };
1384
1493
  ProductExports: {
@@ -1416,60 +1525,46 @@ export interface components {
1416
1525
  end: string;
1417
1526
  /** Format: date-time */
1418
1527
  start: string;
1528
+ /**
1529
+ * @description IANA time zone of the site, present when it is not UTC (absent:
1530
+ * UTC). The requested dates, the daily `date` values and the hourly
1531
+ * buckets follow it; `start` and `end` are the matching instants in
1532
+ * UTC.
1533
+ */
1534
+ timezone?: string;
1419
1535
  };
1420
1536
  /**
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`.
1537
+ * @description Type of referring site, read from the referring domain alone through
1538
+ * a fixed table. It never separates paid from organic.
1539
+ * @enum {string}
1540
+ */
1541
+ ReferrerType: "search" | "social" | "messaging" | "ai_assistant" | "other";
1542
+ /**
1543
+ * @description Availability of a report for the requested period and its comparison
1544
+ * period. `sections` lists the parts of the report that belong to the
1545
+ * Campagnes option; each one is reported with the reason
1546
+ * `campaigns_option_required` while the option is off.
1428
1547
  */
1429
1548
  ReportAvailability: {
1430
- classification: components["schemas"]["ReportAvailabilityClassification"];
1431
- /** Format: date-time */
1432
- collectionProfileEffectiveAt: string | null;
1433
1549
  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
1550
  current: components["schemas"]["ReportPeriodAvailability"];
1441
- /** @enum {string} */
1442
- currentProfile: "strict" | "extended";
1443
- readModel?: components["schemas"]["ReportAvailabilityReadModel"] | null;
1444
1551
  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
1552
  sections: components["schemas"]["ReportSectionAvailability"][];
1451
1553
  };
1452
- /** @enum {string} */
1453
- ReportAvailabilityClassification: "strict_safe" | "extended_only" | "mixed";
1454
1554
  /**
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`.
1555
+ * @description - `campaigns_option_required`: the data belongs to the Campagnes
1556
+ * option, which is not enabled on the site.
1557
+ * - `outside_source_coverage`: the requested period is not covered by
1558
+ * collected data.
1559
+ * @enum {string|null}
1458
1560
  */
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;
1561
+ ReportAvailabilityReason: "campaigns_option_required" | "outside_source_coverage" | null;
1467
1562
  /** @description Opaque identifier for the route associated with this availability result. */
1468
1563
  ReportAvailabilityRouteId: string;
1469
1564
  /** @description Opaque identifier for a section within an availability result. */
1470
1565
  ReportAvailabilitySectionId: string;
1471
1566
  /** @enum {string} */
1472
- ReportAvailabilityStatus: "available" | "locked_by_profile" | "partially_available_after_effective_at" | "partially_available_outside_source_coverage" | "not_available_for_requested_period";
1567
+ ReportAvailabilityStatus: "available" | "partially_available_outside_source_coverage" | "not_available_for_requested_period";
1473
1568
  ReportPeriodAvailability: {
1474
1569
  /** Format: date-time */
1475
1570
  compatibleEnd: string | null;
@@ -1483,12 +1578,11 @@ export interface components {
1483
1578
  status: components["schemas"]["ReportAvailabilityStatus"];
1484
1579
  };
1485
1580
  /**
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.
1581
+ * @description Availability of a report section that belongs to the Campagnes option.
1582
+ * The report itself is returned with HTTP `200`; the section is empty
1583
+ * when the site does not have the option.
1489
1584
  */
1490
1585
  ReportSectionAvailability: {
1491
- classification: components["schemas"]["ReportAvailabilityClassification"];
1492
1586
  compare: components["schemas"]["ReportPeriodAvailability"] | null;
1493
1587
  current: components["schemas"]["ReportPeriodAvailability"];
1494
1588
  id: components["schemas"]["ReportAvailabilitySectionId"];
@@ -1507,30 +1601,46 @@ export interface components {
1507
1601
  siteId: string;
1508
1602
  /** @enum {string} */
1509
1603
  status: "ACTIVE" | "SUSPENDED";
1604
+ timezone: string;
1510
1605
  };
1511
1606
  SiteProductConfiguration: {
1512
1607
  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"];
1608
+ /** @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. */
1609
+ campaigns_enabled: boolean;
1610
+ dashboard: components["schemas"]["ProductDashboard"];
1522
1611
  exports: components["schemas"]["ProductExports"];
1523
1612
  product_retention: components["schemas"]["ProductRetention"];
1524
1613
  /** @enum {string} */
1525
1614
  runtime_plan_id: "free" | "starter" | "pro";
1526
- technical_retention: components["schemas"]["TechnicalRetention"];
1527
- };
1528
- SiteProductDashboard: components["schemas"]["ProductDashboard"] & {
1529
- enabled_surfaces: string[];
1530
1615
  };
1531
1616
  SitesResponse: {
1532
1617
  items: components["schemas"]["SiteItem"][];
1533
1618
  };
1619
+ /**
1620
+ * @description Small-site rule. A rate, a mean or a percentile needs ten contributors;
1621
+ * below, it is `null` in `current`. When the requested period has fewer,
1622
+ * these are the same totals over the shortest calendar period (ISO week,
1623
+ * month, quarter, year) that contains it and counts ten contributors.
1624
+ * Complement rule: when a filter sets apart 1 to 9 visits of the site in
1625
+ * the requested period, its rates, means, durations and percentiles are
1626
+ * `null` (rows included, and in `compare`), and these totals come from
1627
+ * the shortest such period where the filter sets apart none or at least
1628
+ * ten visits (`reason: filter_complement`). Counts are unchanged.
1629
+ * Absent or `null` when no such period exists.
1630
+ */
1631
+ SmallSiteBasis: {
1632
+ period: {
1633
+ /** Format: date-time */
1634
+ end: string;
1635
+ /** Format: date-time */
1636
+ start: string;
1637
+ };
1638
+ /** @enum {string} */
1639
+ reason?: "small_site" | "filter_complement";
1640
+ totals: {
1641
+ [key: string]: number | null;
1642
+ };
1643
+ };
1534
1644
  /** @description Compare window metadata for report and metrics surfaces. */
1535
1645
  SurfaceCompareWindow: {
1536
1646
  /** Format: date-time */
@@ -1555,23 +1665,35 @@ export interface components {
1555
1665
  SurfaceExportCapability: {
1556
1666
  csv: boolean;
1557
1667
  /** @enum {string} */
1558
- dataEnvelope: "strict" | "extended" | "mixed";
1559
- /** @enum {string} */
1560
1668
  level: "none" | "limited" | "standard" | "guardrailed" | "advanced" | "custom";
1561
1669
  notes?: string[];
1562
1670
  };
1563
- /** @description Additive launch-readiness metadata for reports and metrics. */
1671
+ /** @description Additive metadata for reports and metrics. */
1564
1672
  SurfaceMeta: {
1565
1673
  compareWindow: components["schemas"]["SurfaceCompareWindow"];
1566
- /** @enum {string} */
1567
- dataEnvelope: "strict" | "extended" | "mixed";
1568
1674
  dataFreshness: components["schemas"]["SurfaceDataFreshness"];
1569
1675
  exportCapability: components["schemas"]["SurfaceExportCapability"];
1676
+ /** @description On the whole site, with no filter and no client space, these counts are exact from 1: the totals and the per-day series (visitors, visits, page views, events, and the `period_total` and points of a `day` series), the breakdowns by country, region, device, system, browser, language and screen size, the pages and entry pages, the named sources and the types of referring site, and the goals with their conversions. The cities (a list of those with at least ten visits), the raw referring domains, the `hour` series, every filtered or crossed report and the Campagnes sections publish counts exact from 10; a count of 1..9 is `null`: render it as less than 10, never as a number. 0 is a measured empty count. A filtered report keeps the complement rule. Totals are computed on exact values, then published by the same rule; never add up displayed values. A share follows its count: it is `null` when the count is. A change (`delta`, `delta_pct`) is published only when both counts are 0 or at least 10, 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. */
1677
+ reportingPrecision?: {
1678
+ /** @enum {integer} */
1679
+ minimumCount: 10;
1680
+ /** @enum {number} */
1681
+ rateStep: 0.01;
1682
+ /** @enum {string} */
1683
+ version: "exact-masked-counts-v1";
1684
+ };
1685
+ };
1686
+ TenantConflictErrorBody: {
1570
1687
  /** @enum {string} */
1571
- mode: "strict" | "extended";
1688
+ code: "TENANT_SLUG_CONFLICT" | "TENANT_CONFLICT";
1689
+ details?: {
1690
+ [key: string]: unknown;
1691
+ } | null;
1692
+ message: string;
1693
+ request_id: string;
1572
1694
  };
1573
- TechnicalRetention: {
1574
- site_data_retention_months: number;
1695
+ TenantConflictErrorResponse: {
1696
+ error: components["schemas"]["TenantConflictErrorBody"];
1575
1697
  };
1576
1698
  TenantItem: {
1577
1699
  /** @enum {string} */
@@ -1586,24 +1708,57 @@ export interface components {
1586
1708
  TenantsResponse: {
1587
1709
  items: components["schemas"]["TenantItem"][];
1588
1710
  };
1711
+ TenantsWriteRequest: {
1712
+ site_id: string;
1713
+ tenants: components["schemas"]["TenantWriteItem"][];
1714
+ };
1715
+ TenantsWriteResponse: {
1716
+ created: number;
1717
+ items: components["schemas"]["TenantWriteResultItem"][];
1718
+ unchanged: number;
1719
+ updated: number;
1720
+ };
1721
+ TenantWriteItem: {
1722
+ /**
1723
+ * @description Omitted keeps the stored status (`ACTIVE` for a new tenant).
1724
+ * `INACTIVE` is the only way to deactivate a tenant.
1725
+ * @enum {string}
1726
+ */
1727
+ status?: "ACTIVE" | "INACTIVE";
1728
+ /** @description Stable tenant identifier chosen by the platform. */
1729
+ tenant_id: string;
1730
+ /** @description Display name. */
1731
+ tenant_name: string;
1732
+ /** @description Routing slug, unique within the site. */
1733
+ tenant_slug: string;
1734
+ };
1735
+ TenantWriteResultItem: components["schemas"]["TenantItem"] & {
1736
+ /** @enum {string} */
1737
+ result: "created" | "updated" | "unchanged";
1738
+ };
1589
1739
  TimeseriesPoint: {
1590
1740
  ts: string;
1591
- value: number;
1741
+ value: number | null;
1592
1742
  };
1593
1743
  TimeseriesResponse: {
1594
1744
  availability: components["schemas"]["ReportAvailability"];
1595
1745
  meta: components["schemas"]["MeteredMeta"];
1746
+ period_total: number | null;
1596
1747
  points: components["schemas"]["TimeseriesPoint"][];
1597
1748
  };
1598
1749
  TopReferrer: {
1599
- /** @enum {string} */
1600
- channel?: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
1601
1750
  domain: string;
1602
1751
  favicon_url?: string | null;
1603
- sessions: number;
1752
+ sessions: number | null;
1753
+ };
1754
+ TopReferrerSource: {
1755
+ favicon_url?: string | null;
1756
+ sessions: number | null;
1757
+ source: string;
1758
+ type: components["schemas"]["ReferrerType"];
1604
1759
  };
1605
1760
  TopSource: {
1606
- sessions: number;
1761
+ sessions: number | null;
1607
1762
  source: string;
1608
1763
  };
1609
1764
  UsageCurrentResponse: {
@@ -1632,58 +1787,78 @@ export interface components {
1632
1787
  used_units: number;
1633
1788
  };
1634
1789
  UserApiAcquisitionCurrent: {
1790
+ /**
1791
+ * @description Visits with consent by channel (Campagnes option, section
1792
+ * `acquisition_attribution`); empty without the option.
1793
+ */
1635
1794
  by_channel: components["schemas"]["AcquisitionChannelItem"][];
1636
1795
  by_day: {
1637
- /** @enum {string} */
1638
- channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
1639
1796
  /** Format: date */
1640
1797
  date: string;
1641
- sessions: number;
1798
+ sessions: number | null;
1642
1799
  }[];
1800
+ /** @description Campagnes option of the site. When `false`, the Campagnes sections are empty. */
1801
+ campaigns_enabled: boolean;
1802
+ /** @description Visits with Campagnes consent in the period, published like the other counts. `0` when the option is off. */
1803
+ consented_sessions: number | null;
1643
1804
  /**
1644
- * @description Mixed acquisition section `acquisition_attribution`. May be empty
1645
- * when the route returns only the strict-safe slice in HTTP `200`.
1805
+ * @description Visits with consent by campaign (Campagnes option, section
1806
+ * `acquisition_attribution`); empty without the option.
1646
1807
  */
1647
1808
  top_campaigns: {
1648
1809
  campaign: string;
1649
- sessions: number;
1810
+ sessions: number | null;
1650
1811
  }[];
1651
- /** @description Strict-safe acquisition-lite slice available in both Strict and Extended. */
1812
+ /** @description Landing pages of the visits. */
1652
1813
  top_landing_pages: {
1653
- /** @enum {string} */
1654
- channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
1655
1814
  page_title?: string | null;
1656
1815
  path_canon: string | null;
1657
- sessions: number;
1816
+ sessions: number | null;
1658
1817
  }[];
1659
1818
  /**
1660
- * @description Mixed acquisition section `acquisition_attribution`. May be empty
1661
- * when the route returns only the strict-safe slice in HTTP `200`.
1819
+ * @description Visits with consent by medium (Campagnes option, section
1820
+ * `acquisition_attribution`); empty without the option.
1662
1821
  */
1663
1822
  top_mediums: {
1664
1823
  medium: string;
1665
- sessions: number;
1824
+ sessions: number | null;
1666
1825
  }[];
1667
- /** @description Strict-safe host-only referral slice available in both Strict and Extended. */
1826
+ /** @description Referring domains of the visits. */
1668
1827
  top_referrers: components["schemas"]["TopReferrer"][];
1669
1828
  /**
1670
- * @description Mixed acquisition section `acquisition_attribution`. May be empty
1671
- * when the route returns only the strict-safe slice in HTTP `200`.
1829
+ * @description Visits with consent by source (Campagnes option, section
1830
+ * `acquisition_attribution`); empty without the option.
1672
1831
  */
1673
1832
  top_sources: components["schemas"]["TopSource"][];
1674
1833
  totals: {
1675
- avg_session_eng_time_ms: number;
1676
- engagement_rate: number;
1677
- pageviews: number;
1678
- sessions: number;
1834
+ avg_session_eng_time_ms: number | null;
1835
+ engagement_rate: number | null;
1836
+ pageviews: number | null;
1837
+ sessions: number | null;
1679
1838
  };
1680
1839
  };
1681
1840
  UserApiAcquisitionDetailsCurrent: {
1841
+ /** @description Campagnes option of the site. When `false`, the Campagnes sections are empty. */
1842
+ campaigns_enabled: boolean;
1843
+ /** @description Visits with Campagnes consent in the period, published like the other counts. `0` when the option is off. */
1844
+ consented_sessions: number | null;
1682
1845
  dimensions: {
1846
+ /** @description Computed on visits with consent (Campagnes option); empty without the option. */
1683
1847
  campaigns: components["schemas"]["AcquisitionDimensionItem"][];
1848
+ /** @description Computed on visits with consent (Campagnes option); empty without the option. */
1849
+ contents: components["schemas"]["AcquisitionDimensionItem"][];
1850
+ /** @description Computed on visits with consent (Campagnes option); empty without the option. */
1684
1851
  mediums: components["schemas"]["AcquisitionDimensionItem"][];
1852
+ /** @description Named sources, all visits: the domains of one service under its name, counted before the ten-visit threshold. */
1853
+ referrer_sources: components["schemas"]["AcquisitionReferrerSourceItem"][];
1854
+ /** @description Types of referring site, all visits: search engine, social network, messaging, AI assistant, other site. */
1855
+ referrer_types: components["schemas"]["AcquisitionReferrerTypeItem"][];
1856
+ /** @description Referring domains, all visits. */
1685
1857
  referrers: components["schemas"]["AcquisitionDimensionItem"][];
1858
+ /** @description Computed on visits with consent (Campagnes option); empty without the option. */
1686
1859
  sources: components["schemas"]["AcquisitionDimensionItem"][];
1860
+ /** @description Computed on visits with consent (Campagnes option); empty without the option. */
1861
+ terms: components["schemas"]["AcquisitionDimensionItem"][];
1687
1862
  };
1688
1863
  goals_configured: boolean;
1689
1864
  impact?: components["schemas"]["AcquisitionImpact"] | null;
@@ -1694,6 +1869,7 @@ export interface components {
1694
1869
  compare: components["schemas"]["UserApiAcquisitionCurrent"] | null;
1695
1870
  current: components["schemas"]["UserApiAcquisitionCurrent"];
1696
1871
  range: components["schemas"]["Range"];
1872
+ small_site?: components["schemas"]["SmallSiteBasis"] | null;
1697
1873
  };
1698
1874
  UserApiAcquisitionReportMeta: {
1699
1875
  availability: components["schemas"]["ReportAvailability"];
@@ -1701,15 +1877,32 @@ export interface components {
1701
1877
  range: components["schemas"]["Range"];
1702
1878
  };
1703
1879
  UserApiAcquisitionSummaryCurrent: {
1880
+ /** @description Campagnes option of the site. When `false`, the Campagnes sections are empty. */
1881
+ campaigns_enabled: boolean;
1882
+ /**
1883
+ * @description Visits with consent by channel and day (Campagnes option); empty
1884
+ * without the option.
1885
+ */
1886
+ channel_timeseries: {
1887
+ /** @enum {string} */
1888
+ channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
1889
+ /** Format: date */
1890
+ date: string;
1891
+ sessions: number | null;
1892
+ }[];
1893
+ /**
1894
+ * @description Visits with consent by channel (Campagnes option, section
1895
+ * `acquisition_attribution`); empty without the option.
1896
+ */
1704
1897
  channels: components["schemas"]["AcquisitionSummaryChannelItem"][];
1898
+ /** @description Visits with Campagnes consent in the period, published like the other counts. `0` when the option is off. */
1899
+ consented_sessions: number | null;
1705
1900
  coverage: components["schemas"]["AcquisitionCoverage"];
1706
1901
  goals_configured: boolean;
1707
1902
  mix_timeseries: {
1708
- /** @enum {string} */
1709
- channel: "Direct" | "Search" | "Referral" | "Social" | "Email" | "Paid" | "Other";
1710
1903
  /** Format: date */
1711
1904
  date: string;
1712
- sessions: number;
1905
+ sessions: number | null;
1713
1906
  }[];
1714
1907
  totals: components["schemas"]["AcquisitionSummaryTotals"];
1715
1908
  };
@@ -1718,18 +1911,21 @@ export interface components {
1718
1911
  compare: components["schemas"]["ActionsCurrent"] | null;
1719
1912
  current: components["schemas"]["ActionsCurrent"];
1720
1913
  range: components["schemas"]["Range"];
1914
+ small_site?: components["schemas"]["SmallSiteBasis"] | null;
1721
1915
  };
1722
1916
  UserApiContentFullEnvelope: {
1723
1917
  availability: components["schemas"]["ReportAvailability"];
1724
1918
  compare: components["schemas"]["ContentFullCurrent"] | null;
1725
1919
  current: components["schemas"]["ContentFullCurrent"];
1726
1920
  range: components["schemas"]["Range"];
1921
+ small_site?: components["schemas"]["SmallSiteBasis"] | null;
1727
1922
  };
1728
1923
  UserApiContentSummaryEnvelope: {
1729
1924
  availability: components["schemas"]["ReportAvailability"];
1730
1925
  compare: components["schemas"]["ContentSummaryCurrent"] | null;
1731
1926
  current: components["schemas"]["ContentSummaryCurrent"];
1732
1927
  range: components["schemas"]["Range"];
1928
+ small_site?: components["schemas"]["SmallSiteBasis"] | null;
1733
1929
  };
1734
1930
  UserApiGoalFilters: {
1735
1931
  action_id?: string;
@@ -1738,25 +1934,23 @@ export interface components {
1738
1934
  form_id?: string;
1739
1935
  };
1740
1936
  UserApiMoverItem: {
1741
- current_pageviews: number;
1742
- delta: number;
1743
- delta_pct: number;
1937
+ current_pageviews: number | null;
1938
+ delta: number | null;
1939
+ delta_pct: number | null;
1744
1940
  page_title?: string | null;
1745
1941
  path_canon: string | null;
1746
- previous_pageviews: number;
1942
+ previous_pageviews: number | null;
1747
1943
  };
1748
1944
  UserApiOverviewEnvelope: {
1749
1945
  availability: components["schemas"]["ReportAvailability"];
1750
1946
  compare: components["schemas"]["OverviewCurrent"] | null;
1751
1947
  current: components["schemas"]["OverviewCurrent"];
1752
1948
  range: components["schemas"]["Range"];
1949
+ small_site?: components["schemas"]["SmallSiteBasis"] | null;
1753
1950
  };
1754
1951
  WorkspaceProductConfiguration: {
1755
1952
  api: components["schemas"]["ProductApi"];
1756
- capabilities: components["schemas"]["EffectiveProductCapabilities"];
1757
1953
  dashboard: components["schemas"]["ProductDashboard"];
1758
- /** @enum {string} */
1759
- default_collection_profile: "strict" | "extended";
1760
1954
  exports: components["schemas"]["ProductExports"];
1761
1955
  product_retention: components["schemas"]["ProductRetention"];
1762
1956
  quotas: components["schemas"]["ProductQuotas"];
@@ -1801,7 +1995,7 @@ export interface components {
1801
1995
  "application/json": components["schemas"]["ErrorResponse"];
1802
1996
  };
1803
1997
  };
1804
- /** @description Request parameters are invalid. */
1998
+ /** @description Request parameters are invalid, or the result is below the minimum reporting cohort (`REPORTING_THRESHOLD`, no `details`). */
1805
1999
  InvalidParams: {
1806
2000
  headers: {
1807
2001
  "X-Request-Id": components["headers"]["XRequestId"];
@@ -1825,9 +2019,8 @@ export interface components {
1825
2019
  };
1826
2020
  };
1827
2021
  /**
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.
2022
+ * @description The requested period is not covered by collected data
2023
+ * (`REPORT_NOT_AVAILABLE_FOR_REQUESTED_PERIOD`).
1831
2024
  */
1832
2025
  ReportAvailabilityConflict: {
1833
2026
  headers: {
@@ -1864,29 +2057,30 @@ export interface components {
1864
2057
  /**
1865
2058
  * @description Grouping dimension for breakdown endpoint.
1866
2059
  * When `dimension=tenant`, rows are grouped by stable `tenant_id`. The
2060
+ * statistics of a tenant are those of the page's tracked space. The
1867
2061
  * response also includes `tenant_slug` and `tenant_name` as display labels.
1868
2062
  */
1869
- BreakdownDimension: "device" | "referrer" | "page" | "browser" | "os" | "tenant";
2063
+ BreakdownDimension: "device" | "referrer" | "page" | "browser" | "os" | "country" | "tenant";
1870
2064
  /** @description Number of rows returned by breakdown endpoint. */
1871
2065
  BreakdownLimit: number;
1872
2066
  /** @description Compare current range against the previous equivalent period. */
1873
2067
  CompareParam: "prev_period";
1874
2068
  /**
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`.
2069
+ * @description Content response depth. `summary` returns totals and one global
2070
+ * pageview point per day of the site's time zone; `limit` has no effect. `full` returns the
2071
+ * detailed Content report.
1878
2072
  * When omitted, ranges up to 90 days use `full`; ranges from 91 through
1879
2073
  * 365 days use `summary`.
1880
2074
  */
1881
- ContentInclude: "summary" | "full" | "details";
2075
+ ContentInclude: "summary" | "full";
1882
2076
  /**
1883
2077
  * @description JSON object serialized as string, example:
1884
2078
  * `{"device":"mobile","referrer":"google.com"}`.
1885
2079
  */
1886
2080
  Filters: string;
1887
- /** @description Inclusive UTC start date (YYYY-MM-DD). Pass explicit from and to dates to bound the requested period. */
2081
+ /** @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
2082
  FromDate: string;
1889
- /** @description Granularity (`hour` can require higher plan). */
2083
+ /** @description Granularity (`day` or `hour`, on every plan with API access). */
1890
2084
  Interval: "day" | "hour";
1891
2085
  /**
1892
2086
  * @description Metric to aggregate (default `pageviews`). `sessions` uses the same
@@ -1908,13 +2102,20 @@ export interface components {
1908
2102
  * `tenant_id` identifies one tenant.
1909
2103
  */
1910
2104
  TenantId: string;
1911
- /** @description Inclusive UTC end date (`YYYY-MM-DD`). Defaults to today. */
2105
+ /** @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
2106
  ToDate: string;
1913
2107
  /** @description Traffic segment to include. */
1914
2108
  TrafficParam: "humans" | "humans_including_ai" | "bots_only" | "ai_bots_only" | "all";
1915
2109
  };
1916
2110
  requestBodies: never;
1917
2111
  headers: {
2112
+ /**
2113
+ * @description Present with the value `near_hard_cap` once the workspace has used 80 %
2114
+ * of its monthly API hard cap. Plan for the ceiling before requests are
2115
+ * refused with `HARD_CAP_REACHED`. Never sent to a token restricted to
2116
+ * tenants.
2117
+ */
2118
+ XPomeloUsageWarning: "near_hard_cap";
1918
2119
  /** @description Maximum requests allowed during current short window. */
1919
2120
  XRateLimitLimit: number;
1920
2121
  /** @description Remaining requests in current short window. */