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