@debugbundle/shared-types 1.3.1 → 1.4.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.
@@ -0,0 +1,2646 @@
1
+ import { z } from "zod";
2
+ export declare const ANALYTICS_EVENT_SCHEMA_VERSION = "2026-07-analytics-01";
3
+ export declare const ANALYTICS_BUNDLE_SCHEMA_VERSION = "analytics_bundle.v1";
4
+ export declare const ANALYTICS_BUNDLE_GENERATION_ID_HEADER = "X-DebugBundle-Generation-Id";
5
+ export declare const MAX_ANALYTICS_CUSTOM_DIMENSIONS_PER_EVENT = 8;
6
+ export declare const AnalyticsEventKindValues: readonly ["session_start", "page_view", "route_change", "action", "funnel_step", "conversion", "journey_marker", "session_summary"];
7
+ export declare const AnalyticsEventKindSchema: z.ZodEnum<["session_start", "page_view", "route_change", "action", "funnel_step", "conversion", "journey_marker", "session_summary"]>;
8
+ export type AnalyticsEventKind = z.infer<typeof AnalyticsEventKindSchema>;
9
+ export declare const AnalyticsPrivacyModeValues: readonly ["strict", "standard", "custom"];
10
+ export declare const AnalyticsPrivacyModeSchema: z.ZodEnum<["strict", "standard", "custom"]>;
11
+ export type AnalyticsPrivacyMode = z.infer<typeof AnalyticsPrivacyModeSchema>;
12
+ export declare const AnalyticsAuthStateValues: readonly ["anonymous", "authenticated", "unknown"];
13
+ export declare const AnalyticsAuthStateSchema: z.ZodEnum<["anonymous", "authenticated", "unknown"]>;
14
+ export type AnalyticsAuthState = z.infer<typeof AnalyticsAuthStateSchema>;
15
+ export declare const AnalyticsDeviceTypeValues: readonly ["desktop", "mobile", "tablet", "unknown"];
16
+ export declare const AnalyticsDeviceTypeSchema: z.ZodEnum<["desktop", "mobile", "tablet", "unknown"]>;
17
+ export type AnalyticsDeviceType = z.infer<typeof AnalyticsDeviceTypeSchema>;
18
+ export declare const AnalyticsViewportBucketValues: readonly ["small", "medium", "large", "unknown"];
19
+ export declare const AnalyticsViewportBucketSchema: z.ZodEnum<["small", "medium", "large", "unknown"]>;
20
+ export type AnalyticsViewportBucket = z.infer<typeof AnalyticsViewportBucketSchema>;
21
+ export declare const AnalyticsBundleAnalysisKindValues: readonly ["usage_summary", "route_health", "funnel_dropoff", "journey_friction", "feature_usage", "incident_impact", "deploy_comparison", "conversion_path"];
22
+ export declare const AnalyticsBundleAnalysisKindSchema: z.ZodEnum<["usage_summary", "route_health", "funnel_dropoff", "journey_friction", "feature_usage", "incident_impact", "deploy_comparison", "conversion_path"]>;
23
+ export type AnalyticsBundleAnalysisKind = z.infer<typeof AnalyticsBundleAnalysisKindSchema>;
24
+ export declare const AnalyticsBundleConfidenceValues: readonly ["low", "medium", "high"];
25
+ export declare const AnalyticsBundleConfidenceSchema: z.ZodEnum<["low", "medium", "high"]>;
26
+ export type AnalyticsBundleConfidence = z.infer<typeof AnalyticsBundleConfidenceSchema>;
27
+ export declare const AnalyticsBundleSeverityValues: readonly ["low", "medium", "high"];
28
+ export declare const AnalyticsBundleSeveritySchema: z.ZodEnum<["low", "medium", "high"]>;
29
+ export type AnalyticsBundleSeverity = z.infer<typeof AnalyticsBundleSeveritySchema>;
30
+ export declare const AnalyticsBundleGranularityValues: readonly ["hour", "day", "week", "month"];
31
+ export declare const AnalyticsBundleGranularitySchema: z.ZodEnum<["hour", "day", "week", "month"]>;
32
+ export type AnalyticsBundleGranularity = z.infer<typeof AnalyticsBundleGranularitySchema>;
33
+ export declare const AnalyticsMetricsGranularityValues: readonly ["hour", "day"];
34
+ export declare const AnalyticsMetricsGranularitySchema: z.ZodEnum<["hour", "day"]>;
35
+ export type AnalyticsMetricsGranularity = z.infer<typeof AnalyticsMetricsGranularitySchema>;
36
+ export declare const AnalyticsSafeHashSchema: z.ZodString;
37
+ export declare const AnalyticsSignalSchema: z.ZodEffects<z.ZodObject<{
38
+ action_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ funnel_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ step_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ conversion_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ marker_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ }, "strict", z.ZodTypeAny, {
44
+ action_key?: string | null | undefined;
45
+ funnel_key?: string | null | undefined;
46
+ step_key?: string | null | undefined;
47
+ conversion_key?: string | null | undefined;
48
+ marker_key?: string | null | undefined;
49
+ }, {
50
+ action_key?: string | null | undefined;
51
+ funnel_key?: string | null | undefined;
52
+ step_key?: string | null | undefined;
53
+ conversion_key?: string | null | undefined;
54
+ marker_key?: string | null | undefined;
55
+ }>, {
56
+ action_key: string | null;
57
+ funnel_key: string | null;
58
+ step_key: string | null;
59
+ conversion_key: string | null;
60
+ marker_key: string | null;
61
+ }, {
62
+ action_key?: string | null | undefined;
63
+ funnel_key?: string | null | undefined;
64
+ step_key?: string | null | undefined;
65
+ conversion_key?: string | null | undefined;
66
+ marker_key?: string | null | undefined;
67
+ }>;
68
+ export type AnalyticsSignal = z.infer<typeof AnalyticsSignalSchema>;
69
+ export declare const AnalyticsRouteSchema: z.ZodEffects<z.ZodObject<{
70
+ path: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
71
+ normalized_path: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
72
+ title: z.ZodNullable<z.ZodString>;
73
+ }, "strict", z.ZodTypeAny, {
74
+ path: string | null;
75
+ normalized_path: string | null;
76
+ title: string | null;
77
+ }, {
78
+ path: string | null;
79
+ normalized_path: string | null;
80
+ title: string | null;
81
+ }>, {
82
+ path: string | null;
83
+ normalized_path: string | null;
84
+ title: string | null;
85
+ }, {
86
+ path: string | null;
87
+ normalized_path: string | null;
88
+ title: string | null;
89
+ }>;
90
+ export type AnalyticsRoute = z.infer<typeof AnalyticsRouteSchema>;
91
+ export declare const AnalyticsDimensionsSchema: z.ZodObject<{
92
+ auth_state: z.ZodEnum<["anonymous", "authenticated", "unknown"]>;
93
+ device_type: z.ZodEnum<["desktop", "mobile", "tablet", "unknown"]>;
94
+ browser_family: z.ZodNullable<z.ZodString>;
95
+ browser_major: z.ZodNullable<z.ZodNumber>;
96
+ os_family: z.ZodNullable<z.ZodString>;
97
+ os_major: z.ZodNullable<z.ZodNumber>;
98
+ language: z.ZodNullable<z.ZodString>;
99
+ locale: z.ZodNullable<z.ZodString>;
100
+ viewport_bucket: z.ZodEnum<["small", "medium", "large", "unknown"]>;
101
+ referrer_domain: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
102
+ utm_source: z.ZodNullable<z.ZodString>;
103
+ utm_medium: z.ZodNullable<z.ZodString>;
104
+ utm_campaign: z.ZodNullable<z.ZodString>;
105
+ country_code: z.ZodNullable<z.ZodString>;
106
+ region_code: z.ZodNullable<z.ZodString>;
107
+ }, "strict", z.ZodTypeAny, {
108
+ auth_state: "unknown" | "anonymous" | "authenticated";
109
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
110
+ browser_family: string | null;
111
+ browser_major: number | null;
112
+ os_family: string | null;
113
+ os_major: number | null;
114
+ language: string | null;
115
+ locale: string | null;
116
+ viewport_bucket: "unknown" | "small" | "medium" | "large";
117
+ referrer_domain: string | null;
118
+ utm_source: string | null;
119
+ utm_medium: string | null;
120
+ utm_campaign: string | null;
121
+ country_code: string | null;
122
+ region_code: string | null;
123
+ }, {
124
+ auth_state: "unknown" | "anonymous" | "authenticated";
125
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
126
+ browser_family: string | null;
127
+ browser_major: number | null;
128
+ os_family: string | null;
129
+ os_major: number | null;
130
+ language: string | null;
131
+ locale: string | null;
132
+ viewport_bucket: "unknown" | "small" | "medium" | "large";
133
+ referrer_domain: string | null;
134
+ utm_source: string | null;
135
+ utm_medium: string | null;
136
+ utm_campaign: string | null;
137
+ country_code: string | null;
138
+ region_code: string | null;
139
+ }>;
140
+ export type AnalyticsDimensions = z.infer<typeof AnalyticsDimensionsSchema>;
141
+ export declare const AnalyticsCustomDimensionKeySchema: z.ZodEffects<z.ZodString, string, string>;
142
+ export type AnalyticsCustomDimensionKey = z.infer<typeof AnalyticsCustomDimensionKeySchema>;
143
+ export declare const AnalyticsCustomDimensionValueSchema: z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
144
+ export type AnalyticsCustomDimensionValue = z.infer<typeof AnalyticsCustomDimensionValueSchema>;
145
+ export declare const AnalyticsCustomDimensionsSchema: z.ZodEffects<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>;
146
+ export type AnalyticsCustomDimensions = z.infer<typeof AnalyticsCustomDimensionsSchema>;
147
+ export declare const AnalyticsServiceSchema: z.ZodObject<{
148
+ name: z.ZodString;
149
+ runtime: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"browser">>>;
150
+ framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
151
+ environment: z.ZodString;
152
+ }, "strict", z.ZodTypeAny, {
153
+ environment: string;
154
+ name: string;
155
+ runtime?: "browser" | null | undefined;
156
+ framework?: string | null | undefined;
157
+ }, {
158
+ environment: string;
159
+ name: string;
160
+ runtime?: "browser" | null | undefined;
161
+ framework?: string | null | undefined;
162
+ }>;
163
+ export type AnalyticsService = z.infer<typeof AnalyticsServiceSchema>;
164
+ export declare const AnalyticsCorrelationSchema: z.ZodObject<{
165
+ session_id: z.ZodString;
166
+ visitor_id_hash: z.ZodNullable<z.ZodString>;
167
+ user_id_hash: z.ZodNullable<z.ZodString>;
168
+ trace_id: z.ZodNullable<z.ZodString>;
169
+ deploy_id: z.ZodNullable<z.ZodString>;
170
+ }, "strict", z.ZodTypeAny, {
171
+ trace_id: string | null;
172
+ deploy_id: string | null;
173
+ visitor_id_hash: string | null;
174
+ session_id: string;
175
+ user_id_hash: string | null;
176
+ }, {
177
+ trace_id: string | null;
178
+ deploy_id: string | null;
179
+ visitor_id_hash: string | null;
180
+ session_id: string;
181
+ user_id_hash: string | null;
182
+ }>;
183
+ export type AnalyticsCorrelation = z.infer<typeof AnalyticsCorrelationSchema>;
184
+ export declare const AnalyticsEventPrivacySchema: z.ZodObject<{
185
+ mode: z.ZodEnum<["strict", "standard", "custom"]>;
186
+ consent_granted: z.ZodBoolean;
187
+ }, "strict", z.ZodTypeAny, {
188
+ mode: "strict" | "custom" | "standard";
189
+ consent_granted: boolean;
190
+ }, {
191
+ mode: "strict" | "custom" | "standard";
192
+ consent_granted: boolean;
193
+ }>;
194
+ export type AnalyticsEventPrivacy = z.infer<typeof AnalyticsEventPrivacySchema>;
195
+ export declare const AnalyticsSessionMetricsSchema: z.ZodObject<{
196
+ duration_ms: z.ZodNumber;
197
+ pageviews: z.ZodNumber;
198
+ }, "strict", z.ZodTypeAny, {
199
+ duration_ms: number;
200
+ pageviews: number;
201
+ }, {
202
+ duration_ms: number;
203
+ pageviews: number;
204
+ }>;
205
+ export type AnalyticsSessionMetrics = z.infer<typeof AnalyticsSessionMetricsSchema>;
206
+ export declare const AnalyticsPayloadSchema: z.ZodEffects<z.ZodObject<{
207
+ kind: z.ZodEnum<["session_start", "page_view", "route_change", "action", "funnel_step", "conversion", "journey_marker", "session_summary"]>;
208
+ privacy: z.ZodDefault<z.ZodOptional<z.ZodObject<{
209
+ mode: z.ZodEnum<["strict", "standard", "custom"]>;
210
+ consent_granted: z.ZodBoolean;
211
+ }, "strict", z.ZodTypeAny, {
212
+ mode: "strict" | "custom" | "standard";
213
+ consent_granted: boolean;
214
+ }, {
215
+ mode: "strict" | "custom" | "standard";
216
+ consent_granted: boolean;
217
+ }>>>;
218
+ session: z.ZodOptional<z.ZodObject<{
219
+ duration_ms: z.ZodNumber;
220
+ pageviews: z.ZodNumber;
221
+ }, "strict", z.ZodTypeAny, {
222
+ duration_ms: number;
223
+ pageviews: number;
224
+ }, {
225
+ duration_ms: number;
226
+ pageviews: number;
227
+ }>>;
228
+ signal: z.ZodOptional<z.ZodEffects<z.ZodObject<{
229
+ action_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
230
+ funnel_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
231
+ step_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
232
+ conversion_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
233
+ marker_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
234
+ }, "strict", z.ZodTypeAny, {
235
+ action_key?: string | null | undefined;
236
+ funnel_key?: string | null | undefined;
237
+ step_key?: string | null | undefined;
238
+ conversion_key?: string | null | undefined;
239
+ marker_key?: string | null | undefined;
240
+ }, {
241
+ action_key?: string | null | undefined;
242
+ funnel_key?: string | null | undefined;
243
+ step_key?: string | null | undefined;
244
+ conversion_key?: string | null | undefined;
245
+ marker_key?: string | null | undefined;
246
+ }>, {
247
+ action_key: string | null;
248
+ funnel_key: string | null;
249
+ step_key: string | null;
250
+ conversion_key: string | null;
251
+ marker_key: string | null;
252
+ }, {
253
+ action_key?: string | null | undefined;
254
+ funnel_key?: string | null | undefined;
255
+ step_key?: string | null | undefined;
256
+ conversion_key?: string | null | undefined;
257
+ marker_key?: string | null | undefined;
258
+ }>>;
259
+ route: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodObject<{
260
+ path: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
261
+ normalized_path: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
262
+ title: z.ZodNullable<z.ZodString>;
263
+ }, "strict", z.ZodTypeAny, {
264
+ path: string | null;
265
+ normalized_path: string | null;
266
+ title: string | null;
267
+ }, {
268
+ path: string | null;
269
+ normalized_path: string | null;
270
+ title: string | null;
271
+ }>, {
272
+ path: string | null;
273
+ normalized_path: string | null;
274
+ title: string | null;
275
+ }, {
276
+ path: string | null;
277
+ normalized_path: string | null;
278
+ title: string | null;
279
+ }>>>;
280
+ previous_route: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodObject<{
281
+ path: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
282
+ normalized_path: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
283
+ title: z.ZodNullable<z.ZodString>;
284
+ }, "strict", z.ZodTypeAny, {
285
+ path: string | null;
286
+ normalized_path: string | null;
287
+ title: string | null;
288
+ }, {
289
+ path: string | null;
290
+ normalized_path: string | null;
291
+ title: string | null;
292
+ }>, {
293
+ path: string | null;
294
+ normalized_path: string | null;
295
+ title: string | null;
296
+ }, {
297
+ path: string | null;
298
+ normalized_path: string | null;
299
+ title: string | null;
300
+ }>>>;
301
+ dimensions: z.ZodObject<{
302
+ auth_state: z.ZodEnum<["anonymous", "authenticated", "unknown"]>;
303
+ device_type: z.ZodEnum<["desktop", "mobile", "tablet", "unknown"]>;
304
+ browser_family: z.ZodNullable<z.ZodString>;
305
+ browser_major: z.ZodNullable<z.ZodNumber>;
306
+ os_family: z.ZodNullable<z.ZodString>;
307
+ os_major: z.ZodNullable<z.ZodNumber>;
308
+ language: z.ZodNullable<z.ZodString>;
309
+ locale: z.ZodNullable<z.ZodString>;
310
+ viewport_bucket: z.ZodEnum<["small", "medium", "large", "unknown"]>;
311
+ referrer_domain: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
312
+ utm_source: z.ZodNullable<z.ZodString>;
313
+ utm_medium: z.ZodNullable<z.ZodString>;
314
+ utm_campaign: z.ZodNullable<z.ZodString>;
315
+ country_code: z.ZodNullable<z.ZodString>;
316
+ region_code: z.ZodNullable<z.ZodString>;
317
+ }, "strict", z.ZodTypeAny, {
318
+ auth_state: "unknown" | "anonymous" | "authenticated";
319
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
320
+ browser_family: string | null;
321
+ browser_major: number | null;
322
+ os_family: string | null;
323
+ os_major: number | null;
324
+ language: string | null;
325
+ locale: string | null;
326
+ viewport_bucket: "unknown" | "small" | "medium" | "large";
327
+ referrer_domain: string | null;
328
+ utm_source: string | null;
329
+ utm_medium: string | null;
330
+ utm_campaign: string | null;
331
+ country_code: string | null;
332
+ region_code: string | null;
333
+ }, {
334
+ auth_state: "unknown" | "anonymous" | "authenticated";
335
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
336
+ browser_family: string | null;
337
+ browser_major: number | null;
338
+ os_family: string | null;
339
+ os_major: number | null;
340
+ language: string | null;
341
+ locale: string | null;
342
+ viewport_bucket: "unknown" | "small" | "medium" | "large";
343
+ referrer_domain: string | null;
344
+ utm_source: string | null;
345
+ utm_medium: string | null;
346
+ utm_campaign: string | null;
347
+ country_code: string | null;
348
+ region_code: string | null;
349
+ }>;
350
+ custom_dimensions: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>>>;
351
+ }, "strict", z.ZodTypeAny, {
352
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
353
+ dimensions: {
354
+ auth_state: "unknown" | "anonymous" | "authenticated";
355
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
356
+ browser_family: string | null;
357
+ browser_major: number | null;
358
+ os_family: string | null;
359
+ os_major: number | null;
360
+ language: string | null;
361
+ locale: string | null;
362
+ viewport_bucket: "unknown" | "small" | "medium" | "large";
363
+ referrer_domain: string | null;
364
+ utm_source: string | null;
365
+ utm_medium: string | null;
366
+ utm_campaign: string | null;
367
+ country_code: string | null;
368
+ region_code: string | null;
369
+ };
370
+ custom_dimensions: Record<string, string | number | boolean | null>;
371
+ privacy: {
372
+ mode: "strict" | "custom" | "standard";
373
+ consent_granted: boolean;
374
+ };
375
+ route?: {
376
+ path: string | null;
377
+ normalized_path: string | null;
378
+ title: string | null;
379
+ } | null | undefined;
380
+ previous_route?: {
381
+ path: string | null;
382
+ normalized_path: string | null;
383
+ title: string | null;
384
+ } | null | undefined;
385
+ signal?: {
386
+ action_key: string | null;
387
+ funnel_key: string | null;
388
+ step_key: string | null;
389
+ conversion_key: string | null;
390
+ marker_key: string | null;
391
+ } | undefined;
392
+ session?: {
393
+ duration_ms: number;
394
+ pageviews: number;
395
+ } | undefined;
396
+ }, {
397
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
398
+ dimensions: {
399
+ auth_state: "unknown" | "anonymous" | "authenticated";
400
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
401
+ browser_family: string | null;
402
+ browser_major: number | null;
403
+ os_family: string | null;
404
+ os_major: number | null;
405
+ language: string | null;
406
+ locale: string | null;
407
+ viewport_bucket: "unknown" | "small" | "medium" | "large";
408
+ referrer_domain: string | null;
409
+ utm_source: string | null;
410
+ utm_medium: string | null;
411
+ utm_campaign: string | null;
412
+ country_code: string | null;
413
+ region_code: string | null;
414
+ };
415
+ route?: {
416
+ path: string | null;
417
+ normalized_path: string | null;
418
+ title: string | null;
419
+ } | null | undefined;
420
+ previous_route?: {
421
+ path: string | null;
422
+ normalized_path: string | null;
423
+ title: string | null;
424
+ } | null | undefined;
425
+ signal?: {
426
+ action_key?: string | null | undefined;
427
+ funnel_key?: string | null | undefined;
428
+ step_key?: string | null | undefined;
429
+ conversion_key?: string | null | undefined;
430
+ marker_key?: string | null | undefined;
431
+ } | undefined;
432
+ custom_dimensions?: Record<string, string | number | boolean | null> | undefined;
433
+ privacy?: {
434
+ mode: "strict" | "custom" | "standard";
435
+ consent_granted: boolean;
436
+ } | undefined;
437
+ session?: {
438
+ duration_ms: number;
439
+ pageviews: number;
440
+ } | undefined;
441
+ }>, {
442
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
443
+ dimensions: {
444
+ auth_state: "unknown" | "anonymous" | "authenticated";
445
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
446
+ browser_family: string | null;
447
+ browser_major: number | null;
448
+ os_family: string | null;
449
+ os_major: number | null;
450
+ language: string | null;
451
+ locale: string | null;
452
+ viewport_bucket: "unknown" | "small" | "medium" | "large";
453
+ referrer_domain: string | null;
454
+ utm_source: string | null;
455
+ utm_medium: string | null;
456
+ utm_campaign: string | null;
457
+ country_code: string | null;
458
+ region_code: string | null;
459
+ };
460
+ custom_dimensions: Record<string, string | number | boolean | null>;
461
+ privacy: {
462
+ mode: "strict" | "custom" | "standard";
463
+ consent_granted: boolean;
464
+ };
465
+ route?: {
466
+ path: string | null;
467
+ normalized_path: string | null;
468
+ title: string | null;
469
+ } | null | undefined;
470
+ previous_route?: {
471
+ path: string | null;
472
+ normalized_path: string | null;
473
+ title: string | null;
474
+ } | null | undefined;
475
+ signal?: {
476
+ action_key: string | null;
477
+ funnel_key: string | null;
478
+ step_key: string | null;
479
+ conversion_key: string | null;
480
+ marker_key: string | null;
481
+ } | undefined;
482
+ session?: {
483
+ duration_ms: number;
484
+ pageviews: number;
485
+ } | undefined;
486
+ }, {
487
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
488
+ dimensions: {
489
+ auth_state: "unknown" | "anonymous" | "authenticated";
490
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
491
+ browser_family: string | null;
492
+ browser_major: number | null;
493
+ os_family: string | null;
494
+ os_major: number | null;
495
+ language: string | null;
496
+ locale: string | null;
497
+ viewport_bucket: "unknown" | "small" | "medium" | "large";
498
+ referrer_domain: string | null;
499
+ utm_source: string | null;
500
+ utm_medium: string | null;
501
+ utm_campaign: string | null;
502
+ country_code: string | null;
503
+ region_code: string | null;
504
+ };
505
+ route?: {
506
+ path: string | null;
507
+ normalized_path: string | null;
508
+ title: string | null;
509
+ } | null | undefined;
510
+ previous_route?: {
511
+ path: string | null;
512
+ normalized_path: string | null;
513
+ title: string | null;
514
+ } | null | undefined;
515
+ signal?: {
516
+ action_key?: string | null | undefined;
517
+ funnel_key?: string | null | undefined;
518
+ step_key?: string | null | undefined;
519
+ conversion_key?: string | null | undefined;
520
+ marker_key?: string | null | undefined;
521
+ } | undefined;
522
+ custom_dimensions?: Record<string, string | number | boolean | null> | undefined;
523
+ privacy?: {
524
+ mode: "strict" | "custom" | "standard";
525
+ consent_granted: boolean;
526
+ } | undefined;
527
+ session?: {
528
+ duration_ms: number;
529
+ pageviews: number;
530
+ } | undefined;
531
+ }>;
532
+ export type AnalyticsPayload = z.infer<typeof AnalyticsPayloadSchema>;
533
+ export declare const AnalyticsEventEnvelopeSchema: z.ZodObject<{
534
+ schema_version: z.ZodLiteral<"2026-07-analytics-01">;
535
+ event_id: z.ZodString;
536
+ event_type: z.ZodLiteral<"analytics_event">;
537
+ project_token: z.ZodOptional<z.ZodString>;
538
+ project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
539
+ occurred_at: z.ZodString;
540
+ sdk_name: z.ZodString;
541
+ sdk_version: z.ZodString;
542
+ service: z.ZodObject<{
543
+ name: z.ZodString;
544
+ runtime: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"browser">>>;
545
+ framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
546
+ environment: z.ZodString;
547
+ }, "strict", z.ZodTypeAny, {
548
+ environment: string;
549
+ name: string;
550
+ runtime?: "browser" | null | undefined;
551
+ framework?: string | null | undefined;
552
+ }, {
553
+ environment: string;
554
+ name: string;
555
+ runtime?: "browser" | null | undefined;
556
+ framework?: string | null | undefined;
557
+ }>;
558
+ correlation: z.ZodObject<{
559
+ session_id: z.ZodString;
560
+ visitor_id_hash: z.ZodNullable<z.ZodString>;
561
+ user_id_hash: z.ZodNullable<z.ZodString>;
562
+ trace_id: z.ZodNullable<z.ZodString>;
563
+ deploy_id: z.ZodNullable<z.ZodString>;
564
+ }, "strict", z.ZodTypeAny, {
565
+ trace_id: string | null;
566
+ deploy_id: string | null;
567
+ visitor_id_hash: string | null;
568
+ session_id: string;
569
+ user_id_hash: string | null;
570
+ }, {
571
+ trace_id: string | null;
572
+ deploy_id: string | null;
573
+ visitor_id_hash: string | null;
574
+ session_id: string;
575
+ user_id_hash: string | null;
576
+ }>;
577
+ payload: z.ZodEffects<z.ZodObject<{
578
+ kind: z.ZodEnum<["session_start", "page_view", "route_change", "action", "funnel_step", "conversion", "journey_marker", "session_summary"]>;
579
+ privacy: z.ZodDefault<z.ZodOptional<z.ZodObject<{
580
+ mode: z.ZodEnum<["strict", "standard", "custom"]>;
581
+ consent_granted: z.ZodBoolean;
582
+ }, "strict", z.ZodTypeAny, {
583
+ mode: "strict" | "custom" | "standard";
584
+ consent_granted: boolean;
585
+ }, {
586
+ mode: "strict" | "custom" | "standard";
587
+ consent_granted: boolean;
588
+ }>>>;
589
+ session: z.ZodOptional<z.ZodObject<{
590
+ duration_ms: z.ZodNumber;
591
+ pageviews: z.ZodNumber;
592
+ }, "strict", z.ZodTypeAny, {
593
+ duration_ms: number;
594
+ pageviews: number;
595
+ }, {
596
+ duration_ms: number;
597
+ pageviews: number;
598
+ }>>;
599
+ signal: z.ZodOptional<z.ZodEffects<z.ZodObject<{
600
+ action_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
601
+ funnel_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
602
+ step_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
603
+ conversion_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
604
+ marker_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
605
+ }, "strict", z.ZodTypeAny, {
606
+ action_key?: string | null | undefined;
607
+ funnel_key?: string | null | undefined;
608
+ step_key?: string | null | undefined;
609
+ conversion_key?: string | null | undefined;
610
+ marker_key?: string | null | undefined;
611
+ }, {
612
+ action_key?: string | null | undefined;
613
+ funnel_key?: string | null | undefined;
614
+ step_key?: string | null | undefined;
615
+ conversion_key?: string | null | undefined;
616
+ marker_key?: string | null | undefined;
617
+ }>, {
618
+ action_key: string | null;
619
+ funnel_key: string | null;
620
+ step_key: string | null;
621
+ conversion_key: string | null;
622
+ marker_key: string | null;
623
+ }, {
624
+ action_key?: string | null | undefined;
625
+ funnel_key?: string | null | undefined;
626
+ step_key?: string | null | undefined;
627
+ conversion_key?: string | null | undefined;
628
+ marker_key?: string | null | undefined;
629
+ }>>;
630
+ route: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodObject<{
631
+ path: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
632
+ normalized_path: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
633
+ title: z.ZodNullable<z.ZodString>;
634
+ }, "strict", z.ZodTypeAny, {
635
+ path: string | null;
636
+ normalized_path: string | null;
637
+ title: string | null;
638
+ }, {
639
+ path: string | null;
640
+ normalized_path: string | null;
641
+ title: string | null;
642
+ }>, {
643
+ path: string | null;
644
+ normalized_path: string | null;
645
+ title: string | null;
646
+ }, {
647
+ path: string | null;
648
+ normalized_path: string | null;
649
+ title: string | null;
650
+ }>>>;
651
+ previous_route: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodObject<{
652
+ path: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
653
+ normalized_path: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
654
+ title: z.ZodNullable<z.ZodString>;
655
+ }, "strict", z.ZodTypeAny, {
656
+ path: string | null;
657
+ normalized_path: string | null;
658
+ title: string | null;
659
+ }, {
660
+ path: string | null;
661
+ normalized_path: string | null;
662
+ title: string | null;
663
+ }>, {
664
+ path: string | null;
665
+ normalized_path: string | null;
666
+ title: string | null;
667
+ }, {
668
+ path: string | null;
669
+ normalized_path: string | null;
670
+ title: string | null;
671
+ }>>>;
672
+ dimensions: z.ZodObject<{
673
+ auth_state: z.ZodEnum<["anonymous", "authenticated", "unknown"]>;
674
+ device_type: z.ZodEnum<["desktop", "mobile", "tablet", "unknown"]>;
675
+ browser_family: z.ZodNullable<z.ZodString>;
676
+ browser_major: z.ZodNullable<z.ZodNumber>;
677
+ os_family: z.ZodNullable<z.ZodString>;
678
+ os_major: z.ZodNullable<z.ZodNumber>;
679
+ language: z.ZodNullable<z.ZodString>;
680
+ locale: z.ZodNullable<z.ZodString>;
681
+ viewport_bucket: z.ZodEnum<["small", "medium", "large", "unknown"]>;
682
+ referrer_domain: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
683
+ utm_source: z.ZodNullable<z.ZodString>;
684
+ utm_medium: z.ZodNullable<z.ZodString>;
685
+ utm_campaign: z.ZodNullable<z.ZodString>;
686
+ country_code: z.ZodNullable<z.ZodString>;
687
+ region_code: z.ZodNullable<z.ZodString>;
688
+ }, "strict", z.ZodTypeAny, {
689
+ auth_state: "unknown" | "anonymous" | "authenticated";
690
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
691
+ browser_family: string | null;
692
+ browser_major: number | null;
693
+ os_family: string | null;
694
+ os_major: number | null;
695
+ language: string | null;
696
+ locale: string | null;
697
+ viewport_bucket: "unknown" | "small" | "medium" | "large";
698
+ referrer_domain: string | null;
699
+ utm_source: string | null;
700
+ utm_medium: string | null;
701
+ utm_campaign: string | null;
702
+ country_code: string | null;
703
+ region_code: string | null;
704
+ }, {
705
+ auth_state: "unknown" | "anonymous" | "authenticated";
706
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
707
+ browser_family: string | null;
708
+ browser_major: number | null;
709
+ os_family: string | null;
710
+ os_major: number | null;
711
+ language: string | null;
712
+ locale: string | null;
713
+ viewport_bucket: "unknown" | "small" | "medium" | "large";
714
+ referrer_domain: string | null;
715
+ utm_source: string | null;
716
+ utm_medium: string | null;
717
+ utm_campaign: string | null;
718
+ country_code: string | null;
719
+ region_code: string | null;
720
+ }>;
721
+ custom_dimensions: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>>>;
722
+ }, "strict", z.ZodTypeAny, {
723
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
724
+ dimensions: {
725
+ auth_state: "unknown" | "anonymous" | "authenticated";
726
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
727
+ browser_family: string | null;
728
+ browser_major: number | null;
729
+ os_family: string | null;
730
+ os_major: number | null;
731
+ language: string | null;
732
+ locale: string | null;
733
+ viewport_bucket: "unknown" | "small" | "medium" | "large";
734
+ referrer_domain: string | null;
735
+ utm_source: string | null;
736
+ utm_medium: string | null;
737
+ utm_campaign: string | null;
738
+ country_code: string | null;
739
+ region_code: string | null;
740
+ };
741
+ custom_dimensions: Record<string, string | number | boolean | null>;
742
+ privacy: {
743
+ mode: "strict" | "custom" | "standard";
744
+ consent_granted: boolean;
745
+ };
746
+ route?: {
747
+ path: string | null;
748
+ normalized_path: string | null;
749
+ title: string | null;
750
+ } | null | undefined;
751
+ previous_route?: {
752
+ path: string | null;
753
+ normalized_path: string | null;
754
+ title: string | null;
755
+ } | null | undefined;
756
+ signal?: {
757
+ action_key: string | null;
758
+ funnel_key: string | null;
759
+ step_key: string | null;
760
+ conversion_key: string | null;
761
+ marker_key: string | null;
762
+ } | undefined;
763
+ session?: {
764
+ duration_ms: number;
765
+ pageviews: number;
766
+ } | undefined;
767
+ }, {
768
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
769
+ dimensions: {
770
+ auth_state: "unknown" | "anonymous" | "authenticated";
771
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
772
+ browser_family: string | null;
773
+ browser_major: number | null;
774
+ os_family: string | null;
775
+ os_major: number | null;
776
+ language: string | null;
777
+ locale: string | null;
778
+ viewport_bucket: "unknown" | "small" | "medium" | "large";
779
+ referrer_domain: string | null;
780
+ utm_source: string | null;
781
+ utm_medium: string | null;
782
+ utm_campaign: string | null;
783
+ country_code: string | null;
784
+ region_code: string | null;
785
+ };
786
+ route?: {
787
+ path: string | null;
788
+ normalized_path: string | null;
789
+ title: string | null;
790
+ } | null | undefined;
791
+ previous_route?: {
792
+ path: string | null;
793
+ normalized_path: string | null;
794
+ title: string | null;
795
+ } | null | undefined;
796
+ signal?: {
797
+ action_key?: string | null | undefined;
798
+ funnel_key?: string | null | undefined;
799
+ step_key?: string | null | undefined;
800
+ conversion_key?: string | null | undefined;
801
+ marker_key?: string | null | undefined;
802
+ } | undefined;
803
+ custom_dimensions?: Record<string, string | number | boolean | null> | undefined;
804
+ privacy?: {
805
+ mode: "strict" | "custom" | "standard";
806
+ consent_granted: boolean;
807
+ } | undefined;
808
+ session?: {
809
+ duration_ms: number;
810
+ pageviews: number;
811
+ } | undefined;
812
+ }>, {
813
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
814
+ dimensions: {
815
+ auth_state: "unknown" | "anonymous" | "authenticated";
816
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
817
+ browser_family: string | null;
818
+ browser_major: number | null;
819
+ os_family: string | null;
820
+ os_major: number | null;
821
+ language: string | null;
822
+ locale: string | null;
823
+ viewport_bucket: "unknown" | "small" | "medium" | "large";
824
+ referrer_domain: string | null;
825
+ utm_source: string | null;
826
+ utm_medium: string | null;
827
+ utm_campaign: string | null;
828
+ country_code: string | null;
829
+ region_code: string | null;
830
+ };
831
+ custom_dimensions: Record<string, string | number | boolean | null>;
832
+ privacy: {
833
+ mode: "strict" | "custom" | "standard";
834
+ consent_granted: boolean;
835
+ };
836
+ route?: {
837
+ path: string | null;
838
+ normalized_path: string | null;
839
+ title: string | null;
840
+ } | null | undefined;
841
+ previous_route?: {
842
+ path: string | null;
843
+ normalized_path: string | null;
844
+ title: string | null;
845
+ } | null | undefined;
846
+ signal?: {
847
+ action_key: string | null;
848
+ funnel_key: string | null;
849
+ step_key: string | null;
850
+ conversion_key: string | null;
851
+ marker_key: string | null;
852
+ } | undefined;
853
+ session?: {
854
+ duration_ms: number;
855
+ pageviews: number;
856
+ } | undefined;
857
+ }, {
858
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
859
+ dimensions: {
860
+ auth_state: "unknown" | "anonymous" | "authenticated";
861
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
862
+ browser_family: string | null;
863
+ browser_major: number | null;
864
+ os_family: string | null;
865
+ os_major: number | null;
866
+ language: string | null;
867
+ locale: string | null;
868
+ viewport_bucket: "unknown" | "small" | "medium" | "large";
869
+ referrer_domain: string | null;
870
+ utm_source: string | null;
871
+ utm_medium: string | null;
872
+ utm_campaign: string | null;
873
+ country_code: string | null;
874
+ region_code: string | null;
875
+ };
876
+ route?: {
877
+ path: string | null;
878
+ normalized_path: string | null;
879
+ title: string | null;
880
+ } | null | undefined;
881
+ previous_route?: {
882
+ path: string | null;
883
+ normalized_path: string | null;
884
+ title: string | null;
885
+ } | null | undefined;
886
+ signal?: {
887
+ action_key?: string | null | undefined;
888
+ funnel_key?: string | null | undefined;
889
+ step_key?: string | null | undefined;
890
+ conversion_key?: string | null | undefined;
891
+ marker_key?: string | null | undefined;
892
+ } | undefined;
893
+ custom_dimensions?: Record<string, string | number | boolean | null> | undefined;
894
+ privacy?: {
895
+ mode: "strict" | "custom" | "standard";
896
+ consent_granted: boolean;
897
+ } | undefined;
898
+ session?: {
899
+ duration_ms: number;
900
+ pageviews: number;
901
+ } | undefined;
902
+ }>;
903
+ }, "strict", z.ZodTypeAny, {
904
+ event_id: string;
905
+ occurred_at: string;
906
+ service: {
907
+ environment: string;
908
+ name: string;
909
+ runtime?: "browser" | null | undefined;
910
+ framework?: string | null | undefined;
911
+ };
912
+ schema_version: "2026-07-analytics-01";
913
+ event_type: "analytics_event";
914
+ sdk_name: string;
915
+ sdk_version: string;
916
+ correlation: {
917
+ trace_id: string | null;
918
+ deploy_id: string | null;
919
+ visitor_id_hash: string | null;
920
+ session_id: string;
921
+ user_id_hash: string | null;
922
+ };
923
+ payload: {
924
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
925
+ dimensions: {
926
+ auth_state: "unknown" | "anonymous" | "authenticated";
927
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
928
+ browser_family: string | null;
929
+ browser_major: number | null;
930
+ os_family: string | null;
931
+ os_major: number | null;
932
+ language: string | null;
933
+ locale: string | null;
934
+ viewport_bucket: "unknown" | "small" | "medium" | "large";
935
+ referrer_domain: string | null;
936
+ utm_source: string | null;
937
+ utm_medium: string | null;
938
+ utm_campaign: string | null;
939
+ country_code: string | null;
940
+ region_code: string | null;
941
+ };
942
+ custom_dimensions: Record<string, string | number | boolean | null>;
943
+ privacy: {
944
+ mode: "strict" | "custom" | "standard";
945
+ consent_granted: boolean;
946
+ };
947
+ route?: {
948
+ path: string | null;
949
+ normalized_path: string | null;
950
+ title: string | null;
951
+ } | null | undefined;
952
+ previous_route?: {
953
+ path: string | null;
954
+ normalized_path: string | null;
955
+ title: string | null;
956
+ } | null | undefined;
957
+ signal?: {
958
+ action_key: string | null;
959
+ funnel_key: string | null;
960
+ step_key: string | null;
961
+ conversion_key: string | null;
962
+ marker_key: string | null;
963
+ } | undefined;
964
+ session?: {
965
+ duration_ms: number;
966
+ pageviews: number;
967
+ } | undefined;
968
+ };
969
+ project_id?: string | null | undefined;
970
+ project_token?: string | undefined;
971
+ }, {
972
+ event_id: string;
973
+ occurred_at: string;
974
+ service: {
975
+ environment: string;
976
+ name: string;
977
+ runtime?: "browser" | null | undefined;
978
+ framework?: string | null | undefined;
979
+ };
980
+ schema_version: "2026-07-analytics-01";
981
+ event_type: "analytics_event";
982
+ sdk_name: string;
983
+ sdk_version: string;
984
+ correlation: {
985
+ trace_id: string | null;
986
+ deploy_id: string | null;
987
+ visitor_id_hash: string | null;
988
+ session_id: string;
989
+ user_id_hash: string | null;
990
+ };
991
+ payload: {
992
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
993
+ dimensions: {
994
+ auth_state: "unknown" | "anonymous" | "authenticated";
995
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
996
+ browser_family: string | null;
997
+ browser_major: number | null;
998
+ os_family: string | null;
999
+ os_major: number | null;
1000
+ language: string | null;
1001
+ locale: string | null;
1002
+ viewport_bucket: "unknown" | "small" | "medium" | "large";
1003
+ referrer_domain: string | null;
1004
+ utm_source: string | null;
1005
+ utm_medium: string | null;
1006
+ utm_campaign: string | null;
1007
+ country_code: string | null;
1008
+ region_code: string | null;
1009
+ };
1010
+ route?: {
1011
+ path: string | null;
1012
+ normalized_path: string | null;
1013
+ title: string | null;
1014
+ } | null | undefined;
1015
+ previous_route?: {
1016
+ path: string | null;
1017
+ normalized_path: string | null;
1018
+ title: string | null;
1019
+ } | null | undefined;
1020
+ signal?: {
1021
+ action_key?: string | null | undefined;
1022
+ funnel_key?: string | null | undefined;
1023
+ step_key?: string | null | undefined;
1024
+ conversion_key?: string | null | undefined;
1025
+ marker_key?: string | null | undefined;
1026
+ } | undefined;
1027
+ custom_dimensions?: Record<string, string | number | boolean | null> | undefined;
1028
+ privacy?: {
1029
+ mode: "strict" | "custom" | "standard";
1030
+ consent_granted: boolean;
1031
+ } | undefined;
1032
+ session?: {
1033
+ duration_ms: number;
1034
+ pageviews: number;
1035
+ } | undefined;
1036
+ };
1037
+ project_id?: string | null | undefined;
1038
+ project_token?: string | undefined;
1039
+ }>;
1040
+ export type AnalyticsEventEnvelope = z.infer<typeof AnalyticsEventEnvelopeSchema>;
1041
+ declare const AnalyticsMetricsSegmentSchema: z.ZodObject<{
1042
+ value: z.ZodString;
1043
+ sessions: z.ZodNumber;
1044
+ pageviews: z.ZodNumber;
1045
+ }, "strict", z.ZodTypeAny, {
1046
+ value: string;
1047
+ pageviews: number;
1048
+ sessions: number;
1049
+ }, {
1050
+ value: string;
1051
+ pageviews: number;
1052
+ sessions: number;
1053
+ }>;
1054
+ export type AnalyticsMetricsSegment = z.infer<typeof AnalyticsMetricsSegmentSchema>;
1055
+ declare const AnalyticsUsageSummarySchema: z.ZodEffects<z.ZodObject<{
1056
+ project_id: z.ZodString;
1057
+ from: z.ZodString;
1058
+ to: z.ZodString;
1059
+ granularity: z.ZodEnum<["hour", "day"]>;
1060
+ service: z.ZodNullable<z.ZodString>;
1061
+ environment: z.ZodNullable<z.ZodString>;
1062
+ sessions: z.ZodNumber;
1063
+ pageviews: z.ZodNumber;
1064
+ active_visitors: z.ZodNumber;
1065
+ new_visitors: z.ZodNumber;
1066
+ returning_visitors: z.ZodNumber;
1067
+ exits: z.ZodNumber;
1068
+ conversions: z.ZodNumber;
1069
+ }, "strict", z.ZodTypeAny, {
1070
+ project_id: string;
1071
+ service: string | null;
1072
+ environment: string | null;
1073
+ pageviews: number;
1074
+ sessions: number;
1075
+ from: string;
1076
+ to: string;
1077
+ granularity: "hour" | "day";
1078
+ active_visitors: number;
1079
+ new_visitors: number;
1080
+ returning_visitors: number;
1081
+ exits: number;
1082
+ conversions: number;
1083
+ }, {
1084
+ project_id: string;
1085
+ service: string | null;
1086
+ environment: string | null;
1087
+ pageviews: number;
1088
+ sessions: number;
1089
+ from: string;
1090
+ to: string;
1091
+ granularity: "hour" | "day";
1092
+ active_visitors: number;
1093
+ new_visitors: number;
1094
+ returning_visitors: number;
1095
+ exits: number;
1096
+ conversions: number;
1097
+ }>, {
1098
+ project_id: string;
1099
+ service: string | null;
1100
+ environment: string | null;
1101
+ pageviews: number;
1102
+ sessions: number;
1103
+ from: string;
1104
+ to: string;
1105
+ granularity: "hour" | "day";
1106
+ active_visitors: number;
1107
+ new_visitors: number;
1108
+ returning_visitors: number;
1109
+ exits: number;
1110
+ conversions: number;
1111
+ }, {
1112
+ project_id: string;
1113
+ service: string | null;
1114
+ environment: string | null;
1115
+ pageviews: number;
1116
+ sessions: number;
1117
+ from: string;
1118
+ to: string;
1119
+ granularity: "hour" | "day";
1120
+ active_visitors: number;
1121
+ new_visitors: number;
1122
+ returning_visitors: number;
1123
+ exits: number;
1124
+ conversions: number;
1125
+ }>;
1126
+ export type AnalyticsUsageSummary = z.infer<typeof AnalyticsUsageSummarySchema>;
1127
+ declare const AnalyticsUsageBreakdownsSchema: z.ZodObject<{
1128
+ device_types: z.ZodArray<z.ZodObject<{
1129
+ value: z.ZodString;
1130
+ sessions: z.ZodNumber;
1131
+ pageviews: z.ZodNumber;
1132
+ }, "strict", z.ZodTypeAny, {
1133
+ value: string;
1134
+ pageviews: number;
1135
+ sessions: number;
1136
+ }, {
1137
+ value: string;
1138
+ pageviews: number;
1139
+ sessions: number;
1140
+ }>, "many">;
1141
+ browsers: z.ZodArray<z.ZodObject<{
1142
+ value: z.ZodString;
1143
+ sessions: z.ZodNumber;
1144
+ pageviews: z.ZodNumber;
1145
+ }, "strict", z.ZodTypeAny, {
1146
+ value: string;
1147
+ pageviews: number;
1148
+ sessions: number;
1149
+ }, {
1150
+ value: string;
1151
+ pageviews: number;
1152
+ sessions: number;
1153
+ }>, "many">;
1154
+ os: z.ZodArray<z.ZodObject<{
1155
+ value: z.ZodString;
1156
+ sessions: z.ZodNumber;
1157
+ pageviews: z.ZodNumber;
1158
+ }, "strict", z.ZodTypeAny, {
1159
+ value: string;
1160
+ pageviews: number;
1161
+ sessions: number;
1162
+ }, {
1163
+ value: string;
1164
+ pageviews: number;
1165
+ sessions: number;
1166
+ }>, "many">;
1167
+ languages: z.ZodArray<z.ZodObject<{
1168
+ value: z.ZodString;
1169
+ sessions: z.ZodNumber;
1170
+ pageviews: z.ZodNumber;
1171
+ }, "strict", z.ZodTypeAny, {
1172
+ value: string;
1173
+ pageviews: number;
1174
+ sessions: number;
1175
+ }, {
1176
+ value: string;
1177
+ pageviews: number;
1178
+ sessions: number;
1179
+ }>, "many">;
1180
+ referrers: z.ZodArray<z.ZodObject<{
1181
+ value: z.ZodString;
1182
+ sessions: z.ZodNumber;
1183
+ pageviews: z.ZodNumber;
1184
+ }, "strict", z.ZodTypeAny, {
1185
+ value: string;
1186
+ pageviews: number;
1187
+ sessions: number;
1188
+ }, {
1189
+ value: string;
1190
+ pageviews: number;
1191
+ sessions: number;
1192
+ }>, "many">;
1193
+ auth_states: z.ZodArray<z.ZodObject<{
1194
+ value: z.ZodString;
1195
+ sessions: z.ZodNumber;
1196
+ pageviews: z.ZodNumber;
1197
+ }, "strict", z.ZodTypeAny, {
1198
+ value: string;
1199
+ pageviews: number;
1200
+ sessions: number;
1201
+ }, {
1202
+ value: string;
1203
+ pageviews: number;
1204
+ sessions: number;
1205
+ }>, "many">;
1206
+ }, "strict", z.ZodTypeAny, {
1207
+ device_types: {
1208
+ value: string;
1209
+ pageviews: number;
1210
+ sessions: number;
1211
+ }[];
1212
+ browsers: {
1213
+ value: string;
1214
+ pageviews: number;
1215
+ sessions: number;
1216
+ }[];
1217
+ os: {
1218
+ value: string;
1219
+ pageviews: number;
1220
+ sessions: number;
1221
+ }[];
1222
+ languages: {
1223
+ value: string;
1224
+ pageviews: number;
1225
+ sessions: number;
1226
+ }[];
1227
+ referrers: {
1228
+ value: string;
1229
+ pageviews: number;
1230
+ sessions: number;
1231
+ }[];
1232
+ auth_states: {
1233
+ value: string;
1234
+ pageviews: number;
1235
+ sessions: number;
1236
+ }[];
1237
+ }, {
1238
+ device_types: {
1239
+ value: string;
1240
+ pageviews: number;
1241
+ sessions: number;
1242
+ }[];
1243
+ browsers: {
1244
+ value: string;
1245
+ pageviews: number;
1246
+ sessions: number;
1247
+ }[];
1248
+ os: {
1249
+ value: string;
1250
+ pageviews: number;
1251
+ sessions: number;
1252
+ }[];
1253
+ languages: {
1254
+ value: string;
1255
+ pageviews: number;
1256
+ sessions: number;
1257
+ }[];
1258
+ referrers: {
1259
+ value: string;
1260
+ pageviews: number;
1261
+ sessions: number;
1262
+ }[];
1263
+ auth_states: {
1264
+ value: string;
1265
+ pageviews: number;
1266
+ sessions: number;
1267
+ }[];
1268
+ }>;
1269
+ export type AnalyticsUsageBreakdowns = z.infer<typeof AnalyticsUsageBreakdownsSchema>;
1270
+ export declare const AnalyticsUsageSummaryResponseSchema: z.ZodObject<{
1271
+ summary: z.ZodEffects<z.ZodObject<{
1272
+ project_id: z.ZodString;
1273
+ from: z.ZodString;
1274
+ to: z.ZodString;
1275
+ granularity: z.ZodEnum<["hour", "day"]>;
1276
+ service: z.ZodNullable<z.ZodString>;
1277
+ environment: z.ZodNullable<z.ZodString>;
1278
+ sessions: z.ZodNumber;
1279
+ pageviews: z.ZodNumber;
1280
+ active_visitors: z.ZodNumber;
1281
+ new_visitors: z.ZodNumber;
1282
+ returning_visitors: z.ZodNumber;
1283
+ exits: z.ZodNumber;
1284
+ conversions: z.ZodNumber;
1285
+ }, "strict", z.ZodTypeAny, {
1286
+ project_id: string;
1287
+ service: string | null;
1288
+ environment: string | null;
1289
+ pageviews: number;
1290
+ sessions: number;
1291
+ from: string;
1292
+ to: string;
1293
+ granularity: "hour" | "day";
1294
+ active_visitors: number;
1295
+ new_visitors: number;
1296
+ returning_visitors: number;
1297
+ exits: number;
1298
+ conversions: number;
1299
+ }, {
1300
+ project_id: string;
1301
+ service: string | null;
1302
+ environment: string | null;
1303
+ pageviews: number;
1304
+ sessions: number;
1305
+ from: string;
1306
+ to: string;
1307
+ granularity: "hour" | "day";
1308
+ active_visitors: number;
1309
+ new_visitors: number;
1310
+ returning_visitors: number;
1311
+ exits: number;
1312
+ conversions: number;
1313
+ }>, {
1314
+ project_id: string;
1315
+ service: string | null;
1316
+ environment: string | null;
1317
+ pageviews: number;
1318
+ sessions: number;
1319
+ from: string;
1320
+ to: string;
1321
+ granularity: "hour" | "day";
1322
+ active_visitors: number;
1323
+ new_visitors: number;
1324
+ returning_visitors: number;
1325
+ exits: number;
1326
+ conversions: number;
1327
+ }, {
1328
+ project_id: string;
1329
+ service: string | null;
1330
+ environment: string | null;
1331
+ pageviews: number;
1332
+ sessions: number;
1333
+ from: string;
1334
+ to: string;
1335
+ granularity: "hour" | "day";
1336
+ active_visitors: number;
1337
+ new_visitors: number;
1338
+ returning_visitors: number;
1339
+ exits: number;
1340
+ conversions: number;
1341
+ }>;
1342
+ breakdowns: z.ZodObject<{
1343
+ device_types: z.ZodArray<z.ZodObject<{
1344
+ value: z.ZodString;
1345
+ sessions: z.ZodNumber;
1346
+ pageviews: z.ZodNumber;
1347
+ }, "strict", z.ZodTypeAny, {
1348
+ value: string;
1349
+ pageviews: number;
1350
+ sessions: number;
1351
+ }, {
1352
+ value: string;
1353
+ pageviews: number;
1354
+ sessions: number;
1355
+ }>, "many">;
1356
+ browsers: z.ZodArray<z.ZodObject<{
1357
+ value: z.ZodString;
1358
+ sessions: z.ZodNumber;
1359
+ pageviews: z.ZodNumber;
1360
+ }, "strict", z.ZodTypeAny, {
1361
+ value: string;
1362
+ pageviews: number;
1363
+ sessions: number;
1364
+ }, {
1365
+ value: string;
1366
+ pageviews: number;
1367
+ sessions: number;
1368
+ }>, "many">;
1369
+ os: z.ZodArray<z.ZodObject<{
1370
+ value: z.ZodString;
1371
+ sessions: z.ZodNumber;
1372
+ pageviews: z.ZodNumber;
1373
+ }, "strict", z.ZodTypeAny, {
1374
+ value: string;
1375
+ pageviews: number;
1376
+ sessions: number;
1377
+ }, {
1378
+ value: string;
1379
+ pageviews: number;
1380
+ sessions: number;
1381
+ }>, "many">;
1382
+ languages: z.ZodArray<z.ZodObject<{
1383
+ value: z.ZodString;
1384
+ sessions: z.ZodNumber;
1385
+ pageviews: z.ZodNumber;
1386
+ }, "strict", z.ZodTypeAny, {
1387
+ value: string;
1388
+ pageviews: number;
1389
+ sessions: number;
1390
+ }, {
1391
+ value: string;
1392
+ pageviews: number;
1393
+ sessions: number;
1394
+ }>, "many">;
1395
+ referrers: z.ZodArray<z.ZodObject<{
1396
+ value: z.ZodString;
1397
+ sessions: z.ZodNumber;
1398
+ pageviews: z.ZodNumber;
1399
+ }, "strict", z.ZodTypeAny, {
1400
+ value: string;
1401
+ pageviews: number;
1402
+ sessions: number;
1403
+ }, {
1404
+ value: string;
1405
+ pageviews: number;
1406
+ sessions: number;
1407
+ }>, "many">;
1408
+ auth_states: z.ZodArray<z.ZodObject<{
1409
+ value: z.ZodString;
1410
+ sessions: z.ZodNumber;
1411
+ pageviews: z.ZodNumber;
1412
+ }, "strict", z.ZodTypeAny, {
1413
+ value: string;
1414
+ pageviews: number;
1415
+ sessions: number;
1416
+ }, {
1417
+ value: string;
1418
+ pageviews: number;
1419
+ sessions: number;
1420
+ }>, "many">;
1421
+ }, "strict", z.ZodTypeAny, {
1422
+ device_types: {
1423
+ value: string;
1424
+ pageviews: number;
1425
+ sessions: number;
1426
+ }[];
1427
+ browsers: {
1428
+ value: string;
1429
+ pageviews: number;
1430
+ sessions: number;
1431
+ }[];
1432
+ os: {
1433
+ value: string;
1434
+ pageviews: number;
1435
+ sessions: number;
1436
+ }[];
1437
+ languages: {
1438
+ value: string;
1439
+ pageviews: number;
1440
+ sessions: number;
1441
+ }[];
1442
+ referrers: {
1443
+ value: string;
1444
+ pageviews: number;
1445
+ sessions: number;
1446
+ }[];
1447
+ auth_states: {
1448
+ value: string;
1449
+ pageviews: number;
1450
+ sessions: number;
1451
+ }[];
1452
+ }, {
1453
+ device_types: {
1454
+ value: string;
1455
+ pageviews: number;
1456
+ sessions: number;
1457
+ }[];
1458
+ browsers: {
1459
+ value: string;
1460
+ pageviews: number;
1461
+ sessions: number;
1462
+ }[];
1463
+ os: {
1464
+ value: string;
1465
+ pageviews: number;
1466
+ sessions: number;
1467
+ }[];
1468
+ languages: {
1469
+ value: string;
1470
+ pageviews: number;
1471
+ sessions: number;
1472
+ }[];
1473
+ referrers: {
1474
+ value: string;
1475
+ pageviews: number;
1476
+ sessions: number;
1477
+ }[];
1478
+ auth_states: {
1479
+ value: string;
1480
+ pageviews: number;
1481
+ sessions: number;
1482
+ }[];
1483
+ }>;
1484
+ }, "strict", z.ZodTypeAny, {
1485
+ summary: {
1486
+ project_id: string;
1487
+ service: string | null;
1488
+ environment: string | null;
1489
+ pageviews: number;
1490
+ sessions: number;
1491
+ from: string;
1492
+ to: string;
1493
+ granularity: "hour" | "day";
1494
+ active_visitors: number;
1495
+ new_visitors: number;
1496
+ returning_visitors: number;
1497
+ exits: number;
1498
+ conversions: number;
1499
+ };
1500
+ breakdowns: {
1501
+ device_types: {
1502
+ value: string;
1503
+ pageviews: number;
1504
+ sessions: number;
1505
+ }[];
1506
+ browsers: {
1507
+ value: string;
1508
+ pageviews: number;
1509
+ sessions: number;
1510
+ }[];
1511
+ os: {
1512
+ value: string;
1513
+ pageviews: number;
1514
+ sessions: number;
1515
+ }[];
1516
+ languages: {
1517
+ value: string;
1518
+ pageviews: number;
1519
+ sessions: number;
1520
+ }[];
1521
+ referrers: {
1522
+ value: string;
1523
+ pageviews: number;
1524
+ sessions: number;
1525
+ }[];
1526
+ auth_states: {
1527
+ value: string;
1528
+ pageviews: number;
1529
+ sessions: number;
1530
+ }[];
1531
+ };
1532
+ }, {
1533
+ summary: {
1534
+ project_id: string;
1535
+ service: string | null;
1536
+ environment: string | null;
1537
+ pageviews: number;
1538
+ sessions: number;
1539
+ from: string;
1540
+ to: string;
1541
+ granularity: "hour" | "day";
1542
+ active_visitors: number;
1543
+ new_visitors: number;
1544
+ returning_visitors: number;
1545
+ exits: number;
1546
+ conversions: number;
1547
+ };
1548
+ breakdowns: {
1549
+ device_types: {
1550
+ value: string;
1551
+ pageviews: number;
1552
+ sessions: number;
1553
+ }[];
1554
+ browsers: {
1555
+ value: string;
1556
+ pageviews: number;
1557
+ sessions: number;
1558
+ }[];
1559
+ os: {
1560
+ value: string;
1561
+ pageviews: number;
1562
+ sessions: number;
1563
+ }[];
1564
+ languages: {
1565
+ value: string;
1566
+ pageviews: number;
1567
+ sessions: number;
1568
+ }[];
1569
+ referrers: {
1570
+ value: string;
1571
+ pageviews: number;
1572
+ sessions: number;
1573
+ }[];
1574
+ auth_states: {
1575
+ value: string;
1576
+ pageviews: number;
1577
+ sessions: number;
1578
+ }[];
1579
+ };
1580
+ }>;
1581
+ export type AnalyticsUsageSummaryResponse = z.infer<typeof AnalyticsUsageSummaryResponseSchema>;
1582
+ declare const AnalyticsMetricsWindowSchema: z.ZodObject<{
1583
+ project_id: z.ZodString;
1584
+ from: z.ZodString;
1585
+ to: z.ZodString;
1586
+ granularity: z.ZodEnum<["hour", "day"]>;
1587
+ service: z.ZodNullable<z.ZodString>;
1588
+ environment: z.ZodNullable<z.ZodString>;
1589
+ }, "strict", z.ZodTypeAny, {
1590
+ project_id: string;
1591
+ service: string | null;
1592
+ environment: string | null;
1593
+ from: string;
1594
+ to: string;
1595
+ granularity: "hour" | "day";
1596
+ }, {
1597
+ project_id: string;
1598
+ service: string | null;
1599
+ environment: string | null;
1600
+ from: string;
1601
+ to: string;
1602
+ granularity: "hour" | "day";
1603
+ }>;
1604
+ export type AnalyticsMetricsWindow = z.infer<typeof AnalyticsMetricsWindowSchema>;
1605
+ declare const AnalyticsRouteMetricSchema: z.ZodObject<{
1606
+ route_key: z.ZodString;
1607
+ pageviews: z.ZodNumber;
1608
+ unique_sessions: z.ZodNumber;
1609
+ entrances: z.ZodNumber;
1610
+ exits: z.ZodNumber;
1611
+ bounces: z.ZodNumber;
1612
+ linked_incident_sessions: z.ZodNumber;
1613
+ }, "strict", z.ZodTypeAny, {
1614
+ pageviews: number;
1615
+ exits: number;
1616
+ route_key: string;
1617
+ unique_sessions: number;
1618
+ entrances: number;
1619
+ bounces: number;
1620
+ linked_incident_sessions: number;
1621
+ }, {
1622
+ pageviews: number;
1623
+ exits: number;
1624
+ route_key: string;
1625
+ unique_sessions: number;
1626
+ entrances: number;
1627
+ bounces: number;
1628
+ linked_incident_sessions: number;
1629
+ }>;
1630
+ export type AnalyticsRouteMetric = z.infer<typeof AnalyticsRouteMetricSchema>;
1631
+ export declare const AnalyticsRouteMetricsResponseSchema: z.ZodObject<{
1632
+ window: z.ZodObject<{
1633
+ project_id: z.ZodString;
1634
+ from: z.ZodString;
1635
+ to: z.ZodString;
1636
+ granularity: z.ZodEnum<["hour", "day"]>;
1637
+ service: z.ZodNullable<z.ZodString>;
1638
+ environment: z.ZodNullable<z.ZodString>;
1639
+ }, "strict", z.ZodTypeAny, {
1640
+ project_id: string;
1641
+ service: string | null;
1642
+ environment: string | null;
1643
+ from: string;
1644
+ to: string;
1645
+ granularity: "hour" | "day";
1646
+ }, {
1647
+ project_id: string;
1648
+ service: string | null;
1649
+ environment: string | null;
1650
+ from: string;
1651
+ to: string;
1652
+ granularity: "hour" | "day";
1653
+ }>;
1654
+ routes: z.ZodArray<z.ZodObject<{
1655
+ route_key: z.ZodString;
1656
+ pageviews: z.ZodNumber;
1657
+ unique_sessions: z.ZodNumber;
1658
+ entrances: z.ZodNumber;
1659
+ exits: z.ZodNumber;
1660
+ bounces: z.ZodNumber;
1661
+ linked_incident_sessions: z.ZodNumber;
1662
+ }, "strict", z.ZodTypeAny, {
1663
+ pageviews: number;
1664
+ exits: number;
1665
+ route_key: string;
1666
+ unique_sessions: number;
1667
+ entrances: number;
1668
+ bounces: number;
1669
+ linked_incident_sessions: number;
1670
+ }, {
1671
+ pageviews: number;
1672
+ exits: number;
1673
+ route_key: string;
1674
+ unique_sessions: number;
1675
+ entrances: number;
1676
+ bounces: number;
1677
+ linked_incident_sessions: number;
1678
+ }>, "many">;
1679
+ }, "strict", z.ZodTypeAny, {
1680
+ window: {
1681
+ project_id: string;
1682
+ service: string | null;
1683
+ environment: string | null;
1684
+ from: string;
1685
+ to: string;
1686
+ granularity: "hour" | "day";
1687
+ };
1688
+ routes: {
1689
+ pageviews: number;
1690
+ exits: number;
1691
+ route_key: string;
1692
+ unique_sessions: number;
1693
+ entrances: number;
1694
+ bounces: number;
1695
+ linked_incident_sessions: number;
1696
+ }[];
1697
+ }, {
1698
+ window: {
1699
+ project_id: string;
1700
+ service: string | null;
1701
+ environment: string | null;
1702
+ from: string;
1703
+ to: string;
1704
+ granularity: "hour" | "day";
1705
+ };
1706
+ routes: {
1707
+ pageviews: number;
1708
+ exits: number;
1709
+ route_key: string;
1710
+ unique_sessions: number;
1711
+ entrances: number;
1712
+ bounces: number;
1713
+ linked_incident_sessions: number;
1714
+ }[];
1715
+ }>;
1716
+ export type AnalyticsRouteMetricsResponse = z.infer<typeof AnalyticsRouteMetricsResponseSchema>;
1717
+ declare const AnalyticsJourneyPatternSchema: z.ZodObject<{
1718
+ from_route_key: z.ZodString;
1719
+ to_route_key: z.ZodString;
1720
+ transition_count: z.ZodNumber;
1721
+ unique_sessions: z.ZodNumber;
1722
+ transition_share: z.ZodNumber;
1723
+ sample_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1724
+ }, "strict", z.ZodTypeAny, {
1725
+ unique_sessions: number;
1726
+ from_route_key: string;
1727
+ to_route_key: string;
1728
+ transition_count: number;
1729
+ transition_share: number;
1730
+ sample_ids: string[];
1731
+ }, {
1732
+ unique_sessions: number;
1733
+ from_route_key: string;
1734
+ to_route_key: string;
1735
+ transition_count: number;
1736
+ transition_share: number;
1737
+ sample_ids?: string[] | undefined;
1738
+ }>;
1739
+ export type AnalyticsJourneyPattern = z.infer<typeof AnalyticsJourneyPatternSchema>;
1740
+ export declare const AnalyticsJourneyPatternsResponseSchema: z.ZodObject<{
1741
+ window: z.ZodObject<{
1742
+ project_id: z.ZodString;
1743
+ from: z.ZodString;
1744
+ to: z.ZodString;
1745
+ granularity: z.ZodEnum<["hour", "day"]>;
1746
+ service: z.ZodNullable<z.ZodString>;
1747
+ environment: z.ZodNullable<z.ZodString>;
1748
+ }, "strict", z.ZodTypeAny, {
1749
+ project_id: string;
1750
+ service: string | null;
1751
+ environment: string | null;
1752
+ from: string;
1753
+ to: string;
1754
+ granularity: "hour" | "day";
1755
+ }, {
1756
+ project_id: string;
1757
+ service: string | null;
1758
+ environment: string | null;
1759
+ from: string;
1760
+ to: string;
1761
+ granularity: "hour" | "day";
1762
+ }>;
1763
+ patterns: z.ZodArray<z.ZodObject<{
1764
+ from_route_key: z.ZodString;
1765
+ to_route_key: z.ZodString;
1766
+ transition_count: z.ZodNumber;
1767
+ unique_sessions: z.ZodNumber;
1768
+ transition_share: z.ZodNumber;
1769
+ sample_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1770
+ }, "strict", z.ZodTypeAny, {
1771
+ unique_sessions: number;
1772
+ from_route_key: string;
1773
+ to_route_key: string;
1774
+ transition_count: number;
1775
+ transition_share: number;
1776
+ sample_ids: string[];
1777
+ }, {
1778
+ unique_sessions: number;
1779
+ from_route_key: string;
1780
+ to_route_key: string;
1781
+ transition_count: number;
1782
+ transition_share: number;
1783
+ sample_ids?: string[] | undefined;
1784
+ }>, "many">;
1785
+ }, "strict", z.ZodTypeAny, {
1786
+ window: {
1787
+ project_id: string;
1788
+ service: string | null;
1789
+ environment: string | null;
1790
+ from: string;
1791
+ to: string;
1792
+ granularity: "hour" | "day";
1793
+ };
1794
+ patterns: {
1795
+ unique_sessions: number;
1796
+ from_route_key: string;
1797
+ to_route_key: string;
1798
+ transition_count: number;
1799
+ transition_share: number;
1800
+ sample_ids: string[];
1801
+ }[];
1802
+ }, {
1803
+ window: {
1804
+ project_id: string;
1805
+ service: string | null;
1806
+ environment: string | null;
1807
+ from: string;
1808
+ to: string;
1809
+ granularity: "hour" | "day";
1810
+ };
1811
+ patterns: {
1812
+ unique_sessions: number;
1813
+ from_route_key: string;
1814
+ to_route_key: string;
1815
+ transition_count: number;
1816
+ transition_share: number;
1817
+ sample_ids?: string[] | undefined;
1818
+ }[];
1819
+ }>;
1820
+ export type AnalyticsJourneyPatternsResponse = z.infer<typeof AnalyticsJourneyPatternsResponseSchema>;
1821
+ export declare const AnalyticsIncidentImpactResponseSchema: z.ZodObject<{
1822
+ incident_id: z.ZodString;
1823
+ window: z.ZodObject<{
1824
+ project_id: z.ZodString;
1825
+ from: z.ZodString;
1826
+ to: z.ZodString;
1827
+ granularity: z.ZodEnum<["hour", "day"]>;
1828
+ service: z.ZodNullable<z.ZodString>;
1829
+ environment: z.ZodNullable<z.ZodString>;
1830
+ }, "strict", z.ZodTypeAny, {
1831
+ project_id: string;
1832
+ service: string | null;
1833
+ environment: string | null;
1834
+ from: string;
1835
+ to: string;
1836
+ granularity: "hour" | "day";
1837
+ }, {
1838
+ project_id: string;
1839
+ service: string | null;
1840
+ environment: string | null;
1841
+ from: string;
1842
+ to: string;
1843
+ granularity: "hour" | "day";
1844
+ }>;
1845
+ affected_sessions: z.ZodNumber;
1846
+ affected_routes: z.ZodArray<z.ZodObject<{
1847
+ route_key: z.ZodString;
1848
+ affected_sessions: z.ZodNumber;
1849
+ }, "strict", z.ZodTypeAny, {
1850
+ route_key: string;
1851
+ affected_sessions: number;
1852
+ }, {
1853
+ route_key: string;
1854
+ affected_sessions: number;
1855
+ }>, "many">;
1856
+ affected_funnels: z.ZodArray<z.ZodObject<{
1857
+ funnel_key: z.ZodString;
1858
+ affected_sessions: z.ZodNumber;
1859
+ }, "strict", z.ZodTypeAny, {
1860
+ funnel_key: string;
1861
+ affected_sessions: number;
1862
+ }, {
1863
+ funnel_key: string;
1864
+ affected_sessions: number;
1865
+ }>, "many">;
1866
+ top_device_types: z.ZodArray<z.ZodObject<{
1867
+ value: z.ZodString;
1868
+ affected_sessions: z.ZodNumber;
1869
+ }, "strict", z.ZodTypeAny, {
1870
+ value: string;
1871
+ affected_sessions: number;
1872
+ }, {
1873
+ value: string;
1874
+ affected_sessions: number;
1875
+ }>, "many">;
1876
+ top_browsers: z.ZodArray<z.ZodObject<{
1877
+ value: z.ZodString;
1878
+ affected_sessions: z.ZodNumber;
1879
+ }, "strict", z.ZodTypeAny, {
1880
+ value: string;
1881
+ affected_sessions: number;
1882
+ }, {
1883
+ value: string;
1884
+ affected_sessions: number;
1885
+ }>, "many">;
1886
+ journey_patterns: z.ZodArray<z.ZodObject<{
1887
+ from_route_key: z.ZodString;
1888
+ to_route_key: z.ZodString;
1889
+ affected_sessions: z.ZodNumber;
1890
+ sample_ids: z.ZodArray<z.ZodString, "many">;
1891
+ }, "strict", z.ZodTypeAny, {
1892
+ from_route_key: string;
1893
+ to_route_key: string;
1894
+ sample_ids: string[];
1895
+ affected_sessions: number;
1896
+ }, {
1897
+ from_route_key: string;
1898
+ to_route_key: string;
1899
+ sample_ids: string[];
1900
+ affected_sessions: number;
1901
+ }>, "many">;
1902
+ conversion_delta: z.ZodEffects<z.ZodObject<{
1903
+ availability: z.ZodEnum<["available", "unavailable"]>;
1904
+ value: z.ZodNullable<z.ZodNumber>;
1905
+ unit: z.ZodLiteral<"percentage_points">;
1906
+ }, "strict", z.ZodTypeAny, {
1907
+ value: number | null;
1908
+ availability: "available" | "unavailable";
1909
+ unit: "percentage_points";
1910
+ }, {
1911
+ value: number | null;
1912
+ availability: "available" | "unavailable";
1913
+ unit: "percentage_points";
1914
+ }>, {
1915
+ value: number | null;
1916
+ availability: "available" | "unavailable";
1917
+ unit: "percentage_points";
1918
+ }, {
1919
+ value: number | null;
1920
+ availability: "available" | "unavailable";
1921
+ unit: "percentage_points";
1922
+ }>;
1923
+ analytics_bundle: z.ZodObject<{
1924
+ status: z.ZodEnum<["not_requested", "pending", "running", "completed", "failed"]>;
1925
+ generation_id: z.ZodNullable<z.ZodString>;
1926
+ failure_reason: z.ZodNullable<z.ZodString>;
1927
+ }, "strict", z.ZodTypeAny, {
1928
+ status: "not_requested" | "pending" | "running" | "completed" | "failed";
1929
+ generation_id: string | null;
1930
+ failure_reason: string | null;
1931
+ }, {
1932
+ status: "not_requested" | "pending" | "running" | "completed" | "failed";
1933
+ generation_id: string | null;
1934
+ failure_reason: string | null;
1935
+ }>;
1936
+ }, "strict", z.ZodTypeAny, {
1937
+ window: {
1938
+ project_id: string;
1939
+ service: string | null;
1940
+ environment: string | null;
1941
+ from: string;
1942
+ to: string;
1943
+ granularity: "hour" | "day";
1944
+ };
1945
+ affected_sessions: number;
1946
+ incident_id: string;
1947
+ affected_routes: {
1948
+ route_key: string;
1949
+ affected_sessions: number;
1950
+ }[];
1951
+ affected_funnels: {
1952
+ funnel_key: string;
1953
+ affected_sessions: number;
1954
+ }[];
1955
+ top_device_types: {
1956
+ value: string;
1957
+ affected_sessions: number;
1958
+ }[];
1959
+ top_browsers: {
1960
+ value: string;
1961
+ affected_sessions: number;
1962
+ }[];
1963
+ journey_patterns: {
1964
+ from_route_key: string;
1965
+ to_route_key: string;
1966
+ sample_ids: string[];
1967
+ affected_sessions: number;
1968
+ }[];
1969
+ conversion_delta: {
1970
+ value: number | null;
1971
+ availability: "available" | "unavailable";
1972
+ unit: "percentage_points";
1973
+ };
1974
+ analytics_bundle: {
1975
+ status: "not_requested" | "pending" | "running" | "completed" | "failed";
1976
+ generation_id: string | null;
1977
+ failure_reason: string | null;
1978
+ };
1979
+ }, {
1980
+ window: {
1981
+ project_id: string;
1982
+ service: string | null;
1983
+ environment: string | null;
1984
+ from: string;
1985
+ to: string;
1986
+ granularity: "hour" | "day";
1987
+ };
1988
+ affected_sessions: number;
1989
+ incident_id: string;
1990
+ affected_routes: {
1991
+ route_key: string;
1992
+ affected_sessions: number;
1993
+ }[];
1994
+ affected_funnels: {
1995
+ funnel_key: string;
1996
+ affected_sessions: number;
1997
+ }[];
1998
+ top_device_types: {
1999
+ value: string;
2000
+ affected_sessions: number;
2001
+ }[];
2002
+ top_browsers: {
2003
+ value: string;
2004
+ affected_sessions: number;
2005
+ }[];
2006
+ journey_patterns: {
2007
+ from_route_key: string;
2008
+ to_route_key: string;
2009
+ sample_ids: string[];
2010
+ affected_sessions: number;
2011
+ }[];
2012
+ conversion_delta: {
2013
+ value: number | null;
2014
+ availability: "available" | "unavailable";
2015
+ unit: "percentage_points";
2016
+ };
2017
+ analytics_bundle: {
2018
+ status: "not_requested" | "pending" | "running" | "completed" | "failed";
2019
+ generation_id: string | null;
2020
+ failure_reason: string | null;
2021
+ };
2022
+ }>;
2023
+ export type AnalyticsIncidentImpactResponse = z.infer<typeof AnalyticsIncidentImpactResponseSchema>;
2024
+ export declare const AnalyticsDeviceBreakdownResponseSchema: z.ZodObject<{
2025
+ window: z.ZodObject<{
2026
+ project_id: z.ZodString;
2027
+ from: z.ZodString;
2028
+ to: z.ZodString;
2029
+ granularity: z.ZodEnum<["hour", "day"]>;
2030
+ service: z.ZodNullable<z.ZodString>;
2031
+ environment: z.ZodNullable<z.ZodString>;
2032
+ }, "strict", z.ZodTypeAny, {
2033
+ project_id: string;
2034
+ service: string | null;
2035
+ environment: string | null;
2036
+ from: string;
2037
+ to: string;
2038
+ granularity: "hour" | "day";
2039
+ }, {
2040
+ project_id: string;
2041
+ service: string | null;
2042
+ environment: string | null;
2043
+ from: string;
2044
+ to: string;
2045
+ granularity: "hour" | "day";
2046
+ }>;
2047
+ device_types: z.ZodArray<z.ZodObject<{
2048
+ value: z.ZodString;
2049
+ sessions: z.ZodNumber;
2050
+ pageviews: z.ZodNumber;
2051
+ }, "strict", z.ZodTypeAny, {
2052
+ value: string;
2053
+ pageviews: number;
2054
+ sessions: number;
2055
+ }, {
2056
+ value: string;
2057
+ pageviews: number;
2058
+ sessions: number;
2059
+ }>, "many">;
2060
+ browsers: z.ZodArray<z.ZodObject<{
2061
+ value: z.ZodString;
2062
+ sessions: z.ZodNumber;
2063
+ pageviews: z.ZodNumber;
2064
+ }, "strict", z.ZodTypeAny, {
2065
+ value: string;
2066
+ pageviews: number;
2067
+ sessions: number;
2068
+ }, {
2069
+ value: string;
2070
+ pageviews: number;
2071
+ sessions: number;
2072
+ }>, "many">;
2073
+ os: z.ZodArray<z.ZodObject<{
2074
+ value: z.ZodString;
2075
+ sessions: z.ZodNumber;
2076
+ pageviews: z.ZodNumber;
2077
+ }, "strict", z.ZodTypeAny, {
2078
+ value: string;
2079
+ pageviews: number;
2080
+ sessions: number;
2081
+ }, {
2082
+ value: string;
2083
+ pageviews: number;
2084
+ sessions: number;
2085
+ }>, "many">;
2086
+ languages: z.ZodArray<z.ZodObject<{
2087
+ value: z.ZodString;
2088
+ sessions: z.ZodNumber;
2089
+ pageviews: z.ZodNumber;
2090
+ }, "strict", z.ZodTypeAny, {
2091
+ value: string;
2092
+ pageviews: number;
2093
+ sessions: number;
2094
+ }, {
2095
+ value: string;
2096
+ pageviews: number;
2097
+ sessions: number;
2098
+ }>, "many">;
2099
+ }, "strict", z.ZodTypeAny, {
2100
+ device_types: {
2101
+ value: string;
2102
+ pageviews: number;
2103
+ sessions: number;
2104
+ }[];
2105
+ browsers: {
2106
+ value: string;
2107
+ pageviews: number;
2108
+ sessions: number;
2109
+ }[];
2110
+ os: {
2111
+ value: string;
2112
+ pageviews: number;
2113
+ sessions: number;
2114
+ }[];
2115
+ languages: {
2116
+ value: string;
2117
+ pageviews: number;
2118
+ sessions: number;
2119
+ }[];
2120
+ window: {
2121
+ project_id: string;
2122
+ service: string | null;
2123
+ environment: string | null;
2124
+ from: string;
2125
+ to: string;
2126
+ granularity: "hour" | "day";
2127
+ };
2128
+ }, {
2129
+ device_types: {
2130
+ value: string;
2131
+ pageviews: number;
2132
+ sessions: number;
2133
+ }[];
2134
+ browsers: {
2135
+ value: string;
2136
+ pageviews: number;
2137
+ sessions: number;
2138
+ }[];
2139
+ os: {
2140
+ value: string;
2141
+ pageviews: number;
2142
+ sessions: number;
2143
+ }[];
2144
+ languages: {
2145
+ value: string;
2146
+ pageviews: number;
2147
+ sessions: number;
2148
+ }[];
2149
+ window: {
2150
+ project_id: string;
2151
+ service: string | null;
2152
+ environment: string | null;
2153
+ from: string;
2154
+ to: string;
2155
+ granularity: "hour" | "day";
2156
+ };
2157
+ }>;
2158
+ export type AnalyticsDeviceBreakdownResponse = z.infer<typeof AnalyticsDeviceBreakdownResponseSchema>;
2159
+ export declare const AnalyticsReferrerMetricsResponseSchema: z.ZodObject<{
2160
+ window: z.ZodObject<{
2161
+ project_id: z.ZodString;
2162
+ from: z.ZodString;
2163
+ to: z.ZodString;
2164
+ granularity: z.ZodEnum<["hour", "day"]>;
2165
+ service: z.ZodNullable<z.ZodString>;
2166
+ environment: z.ZodNullable<z.ZodString>;
2167
+ }, "strict", z.ZodTypeAny, {
2168
+ project_id: string;
2169
+ service: string | null;
2170
+ environment: string | null;
2171
+ from: string;
2172
+ to: string;
2173
+ granularity: "hour" | "day";
2174
+ }, {
2175
+ project_id: string;
2176
+ service: string | null;
2177
+ environment: string | null;
2178
+ from: string;
2179
+ to: string;
2180
+ granularity: "hour" | "day";
2181
+ }>;
2182
+ referrers: z.ZodArray<z.ZodObject<{
2183
+ value: z.ZodString;
2184
+ sessions: z.ZodNumber;
2185
+ pageviews: z.ZodNumber;
2186
+ }, "strict", z.ZodTypeAny, {
2187
+ value: string;
2188
+ pageviews: number;
2189
+ sessions: number;
2190
+ }, {
2191
+ value: string;
2192
+ pageviews: number;
2193
+ sessions: number;
2194
+ }>, "many">;
2195
+ utm_sources: z.ZodArray<z.ZodObject<{
2196
+ value: z.ZodString;
2197
+ sessions: z.ZodNumber;
2198
+ pageviews: z.ZodNumber;
2199
+ }, "strict", z.ZodTypeAny, {
2200
+ value: string;
2201
+ pageviews: number;
2202
+ sessions: number;
2203
+ }, {
2204
+ value: string;
2205
+ pageviews: number;
2206
+ sessions: number;
2207
+ }>, "many">;
2208
+ utm_mediums: z.ZodArray<z.ZodObject<{
2209
+ value: z.ZodString;
2210
+ sessions: z.ZodNumber;
2211
+ pageviews: z.ZodNumber;
2212
+ }, "strict", z.ZodTypeAny, {
2213
+ value: string;
2214
+ pageviews: number;
2215
+ sessions: number;
2216
+ }, {
2217
+ value: string;
2218
+ pageviews: number;
2219
+ sessions: number;
2220
+ }>, "many">;
2221
+ utm_campaigns: z.ZodArray<z.ZodObject<{
2222
+ value: z.ZodString;
2223
+ sessions: z.ZodNumber;
2224
+ pageviews: z.ZodNumber;
2225
+ }, "strict", z.ZodTypeAny, {
2226
+ value: string;
2227
+ pageviews: number;
2228
+ sessions: number;
2229
+ }, {
2230
+ value: string;
2231
+ pageviews: number;
2232
+ sessions: number;
2233
+ }>, "many">;
2234
+ }, "strict", z.ZodTypeAny, {
2235
+ referrers: {
2236
+ value: string;
2237
+ pageviews: number;
2238
+ sessions: number;
2239
+ }[];
2240
+ window: {
2241
+ project_id: string;
2242
+ service: string | null;
2243
+ environment: string | null;
2244
+ from: string;
2245
+ to: string;
2246
+ granularity: "hour" | "day";
2247
+ };
2248
+ utm_sources: {
2249
+ value: string;
2250
+ pageviews: number;
2251
+ sessions: number;
2252
+ }[];
2253
+ utm_mediums: {
2254
+ value: string;
2255
+ pageviews: number;
2256
+ sessions: number;
2257
+ }[];
2258
+ utm_campaigns: {
2259
+ value: string;
2260
+ pageviews: number;
2261
+ sessions: number;
2262
+ }[];
2263
+ }, {
2264
+ referrers: {
2265
+ value: string;
2266
+ pageviews: number;
2267
+ sessions: number;
2268
+ }[];
2269
+ window: {
2270
+ project_id: string;
2271
+ service: string | null;
2272
+ environment: string | null;
2273
+ from: string;
2274
+ to: string;
2275
+ granularity: "hour" | "day";
2276
+ };
2277
+ utm_sources: {
2278
+ value: string;
2279
+ pageviews: number;
2280
+ sessions: number;
2281
+ }[];
2282
+ utm_mediums: {
2283
+ value: string;
2284
+ pageviews: number;
2285
+ sessions: number;
2286
+ }[];
2287
+ utm_campaigns: {
2288
+ value: string;
2289
+ pageviews: number;
2290
+ sessions: number;
2291
+ }[];
2292
+ }>;
2293
+ export type AnalyticsReferrerMetricsResponse = z.infer<typeof AnalyticsReferrerMetricsResponseSchema>;
2294
+ declare const AnalyticsActionMetricSchema: z.ZodObject<{
2295
+ action_key: z.ZodString;
2296
+ kind: z.ZodEnum<["action", "conversion", "marker"]>;
2297
+ event_count: z.ZodNumber;
2298
+ unique_sessions: z.ZodNumber;
2299
+ }, "strict", z.ZodTypeAny, {
2300
+ action_key: string;
2301
+ kind: "action" | "conversion" | "marker";
2302
+ unique_sessions: number;
2303
+ event_count: number;
2304
+ }, {
2305
+ action_key: string;
2306
+ kind: "action" | "conversion" | "marker";
2307
+ unique_sessions: number;
2308
+ event_count: number;
2309
+ }>;
2310
+ export type AnalyticsActionMetric = z.infer<typeof AnalyticsActionMetricSchema>;
2311
+ export declare const AnalyticsActionMetricsResponseSchema: z.ZodObject<{
2312
+ window: z.ZodObject<{
2313
+ project_id: z.ZodString;
2314
+ from: z.ZodString;
2315
+ to: z.ZodString;
2316
+ granularity: z.ZodEnum<["hour", "day"]>;
2317
+ service: z.ZodNullable<z.ZodString>;
2318
+ environment: z.ZodNullable<z.ZodString>;
2319
+ }, "strict", z.ZodTypeAny, {
2320
+ project_id: string;
2321
+ service: string | null;
2322
+ environment: string | null;
2323
+ from: string;
2324
+ to: string;
2325
+ granularity: "hour" | "day";
2326
+ }, {
2327
+ project_id: string;
2328
+ service: string | null;
2329
+ environment: string | null;
2330
+ from: string;
2331
+ to: string;
2332
+ granularity: "hour" | "day";
2333
+ }>;
2334
+ actions: z.ZodArray<z.ZodObject<{
2335
+ action_key: z.ZodString;
2336
+ kind: z.ZodEnum<["action", "conversion", "marker"]>;
2337
+ event_count: z.ZodNumber;
2338
+ unique_sessions: z.ZodNumber;
2339
+ }, "strict", z.ZodTypeAny, {
2340
+ action_key: string;
2341
+ kind: "action" | "conversion" | "marker";
2342
+ unique_sessions: number;
2343
+ event_count: number;
2344
+ }, {
2345
+ action_key: string;
2346
+ kind: "action" | "conversion" | "marker";
2347
+ unique_sessions: number;
2348
+ event_count: number;
2349
+ }>, "many">;
2350
+ }, "strict", z.ZodTypeAny, {
2351
+ window: {
2352
+ project_id: string;
2353
+ service: string | null;
2354
+ environment: string | null;
2355
+ from: string;
2356
+ to: string;
2357
+ granularity: "hour" | "day";
2358
+ };
2359
+ actions: {
2360
+ action_key: string;
2361
+ kind: "action" | "conversion" | "marker";
2362
+ unique_sessions: number;
2363
+ event_count: number;
2364
+ }[];
2365
+ }, {
2366
+ window: {
2367
+ project_id: string;
2368
+ service: string | null;
2369
+ environment: string | null;
2370
+ from: string;
2371
+ to: string;
2372
+ granularity: "hour" | "day";
2373
+ };
2374
+ actions: {
2375
+ action_key: string;
2376
+ kind: "action" | "conversion" | "marker";
2377
+ unique_sessions: number;
2378
+ event_count: number;
2379
+ }[];
2380
+ }>;
2381
+ export type AnalyticsActionMetricsResponse = z.infer<typeof AnalyticsActionMetricsResponseSchema>;
2382
+ declare const AnalyticsFunnelListItemSchema: z.ZodObject<{
2383
+ funnel_key: z.ZodString;
2384
+ sessions_entered: z.ZodNumber;
2385
+ sessions_completed: z.ZodNumber;
2386
+ dropoffs: z.ZodNumber;
2387
+ conversion_rate: z.ZodNumber;
2388
+ }, "strict", z.ZodTypeAny, {
2389
+ funnel_key: string;
2390
+ sessions_entered: number;
2391
+ sessions_completed: number;
2392
+ dropoffs: number;
2393
+ conversion_rate: number;
2394
+ }, {
2395
+ funnel_key: string;
2396
+ sessions_entered: number;
2397
+ sessions_completed: number;
2398
+ dropoffs: number;
2399
+ conversion_rate: number;
2400
+ }>;
2401
+ export type AnalyticsFunnelListItem = z.infer<typeof AnalyticsFunnelListItemSchema>;
2402
+ export declare const AnalyticsFunnelsResponseSchema: z.ZodObject<{
2403
+ window: z.ZodObject<{
2404
+ project_id: z.ZodString;
2405
+ from: z.ZodString;
2406
+ to: z.ZodString;
2407
+ granularity: z.ZodEnum<["hour", "day"]>;
2408
+ service: z.ZodNullable<z.ZodString>;
2409
+ environment: z.ZodNullable<z.ZodString>;
2410
+ }, "strict", z.ZodTypeAny, {
2411
+ project_id: string;
2412
+ service: string | null;
2413
+ environment: string | null;
2414
+ from: string;
2415
+ to: string;
2416
+ granularity: "hour" | "day";
2417
+ }, {
2418
+ project_id: string;
2419
+ service: string | null;
2420
+ environment: string | null;
2421
+ from: string;
2422
+ to: string;
2423
+ granularity: "hour" | "day";
2424
+ }>;
2425
+ funnels: z.ZodArray<z.ZodObject<{
2426
+ funnel_key: z.ZodString;
2427
+ sessions_entered: z.ZodNumber;
2428
+ sessions_completed: z.ZodNumber;
2429
+ dropoffs: z.ZodNumber;
2430
+ conversion_rate: z.ZodNumber;
2431
+ }, "strict", z.ZodTypeAny, {
2432
+ funnel_key: string;
2433
+ sessions_entered: number;
2434
+ sessions_completed: number;
2435
+ dropoffs: number;
2436
+ conversion_rate: number;
2437
+ }, {
2438
+ funnel_key: string;
2439
+ sessions_entered: number;
2440
+ sessions_completed: number;
2441
+ dropoffs: number;
2442
+ conversion_rate: number;
2443
+ }>, "many">;
2444
+ }, "strict", z.ZodTypeAny, {
2445
+ window: {
2446
+ project_id: string;
2447
+ service: string | null;
2448
+ environment: string | null;
2449
+ from: string;
2450
+ to: string;
2451
+ granularity: "hour" | "day";
2452
+ };
2453
+ funnels: {
2454
+ funnel_key: string;
2455
+ sessions_entered: number;
2456
+ sessions_completed: number;
2457
+ dropoffs: number;
2458
+ conversion_rate: number;
2459
+ }[];
2460
+ }, {
2461
+ window: {
2462
+ project_id: string;
2463
+ service: string | null;
2464
+ environment: string | null;
2465
+ from: string;
2466
+ to: string;
2467
+ granularity: "hour" | "day";
2468
+ };
2469
+ funnels: {
2470
+ funnel_key: string;
2471
+ sessions_entered: number;
2472
+ sessions_completed: number;
2473
+ dropoffs: number;
2474
+ conversion_rate: number;
2475
+ }[];
2476
+ }>;
2477
+ export type AnalyticsFunnelsResponse = z.infer<typeof AnalyticsFunnelsResponseSchema>;
2478
+ declare const AnalyticsFunnelStepMetricSchema: z.ZodObject<{
2479
+ step_key: z.ZodString;
2480
+ step_order: z.ZodNumber;
2481
+ sessions_entered: z.ZodNumber;
2482
+ sessions_completed: z.ZodNumber;
2483
+ dropoffs: z.ZodNumber;
2484
+ conversion_rate: z.ZodNumber;
2485
+ }, "strict", z.ZodTypeAny, {
2486
+ step_key: string;
2487
+ sessions_entered: number;
2488
+ sessions_completed: number;
2489
+ dropoffs: number;
2490
+ conversion_rate: number;
2491
+ step_order: number;
2492
+ }, {
2493
+ step_key: string;
2494
+ sessions_entered: number;
2495
+ sessions_completed: number;
2496
+ dropoffs: number;
2497
+ conversion_rate: number;
2498
+ step_order: number;
2499
+ }>;
2500
+ export type AnalyticsFunnelStepMetric = z.infer<typeof AnalyticsFunnelStepMetricSchema>;
2501
+ declare const AnalyticsFunnelSummarySchema: z.ZodObject<{
2502
+ project_id: z.ZodString;
2503
+ funnel_key: z.ZodString;
2504
+ from: z.ZodString;
2505
+ to: z.ZodString;
2506
+ granularity: z.ZodEnum<["hour", "day"]>;
2507
+ service: z.ZodNullable<z.ZodString>;
2508
+ environment: z.ZodNullable<z.ZodString>;
2509
+ sessions_entered: z.ZodNumber;
2510
+ sessions_completed: z.ZodNumber;
2511
+ dropoffs: z.ZodNumber;
2512
+ conversion_rate: z.ZodNumber;
2513
+ }, "strict", z.ZodTypeAny, {
2514
+ funnel_key: string;
2515
+ project_id: string;
2516
+ service: string | null;
2517
+ environment: string | null;
2518
+ from: string;
2519
+ to: string;
2520
+ granularity: "hour" | "day";
2521
+ sessions_entered: number;
2522
+ sessions_completed: number;
2523
+ dropoffs: number;
2524
+ conversion_rate: number;
2525
+ }, {
2526
+ funnel_key: string;
2527
+ project_id: string;
2528
+ service: string | null;
2529
+ environment: string | null;
2530
+ from: string;
2531
+ to: string;
2532
+ granularity: "hour" | "day";
2533
+ sessions_entered: number;
2534
+ sessions_completed: number;
2535
+ dropoffs: number;
2536
+ conversion_rate: number;
2537
+ }>;
2538
+ export type AnalyticsFunnelSummary = z.infer<typeof AnalyticsFunnelSummarySchema>;
2539
+ export declare const AnalyticsFunnelAnalysisResponseSchema: z.ZodObject<{
2540
+ funnel: z.ZodObject<{
2541
+ project_id: z.ZodString;
2542
+ funnel_key: z.ZodString;
2543
+ from: z.ZodString;
2544
+ to: z.ZodString;
2545
+ granularity: z.ZodEnum<["hour", "day"]>;
2546
+ service: z.ZodNullable<z.ZodString>;
2547
+ environment: z.ZodNullable<z.ZodString>;
2548
+ sessions_entered: z.ZodNumber;
2549
+ sessions_completed: z.ZodNumber;
2550
+ dropoffs: z.ZodNumber;
2551
+ conversion_rate: z.ZodNumber;
2552
+ }, "strict", z.ZodTypeAny, {
2553
+ funnel_key: string;
2554
+ project_id: string;
2555
+ service: string | null;
2556
+ environment: string | null;
2557
+ from: string;
2558
+ to: string;
2559
+ granularity: "hour" | "day";
2560
+ sessions_entered: number;
2561
+ sessions_completed: number;
2562
+ dropoffs: number;
2563
+ conversion_rate: number;
2564
+ }, {
2565
+ funnel_key: string;
2566
+ project_id: string;
2567
+ service: string | null;
2568
+ environment: string | null;
2569
+ from: string;
2570
+ to: string;
2571
+ granularity: "hour" | "day";
2572
+ sessions_entered: number;
2573
+ sessions_completed: number;
2574
+ dropoffs: number;
2575
+ conversion_rate: number;
2576
+ }>;
2577
+ steps: z.ZodArray<z.ZodObject<{
2578
+ step_key: z.ZodString;
2579
+ step_order: z.ZodNumber;
2580
+ sessions_entered: z.ZodNumber;
2581
+ sessions_completed: z.ZodNumber;
2582
+ dropoffs: z.ZodNumber;
2583
+ conversion_rate: z.ZodNumber;
2584
+ }, "strict", z.ZodTypeAny, {
2585
+ step_key: string;
2586
+ sessions_entered: number;
2587
+ sessions_completed: number;
2588
+ dropoffs: number;
2589
+ conversion_rate: number;
2590
+ step_order: number;
2591
+ }, {
2592
+ step_key: string;
2593
+ sessions_entered: number;
2594
+ sessions_completed: number;
2595
+ dropoffs: number;
2596
+ conversion_rate: number;
2597
+ step_order: number;
2598
+ }>, "many">;
2599
+ }, "strict", z.ZodTypeAny, {
2600
+ funnel: {
2601
+ funnel_key: string;
2602
+ project_id: string;
2603
+ service: string | null;
2604
+ environment: string | null;
2605
+ from: string;
2606
+ to: string;
2607
+ granularity: "hour" | "day";
2608
+ sessions_entered: number;
2609
+ sessions_completed: number;
2610
+ dropoffs: number;
2611
+ conversion_rate: number;
2612
+ };
2613
+ steps: {
2614
+ step_key: string;
2615
+ sessions_entered: number;
2616
+ sessions_completed: number;
2617
+ dropoffs: number;
2618
+ conversion_rate: number;
2619
+ step_order: number;
2620
+ }[];
2621
+ }, {
2622
+ funnel: {
2623
+ funnel_key: string;
2624
+ project_id: string;
2625
+ service: string | null;
2626
+ environment: string | null;
2627
+ from: string;
2628
+ to: string;
2629
+ granularity: "hour" | "day";
2630
+ sessions_entered: number;
2631
+ sessions_completed: number;
2632
+ dropoffs: number;
2633
+ conversion_rate: number;
2634
+ };
2635
+ steps: {
2636
+ step_key: string;
2637
+ sessions_entered: number;
2638
+ sessions_completed: number;
2639
+ dropoffs: number;
2640
+ conversion_rate: number;
2641
+ step_order: number;
2642
+ }[];
2643
+ }>;
2644
+ export type AnalyticsFunnelAnalysisResponse = z.infer<typeof AnalyticsFunnelAnalysisResponseSchema>;
2645
+ export {};
2646
+ //# sourceMappingURL=analytics.d.ts.map