@debugbundle/shared-types 2.6.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/README.md +17 -0
  2. package/dist/alert-notification-policy.d.ts +22 -40
  3. package/dist/alert-notification-policy.d.ts.map +1 -1
  4. package/dist/alert-notification-policy.js +1 -1
  5. package/dist/analytics-flows.d.ts +53 -588
  6. package/dist/analytics-flows.d.ts.map +1 -1
  7. package/dist/analytics-flows.js +4 -6
  8. package/dist/analytics-flows.js.map +1 -1
  9. package/dist/analytics-journey-samples.d.ts +70 -857
  10. package/dist/analytics-journey-samples.d.ts.map +1 -1
  11. package/dist/analytics-journey-samples.js +4 -4
  12. package/dist/analytics-product.d.ts +222 -853
  13. package/dist/analytics-product.d.ts.map +1 -1
  14. package/dist/analytics-product.js +9 -9
  15. package/dist/analytics-query.d.ts +13 -48
  16. package/dist/analytics-query.d.ts.map +1 -1
  17. package/dist/analytics-query.js +1 -1
  18. package/dist/analytics-saved-funnels.d.ts +21 -258
  19. package/dist/analytics-saved-funnels.d.ts.map +1 -1
  20. package/dist/analytics-saved-funnels.js +1 -1
  21. package/dist/analytics.d.ts +342 -2181
  22. package/dist/analytics.d.ts.map +1 -1
  23. package/dist/analytics.js +9 -9
  24. package/dist/browser-resource-context.d.ts +35 -129
  25. package/dist/browser-resource-context.d.ts.map +1 -1
  26. package/dist/browser-resource-routes.d.ts +6 -27
  27. package/dist/browser-resource-routes.d.ts.map +1 -1
  28. package/dist/bundle-evidence.d.ts +101 -0
  29. package/dist/bundle-evidence.d.ts.map +1 -0
  30. package/dist/bundle-evidence.js +69 -0
  31. package/dist/bundle-evidence.js.map +1 -0
  32. package/dist/capture-policy.d.ts +311 -319
  33. package/dist/capture-policy.d.ts.map +1 -1
  34. package/dist/capture-policy.js +70 -29
  35. package/dist/capture-policy.js.map +1 -1
  36. package/dist/capture-rule-evaluation.d.ts +53 -154
  37. package/dist/capture-rule-evaluation.d.ts.map +1 -1
  38. package/dist/capture-rule-evaluation.js +1 -1
  39. package/dist/capture-rule-schemas.d.ts +788 -3226
  40. package/dist/capture-rule-schemas.d.ts.map +1 -1
  41. package/dist/capture-rule-schemas.js +37 -34
  42. package/dist/capture-rule-schemas.js.map +1 -1
  43. package/dist/capture-rule-suggestions.d.ts +195 -1189
  44. package/dist/capture-rule-suggestions.d.ts.map +1 -1
  45. package/dist/diagnostic-capture-budget.d.ts +22 -0
  46. package/dist/diagnostic-capture-budget.d.ts.map +1 -0
  47. package/dist/diagnostic-capture-budget.js +195 -0
  48. package/dist/diagnostic-capture-budget.js.map +1 -0
  49. package/dist/diagnostic-context.d.ts +163 -0
  50. package/dist/diagnostic-context.d.ts.map +1 -0
  51. package/dist/diagnostic-context.js +117 -0
  52. package/dist/diagnostic-context.js.map +1 -0
  53. package/dist/event-envelope.d.ts +524 -4326
  54. package/dist/event-envelope.d.ts.map +1 -1
  55. package/dist/event-envelope.js +63 -8
  56. package/dist/event-envelope.js.map +1 -1
  57. package/dist/evidence-bounds.d.ts +9 -0
  58. package/dist/evidence-bounds.d.ts.map +1 -0
  59. package/dist/evidence-bounds.js +51 -0
  60. package/dist/evidence-bounds.js.map +1 -0
  61. package/dist/evidence-capabilities.d.ts +15 -0
  62. package/dist/evidence-capabilities.d.ts.map +1 -0
  63. package/dist/evidence-capabilities.js +29 -0
  64. package/dist/evidence-capabilities.js.map +1 -0
  65. package/dist/evidence-emission.d.ts +18 -0
  66. package/dist/evidence-emission.d.ts.map +1 -0
  67. package/dist/evidence-emission.js +83 -0
  68. package/dist/evidence-emission.js.map +1 -0
  69. package/dist/evidence-interpretation.d.ts +68 -0
  70. package/dist/evidence-interpretation.d.ts.map +1 -0
  71. package/dist/evidence-interpretation.js +177 -0
  72. package/dist/evidence-interpretation.js.map +1 -0
  73. package/dist/exception-evidence.d.ts +96 -0
  74. package/dist/exception-evidence.d.ts.map +1 -0
  75. package/dist/exception-evidence.js +145 -0
  76. package/dist/exception-evidence.js.map +1 -0
  77. package/dist/first-purchase-eligibility.d.ts +9 -0
  78. package/dist/first-purchase-eligibility.d.ts.map +1 -0
  79. package/dist/first-purchase-eligibility.js +16 -0
  80. package/dist/first-purchase-eligibility.js.map +1 -0
  81. package/dist/improvement-settings.d.ts +29 -48
  82. package/dist/improvement-settings.d.ts.map +1 -1
  83. package/dist/index.d.ts +323 -1834
  84. package/dist/index.d.ts.map +1 -1
  85. package/dist/index.js +22 -3
  86. package/dist/index.js.map +1 -1
  87. package/dist/ingestion-wire.d.ts +9 -0
  88. package/dist/ingestion-wire.d.ts.map +1 -0
  89. package/dist/ingestion-wire.js +56 -0
  90. package/dist/ingestion-wire.js.map +1 -0
  91. package/dist/json-schema.d.ts +4 -0
  92. package/dist/json-schema.d.ts.map +1 -0
  93. package/dist/json-schema.js +49 -0
  94. package/dist/json-schema.js.map +1 -0
  95. package/dist/notification-preferences.d.ts +398 -1152
  96. package/dist/notification-preferences.d.ts.map +1 -1
  97. package/dist/notification-preferences.js +3 -3
  98. package/dist/notification-preferences.js.map +1 -1
  99. package/dist/project-color-tags.d.ts +20 -1
  100. package/dist/project-color-tags.d.ts.map +1 -1
  101. package/dist/public-status.d.ts +122 -568
  102. package/dist/public-status.d.ts.map +1 -1
  103. package/dist/public-status.js +8 -8
  104. package/dist/stack-frames.d.ts +11 -0
  105. package/dist/stack-frames.d.ts.map +1 -0
  106. package/dist/stack-frames.js +107 -0
  107. package/dist/stack-frames.js.map +1 -0
  108. package/package.json +2 -2
@@ -4,162 +4,158 @@ export declare const ANALYTICS_BUNDLE_SCHEMA_VERSION = "analytics_bundle.v1";
4
4
  export declare const ANALYTICS_BUNDLE_GENERATION_ID_HEADER = "X-DebugBundle-Generation-Id";
5
5
  export declare const MAX_ANALYTICS_CUSTOM_DIMENSIONS_PER_EVENT = 8;
6
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"]>;
7
+ export declare const AnalyticsEventKindSchema: z.ZodEnum<{
8
+ session_start: "session_start";
9
+ page_view: "page_view";
10
+ route_change: "route_change";
11
+ action: "action";
12
+ funnel_step: "funnel_step";
13
+ conversion: "conversion";
14
+ journey_marker: "journey_marker";
15
+ session_summary: "session_summary";
16
+ }>;
8
17
  export type AnalyticsEventKind = z.infer<typeof AnalyticsEventKindSchema>;
9
18
  export declare const AnalyticsPrivacyModeValues: readonly ["strict", "standard", "custom"];
10
- export declare const AnalyticsPrivacyModeSchema: z.ZodEnum<["strict", "standard", "custom"]>;
19
+ export declare const AnalyticsPrivacyModeSchema: z.ZodEnum<{
20
+ custom: "custom";
21
+ strict: "strict";
22
+ standard: "standard";
23
+ }>;
11
24
  export type AnalyticsPrivacyMode = z.infer<typeof AnalyticsPrivacyModeSchema>;
12
25
  export declare const AnalyticsAuthStateValues: readonly ["anonymous", "authenticated", "unknown"];
13
- export declare const AnalyticsAuthStateSchema: z.ZodEnum<["anonymous", "authenticated", "unknown"]>;
26
+ export declare const AnalyticsAuthStateSchema: z.ZodEnum<{
27
+ unknown: "unknown";
28
+ anonymous: "anonymous";
29
+ authenticated: "authenticated";
30
+ }>;
14
31
  export type AnalyticsAuthState = z.infer<typeof AnalyticsAuthStateSchema>;
15
32
  export declare const AnalyticsDeviceTypeValues: readonly ["desktop", "mobile", "tablet", "unknown"];
16
- export declare const AnalyticsDeviceTypeSchema: z.ZodEnum<["desktop", "mobile", "tablet", "unknown"]>;
33
+ export declare const AnalyticsDeviceTypeSchema: z.ZodEnum<{
34
+ unknown: "unknown";
35
+ desktop: "desktop";
36
+ mobile: "mobile";
37
+ tablet: "tablet";
38
+ }>;
17
39
  export type AnalyticsDeviceType = z.infer<typeof AnalyticsDeviceTypeSchema>;
18
40
  export declare const AnalyticsViewportBucketValues: readonly ["small", "medium", "large", "unknown"];
19
- export declare const AnalyticsViewportBucketSchema: z.ZodEnum<["small", "medium", "large", "unknown"]>;
41
+ export declare const AnalyticsViewportBucketSchema: z.ZodEnum<{
42
+ unknown: "unknown";
43
+ small: "small";
44
+ medium: "medium";
45
+ large: "large";
46
+ }>;
20
47
  export type AnalyticsViewportBucket = z.infer<typeof AnalyticsViewportBucketSchema>;
21
48
  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"]>;
49
+ export declare const AnalyticsBundleAnalysisKindSchema: z.ZodEnum<{
50
+ usage_summary: "usage_summary";
51
+ route_health: "route_health";
52
+ funnel_dropoff: "funnel_dropoff";
53
+ journey_friction: "journey_friction";
54
+ feature_usage: "feature_usage";
55
+ incident_impact: "incident_impact";
56
+ deploy_comparison: "deploy_comparison";
57
+ conversion_path: "conversion_path";
58
+ }>;
23
59
  export type AnalyticsBundleAnalysisKind = z.infer<typeof AnalyticsBundleAnalysisKindSchema>;
24
60
  export declare const AnalyticsBundleConfidenceValues: readonly ["low", "medium", "high"];
25
- export declare const AnalyticsBundleConfidenceSchema: z.ZodEnum<["low", "medium", "high"]>;
61
+ export declare const AnalyticsBundleConfidenceSchema: z.ZodEnum<{
62
+ medium: "medium";
63
+ low: "low";
64
+ high: "high";
65
+ }>;
26
66
  export type AnalyticsBundleConfidence = z.infer<typeof AnalyticsBundleConfidenceSchema>;
27
67
  export declare const AnalyticsBundleSeverityValues: readonly ["low", "medium", "high"];
28
- export declare const AnalyticsBundleSeveritySchema: z.ZodEnum<["low", "medium", "high"]>;
68
+ export declare const AnalyticsBundleSeveritySchema: z.ZodEnum<{
69
+ medium: "medium";
70
+ low: "low";
71
+ high: "high";
72
+ }>;
29
73
  export type AnalyticsBundleSeverity = z.infer<typeof AnalyticsBundleSeveritySchema>;
30
74
  export declare const AnalyticsBundleGranularityValues: readonly ["hour", "day", "week", "month"];
31
- export declare const AnalyticsBundleGranularitySchema: z.ZodEnum<["hour", "day", "week", "month"]>;
75
+ export declare const AnalyticsBundleGranularitySchema: z.ZodEnum<{
76
+ hour: "hour";
77
+ day: "day";
78
+ week: "week";
79
+ month: "month";
80
+ }>;
32
81
  export type AnalyticsBundleGranularity = z.infer<typeof AnalyticsBundleGranularitySchema>;
33
82
  export declare const AnalyticsMetricsGranularityValues: readonly ["hour", "day"];
34
- export declare const AnalyticsMetricsGranularitySchema: z.ZodEnum<["hour", "day"]>;
83
+ export declare const AnalyticsMetricsGranularitySchema: z.ZodEnum<{
84
+ hour: "hour";
85
+ day: "day";
86
+ }>;
35
87
  export type AnalyticsMetricsGranularity = z.infer<typeof AnalyticsMetricsGranularitySchema>;
36
88
  export declare const AnalyticsSafeHashSchema: z.ZodString;
37
- export declare const AnalyticsSignalSchema: z.ZodEffects<z.ZodObject<{
89
+ export declare const AnalyticsSignalSchema: z.ZodPipe<z.ZodObject<{
38
90
  action_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
91
  funnel_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
92
  step_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
93
  conversion_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
94
  marker_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
- }, "strict", z.ZodTypeAny, {
44
- step_key?: string | null | undefined;
45
- action_key?: string | null | undefined;
46
- funnel_key?: string | null | undefined;
47
- conversion_key?: string | null | undefined;
48
- marker_key?: string | null | undefined;
49
- }, {
50
- step_key?: string | null | undefined;
51
- action_key?: string | null | undefined;
52
- funnel_key?: string | null | undefined;
53
- conversion_key?: string | null | undefined;
54
- marker_key?: string | null | undefined;
55
- }>, {
95
+ }, z.core.$strict>, z.ZodTransform<{
56
96
  action_key: string | null;
57
97
  funnel_key: string | null;
58
98
  step_key: string | null;
59
99
  conversion_key: string | null;
60
100
  marker_key: string | null;
61
101
  }, {
62
- step_key?: string | null | undefined;
63
102
  action_key?: string | null | undefined;
64
103
  funnel_key?: string | null | undefined;
104
+ step_key?: string | null | undefined;
65
105
  conversion_key?: string | null | undefined;
66
106
  marker_key?: string | null | undefined;
67
- }>;
107
+ }>>;
68
108
  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>>;
109
+ export declare const AnalyticsRouteSchema: z.ZodObject<{
110
+ path: z.ZodNullable<z.ZodString>;
111
+ normalized_path: z.ZodNullable<z.ZodString>;
72
112
  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
- }>;
113
+ }, z.core.$strict>;
90
114
  export type AnalyticsRoute = z.infer<typeof AnalyticsRouteSchema>;
91
115
  export declare const AnalyticsDimensionsSchema: z.ZodObject<{
92
- auth_state: z.ZodEnum<["anonymous", "authenticated", "unknown"]>;
93
- device_type: z.ZodEnum<["desktop", "mobile", "tablet", "unknown"]>;
116
+ auth_state: z.ZodEnum<{
117
+ unknown: "unknown";
118
+ anonymous: "anonymous";
119
+ authenticated: "authenticated";
120
+ }>;
121
+ device_type: z.ZodEnum<{
122
+ unknown: "unknown";
123
+ desktop: "desktop";
124
+ mobile: "mobile";
125
+ tablet: "tablet";
126
+ }>;
94
127
  browser_family: z.ZodNullable<z.ZodString>;
95
128
  browser_major: z.ZodNullable<z.ZodNumber>;
96
129
  os_family: z.ZodNullable<z.ZodString>;
97
130
  os_major: z.ZodNullable<z.ZodNumber>;
98
131
  language: z.ZodNullable<z.ZodString>;
99
132
  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>>;
133
+ viewport_bucket: z.ZodEnum<{
134
+ unknown: "unknown";
135
+ small: "small";
136
+ medium: "medium";
137
+ large: "large";
138
+ }>;
139
+ referrer_domain: z.ZodNullable<z.ZodString>;
102
140
  utm_source: z.ZodNullable<z.ZodString>;
103
141
  utm_medium: z.ZodNullable<z.ZodString>;
104
142
  utm_campaign: z.ZodNullable<z.ZodString>;
105
143
  country_code: z.ZodNullable<z.ZodString>;
106
144
  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
- }>;
145
+ }, z.core.$strict>;
140
146
  export type AnalyticsDimensions = z.infer<typeof AnalyticsDimensionsSchema>;
141
- export declare const AnalyticsCustomDimensionKeySchema: z.ZodEffects<z.ZodString, string, string>;
147
+ export declare const AnalyticsCustomDimensionKeySchema: z.ZodString;
142
148
  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]>;
149
+ export declare const AnalyticsCustomDimensionValueSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
144
150
  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>>;
151
+ export declare const AnalyticsCustomDimensionsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
146
152
  export type AnalyticsCustomDimensions = z.infer<typeof AnalyticsCustomDimensionsSchema>;
147
153
  export declare const AnalyticsServiceSchema: z.ZodObject<{
148
154
  name: z.ZodString;
149
155
  runtime: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"browser">>>;
150
156
  framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
151
157
  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
- }>;
158
+ }, z.core.$strict>;
163
159
  export type AnalyticsService = z.infer<typeof AnalyticsServiceSchema>;
164
160
  export declare const AnalyticsCorrelationSchema: z.ZodObject<{
165
161
  session_id: z.ZodString;
@@ -167,368 +163,107 @@ export declare const AnalyticsCorrelationSchema: z.ZodObject<{
167
163
  user_id_hash: z.ZodNullable<z.ZodString>;
168
164
  trace_id: z.ZodNullable<z.ZodString>;
169
165
  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
- }>;
166
+ }, z.core.$strict>;
183
167
  export type AnalyticsCorrelation = z.infer<typeof AnalyticsCorrelationSchema>;
184
168
  export declare const AnalyticsEventPrivacySchema: z.ZodObject<{
185
- mode: z.ZodEnum<["strict", "standard", "custom"]>;
169
+ mode: z.ZodEnum<{
170
+ custom: "custom";
171
+ strict: "strict";
172
+ standard: "standard";
173
+ }>;
186
174
  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
- }>;
175
+ }, z.core.$strict>;
194
176
  export type AnalyticsEventPrivacy = z.infer<typeof AnalyticsEventPrivacySchema>;
195
177
  export declare const AnalyticsSessionMetricsSchema: z.ZodObject<{
196
178
  duration_ms: z.ZodNumber;
197
179
  pageviews: z.ZodNumber;
198
- }, "strict", z.ZodTypeAny, {
199
- duration_ms: number;
200
- pageviews: number;
201
- }, {
202
- duration_ms: number;
203
- pageviews: number;
204
- }>;
180
+ }, z.core.$strict>;
205
181
  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"]>;
182
+ export declare const AnalyticsPayloadSchema: z.ZodObject<{
183
+ kind: z.ZodEnum<{
184
+ session_start: "session_start";
185
+ page_view: "page_view";
186
+ route_change: "route_change";
187
+ action: "action";
188
+ funnel_step: "funnel_step";
189
+ conversion: "conversion";
190
+ journey_marker: "journey_marker";
191
+ session_summary: "session_summary";
192
+ }>;
208
193
  privacy: z.ZodDefault<z.ZodOptional<z.ZodObject<{
209
- mode: z.ZodEnum<["strict", "standard", "custom"]>;
194
+ mode: z.ZodEnum<{
195
+ custom: "custom";
196
+ strict: "strict";
197
+ standard: "standard";
198
+ }>;
210
199
  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
- }>>>;
200
+ }, z.core.$strict>>>;
218
201
  session: z.ZodOptional<z.ZodObject<{
219
202
  duration_ms: z.ZodNumber;
220
203
  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<{
204
+ }, z.core.$strict>>;
205
+ signal: z.ZodOptional<z.ZodPipe<z.ZodObject<{
229
206
  action_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
230
207
  funnel_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
231
208
  step_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
232
209
  conversion_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
233
210
  marker_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
234
- }, "strict", z.ZodTypeAny, {
235
- step_key?: string | null | undefined;
236
- action_key?: string | null | undefined;
237
- funnel_key?: string | null | undefined;
238
- conversion_key?: string | null | undefined;
239
- marker_key?: string | null | undefined;
240
- }, {
241
- step_key?: string | null | undefined;
242
- action_key?: string | null | undefined;
243
- funnel_key?: string | null | undefined;
244
- conversion_key?: string | null | undefined;
245
- marker_key?: string | null | undefined;
246
- }>, {
211
+ }, z.core.$strict>, z.ZodTransform<{
247
212
  action_key: string | null;
248
213
  funnel_key: string | null;
249
214
  step_key: string | null;
250
215
  conversion_key: string | null;
251
216
  marker_key: string | null;
252
217
  }, {
253
- step_key?: string | null | undefined;
254
218
  action_key?: string | null | undefined;
255
219
  funnel_key?: string | null | undefined;
220
+ step_key?: string | null | undefined;
256
221
  conversion_key?: string | null | undefined;
257
222
  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
223
  }>>>;
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>>;
224
+ route: z.ZodOptional<z.ZodNullable<z.ZodObject<{
225
+ path: z.ZodNullable<z.ZodString>;
226
+ normalized_path: z.ZodNullable<z.ZodString>;
283
227
  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
- }>>>;
228
+ }, z.core.$strict>>>;
229
+ previous_route: z.ZodOptional<z.ZodNullable<z.ZodObject<{
230
+ path: z.ZodNullable<z.ZodString>;
231
+ normalized_path: z.ZodNullable<z.ZodString>;
232
+ title: z.ZodNullable<z.ZodString>;
233
+ }, z.core.$strict>>>;
301
234
  dimensions: z.ZodObject<{
302
- auth_state: z.ZodEnum<["anonymous", "authenticated", "unknown"]>;
303
- device_type: z.ZodEnum<["desktop", "mobile", "tablet", "unknown"]>;
235
+ auth_state: z.ZodEnum<{
236
+ unknown: "unknown";
237
+ anonymous: "anonymous";
238
+ authenticated: "authenticated";
239
+ }>;
240
+ device_type: z.ZodEnum<{
241
+ unknown: "unknown";
242
+ desktop: "desktop";
243
+ mobile: "mobile";
244
+ tablet: "tablet";
245
+ }>;
304
246
  browser_family: z.ZodNullable<z.ZodString>;
305
247
  browser_major: z.ZodNullable<z.ZodNumber>;
306
248
  os_family: z.ZodNullable<z.ZodString>;
307
249
  os_major: z.ZodNullable<z.ZodNumber>;
308
250
  language: z.ZodNullable<z.ZodString>;
309
251
  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>>;
252
+ viewport_bucket: z.ZodEnum<{
253
+ unknown: "unknown";
254
+ small: "small";
255
+ medium: "medium";
256
+ large: "large";
257
+ }>;
258
+ referrer_domain: z.ZodNullable<z.ZodString>;
312
259
  utm_source: z.ZodNullable<z.ZodString>;
313
260
  utm_medium: z.ZodNullable<z.ZodString>;
314
261
  utm_campaign: z.ZodNullable<z.ZodString>;
315
262
  country_code: z.ZodNullable<z.ZodString>;
316
263
  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
- step_key?: string | null | undefined;
427
- action_key?: string | null | undefined;
428
- funnel_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
- step_key?: string | null | undefined;
517
- action_key?: string | null | undefined;
518
- funnel_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
- }>;
264
+ }, z.core.$strict>;
265
+ custom_dimensions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>>;
266
+ }, z.core.$strict>;
532
267
  export type AnalyticsPayload = z.infer<typeof AnalyticsPayloadSchema>;
533
268
  export declare const AnalyticsEventEnvelopeSchema: z.ZodObject<{
534
269
  schema_version: z.ZodLiteral<"2026-07-analytics-01">;
@@ -544,519 +279,115 @@ export declare const AnalyticsEventEnvelopeSchema: z.ZodObject<{
544
279
  runtime: z.ZodOptional<z.ZodNullable<z.ZodLiteral<"browser">>>;
545
280
  framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
546
281
  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
- }>;
282
+ }, z.core.$strict>;
558
283
  correlation: z.ZodObject<{
559
284
  session_id: z.ZodString;
560
285
  visitor_id_hash: z.ZodNullable<z.ZodString>;
561
286
  user_id_hash: z.ZodNullable<z.ZodString>;
562
287
  trace_id: z.ZodNullable<z.ZodString>;
563
288
  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"]>;
289
+ }, z.core.$strict>;
290
+ payload: z.ZodObject<{
291
+ kind: z.ZodEnum<{
292
+ session_start: "session_start";
293
+ page_view: "page_view";
294
+ route_change: "route_change";
295
+ action: "action";
296
+ funnel_step: "funnel_step";
297
+ conversion: "conversion";
298
+ journey_marker: "journey_marker";
299
+ session_summary: "session_summary";
300
+ }>;
579
301
  privacy: z.ZodDefault<z.ZodOptional<z.ZodObject<{
580
- mode: z.ZodEnum<["strict", "standard", "custom"]>;
302
+ mode: z.ZodEnum<{
303
+ custom: "custom";
304
+ strict: "strict";
305
+ standard: "standard";
306
+ }>;
581
307
  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
- }>>>;
308
+ }, z.core.$strict>>>;
589
309
  session: z.ZodOptional<z.ZodObject<{
590
310
  duration_ms: z.ZodNumber;
591
311
  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<{
312
+ }, z.core.$strict>>;
313
+ signal: z.ZodOptional<z.ZodPipe<z.ZodObject<{
600
314
  action_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
601
315
  funnel_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
602
316
  step_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
603
317
  conversion_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
604
318
  marker_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
605
- }, "strict", z.ZodTypeAny, {
606
- step_key?: string | null | undefined;
607
- action_key?: string | null | undefined;
608
- funnel_key?: string | null | undefined;
609
- conversion_key?: string | null | undefined;
610
- marker_key?: string | null | undefined;
611
- }, {
612
- step_key?: string | null | undefined;
613
- action_key?: string | null | undefined;
614
- funnel_key?: string | null | undefined;
615
- conversion_key?: string | null | undefined;
616
- marker_key?: string | null | undefined;
617
- }>, {
319
+ }, z.core.$strict>, z.ZodTransform<{
618
320
  action_key: string | null;
619
321
  funnel_key: string | null;
620
322
  step_key: string | null;
621
323
  conversion_key: string | null;
622
324
  marker_key: string | null;
623
325
  }, {
624
- step_key?: string | null | undefined;
625
326
  action_key?: string | null | undefined;
626
327
  funnel_key?: string | null | undefined;
328
+ step_key?: string | null | undefined;
627
329
  conversion_key?: string | null | undefined;
628
330
  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
331
  }>>>;
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>>;
332
+ route: z.ZodOptional<z.ZodNullable<z.ZodObject<{
333
+ path: z.ZodNullable<z.ZodString>;
334
+ normalized_path: z.ZodNullable<z.ZodString>;
654
335
  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
- }>>>;
336
+ }, z.core.$strict>>>;
337
+ previous_route: z.ZodOptional<z.ZodNullable<z.ZodObject<{
338
+ path: z.ZodNullable<z.ZodString>;
339
+ normalized_path: z.ZodNullable<z.ZodString>;
340
+ title: z.ZodNullable<z.ZodString>;
341
+ }, z.core.$strict>>>;
672
342
  dimensions: z.ZodObject<{
673
- auth_state: z.ZodEnum<["anonymous", "authenticated", "unknown"]>;
674
- device_type: z.ZodEnum<["desktop", "mobile", "tablet", "unknown"]>;
343
+ auth_state: z.ZodEnum<{
344
+ unknown: "unknown";
345
+ anonymous: "anonymous";
346
+ authenticated: "authenticated";
347
+ }>;
348
+ device_type: z.ZodEnum<{
349
+ unknown: "unknown";
350
+ desktop: "desktop";
351
+ mobile: "mobile";
352
+ tablet: "tablet";
353
+ }>;
675
354
  browser_family: z.ZodNullable<z.ZodString>;
676
355
  browser_major: z.ZodNullable<z.ZodNumber>;
677
356
  os_family: z.ZodNullable<z.ZodString>;
678
357
  os_major: z.ZodNullable<z.ZodNumber>;
679
358
  language: z.ZodNullable<z.ZodString>;
680
359
  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>>;
360
+ viewport_bucket: z.ZodEnum<{
361
+ unknown: "unknown";
362
+ small: "small";
363
+ medium: "medium";
364
+ large: "large";
365
+ }>;
366
+ referrer_domain: z.ZodNullable<z.ZodString>;
683
367
  utm_source: z.ZodNullable<z.ZodString>;
684
368
  utm_medium: z.ZodNullable<z.ZodString>;
685
369
  utm_campaign: z.ZodNullable<z.ZodString>;
686
370
  country_code: z.ZodNullable<z.ZodString>;
687
371
  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
- step_key?: string | null | undefined;
798
- action_key?: string | null | undefined;
799
- funnel_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
- step_key?: string | null | undefined;
888
- action_key?: string | null | undefined;
889
- funnel_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
- step_key?: string | null | undefined;
1022
- action_key?: string | null | undefined;
1023
- funnel_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
- }>;
372
+ }, z.core.$strict>;
373
+ custom_dimensions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>>;
374
+ }, z.core.$strict>;
375
+ }, z.core.$strict>;
1040
376
  export type AnalyticsEventEnvelope = z.infer<typeof AnalyticsEventEnvelopeSchema>;
1041
377
  declare const AnalyticsMetricsSegmentSchema: z.ZodObject<{
1042
378
  value: z.ZodString;
1043
379
  sessions: z.ZodNumber;
1044
380
  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
- }>;
381
+ }, z.core.$strict>;
1054
382
  export type AnalyticsMetricsSegment = z.infer<typeof AnalyticsMetricsSegmentSchema>;
1055
- declare const AnalyticsUsageSummarySchema: z.ZodEffects<z.ZodObject<{
383
+ declare const AnalyticsUsageSummarySchema: z.ZodObject<{
1056
384
  project_id: z.ZodString;
1057
385
  from: z.ZodString;
1058
386
  to: z.ZodString;
1059
- granularity: z.ZodEnum<["hour", "day"]>;
387
+ granularity: z.ZodEnum<{
388
+ hour: "hour";
389
+ day: "day";
390
+ }>;
1060
391
  service: z.ZodNullable<z.ZodString>;
1061
392
  environment: z.ZodNullable<z.ZodString>;
1062
393
  sessions: z.ZodNumber;
@@ -1066,213 +397,50 @@ declare const AnalyticsUsageSummarySchema: z.ZodEffects<z.ZodObject<{
1066
397
  returning_visitors: z.ZodNumber;
1067
398
  exits: z.ZodNumber;
1068
399
  conversions: z.ZodNumber;
1069
- }, "strict", z.ZodTypeAny, {
1070
- to: string;
1071
- project_id: string;
1072
- from: string;
1073
- service: string | null;
1074
- environment: string | null;
1075
- pageviews: number;
1076
- sessions: number;
1077
- granularity: "hour" | "day";
1078
- active_visitors: number;
1079
- new_visitors: number;
1080
- returning_visitors: number;
1081
- exits: number;
1082
- conversions: number;
1083
- }, {
1084
- to: string;
1085
- project_id: string;
1086
- from: string;
1087
- service: string | null;
1088
- environment: string | null;
1089
- pageviews: number;
1090
- sessions: number;
1091
- granularity: "hour" | "day";
1092
- active_visitors: number;
1093
- new_visitors: number;
1094
- returning_visitors: number;
1095
- exits: number;
1096
- conversions: number;
1097
- }>, {
1098
- to: string;
1099
- project_id: string;
1100
- from: string;
1101
- service: string | null;
1102
- environment: string | null;
1103
- pageviews: number;
1104
- sessions: number;
1105
- granularity: "hour" | "day";
1106
- active_visitors: number;
1107
- new_visitors: number;
1108
- returning_visitors: number;
1109
- exits: number;
1110
- conversions: number;
1111
- }, {
1112
- to: string;
1113
- project_id: string;
1114
- from: string;
1115
- service: string | null;
1116
- environment: string | null;
1117
- pageviews: number;
1118
- sessions: number;
1119
- granularity: "hour" | "day";
1120
- active_visitors: number;
1121
- new_visitors: number;
1122
- returning_visitors: number;
1123
- exits: number;
1124
- conversions: number;
1125
- }>;
400
+ }, z.core.$strict>;
1126
401
  export type AnalyticsUsageSummary = z.infer<typeof AnalyticsUsageSummarySchema>;
1127
402
  declare const AnalyticsUsageBreakdownsSchema: z.ZodObject<{
1128
403
  device_types: z.ZodArray<z.ZodObject<{
1129
404
  value: z.ZodString;
1130
405
  sessions: z.ZodNumber;
1131
406
  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">;
407
+ }, z.core.$strict>>;
1141
408
  browsers: z.ZodArray<z.ZodObject<{
1142
409
  value: z.ZodString;
1143
410
  sessions: z.ZodNumber;
1144
411
  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">;
412
+ }, z.core.$strict>>;
1154
413
  os: z.ZodArray<z.ZodObject<{
1155
414
  value: z.ZodString;
1156
415
  sessions: z.ZodNumber;
1157
416
  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">;
417
+ }, z.core.$strict>>;
1167
418
  languages: z.ZodArray<z.ZodObject<{
1168
419
  value: z.ZodString;
1169
420
  sessions: z.ZodNumber;
1170
421
  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">;
422
+ }, z.core.$strict>>;
1180
423
  referrers: z.ZodArray<z.ZodObject<{
1181
424
  value: z.ZodString;
1182
425
  sessions: z.ZodNumber;
1183
426
  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">;
427
+ }, z.core.$strict>>;
1193
428
  auth_states: z.ZodArray<z.ZodObject<{
1194
429
  value: z.ZodString;
1195
430
  sessions: z.ZodNumber;
1196
431
  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
- }>;
432
+ }, z.core.$strict>>;
433
+ }, z.core.$strict>;
1269
434
  export type AnalyticsUsageBreakdowns = z.infer<typeof AnalyticsUsageBreakdownsSchema>;
1270
435
  export declare const AnalyticsUsageSummaryResponseSchema: z.ZodObject<{
1271
- summary: z.ZodEffects<z.ZodObject<{
436
+ summary: z.ZodObject<{
1272
437
  project_id: z.ZodString;
1273
438
  from: z.ZodString;
1274
439
  to: z.ZodString;
1275
- granularity: z.ZodEnum<["hour", "day"]>;
440
+ granularity: z.ZodEnum<{
441
+ hour: "hour";
442
+ day: "day";
443
+ }>;
1276
444
  service: z.ZodNullable<z.ZodString>;
1277
445
  environment: z.ZodNullable<z.ZodString>;
1278
446
  sessions: z.ZodNumber;
@@ -1282,325 +450,52 @@ export declare const AnalyticsUsageSummaryResponseSchema: z.ZodObject<{
1282
450
  returning_visitors: z.ZodNumber;
1283
451
  exits: z.ZodNumber;
1284
452
  conversions: z.ZodNumber;
1285
- }, "strict", z.ZodTypeAny, {
1286
- to: string;
1287
- project_id: string;
1288
- from: string;
1289
- service: string | null;
1290
- environment: string | null;
1291
- pageviews: number;
1292
- sessions: number;
1293
- granularity: "hour" | "day";
1294
- active_visitors: number;
1295
- new_visitors: number;
1296
- returning_visitors: number;
1297
- exits: number;
1298
- conversions: number;
1299
- }, {
1300
- to: string;
1301
- project_id: string;
1302
- from: string;
1303
- service: string | null;
1304
- environment: string | null;
1305
- pageviews: number;
1306
- sessions: number;
1307
- granularity: "hour" | "day";
1308
- active_visitors: number;
1309
- new_visitors: number;
1310
- returning_visitors: number;
1311
- exits: number;
1312
- conversions: number;
1313
- }>, {
1314
- to: string;
1315
- project_id: string;
1316
- from: string;
1317
- service: string | null;
1318
- environment: string | null;
1319
- pageviews: number;
1320
- sessions: number;
1321
- granularity: "hour" | "day";
1322
- active_visitors: number;
1323
- new_visitors: number;
1324
- returning_visitors: number;
1325
- exits: number;
1326
- conversions: number;
1327
- }, {
1328
- to: string;
1329
- project_id: string;
1330
- from: string;
1331
- service: string | null;
1332
- environment: string | null;
1333
- pageviews: number;
1334
- sessions: number;
1335
- granularity: "hour" | "day";
1336
- active_visitors: number;
1337
- new_visitors: number;
1338
- returning_visitors: number;
1339
- exits: number;
1340
- conversions: number;
1341
- }>;
453
+ }, z.core.$strict>;
1342
454
  breakdowns: z.ZodObject<{
1343
455
  device_types: z.ZodArray<z.ZodObject<{
1344
456
  value: z.ZodString;
1345
457
  sessions: z.ZodNumber;
1346
458
  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">;
459
+ }, z.core.$strict>>;
1356
460
  browsers: z.ZodArray<z.ZodObject<{
1357
461
  value: z.ZodString;
1358
462
  sessions: z.ZodNumber;
1359
463
  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">;
464
+ }, z.core.$strict>>;
1369
465
  os: z.ZodArray<z.ZodObject<{
1370
466
  value: z.ZodString;
1371
467
  sessions: z.ZodNumber;
1372
468
  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">;
469
+ }, z.core.$strict>>;
1382
470
  languages: z.ZodArray<z.ZodObject<{
1383
471
  value: z.ZodString;
1384
472
  sessions: z.ZodNumber;
1385
473
  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">;
474
+ }, z.core.$strict>>;
1395
475
  referrers: z.ZodArray<z.ZodObject<{
1396
476
  value: z.ZodString;
1397
477
  sessions: z.ZodNumber;
1398
478
  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">;
479
+ }, z.core.$strict>>;
1408
480
  auth_states: z.ZodArray<z.ZodObject<{
1409
481
  value: z.ZodString;
1410
482
  sessions: z.ZodNumber;
1411
483
  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
- to: string;
1487
- project_id: string;
1488
- from: string;
1489
- service: string | null;
1490
- environment: string | null;
1491
- pageviews: number;
1492
- sessions: number;
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
- to: string;
1535
- project_id: string;
1536
- from: string;
1537
- service: string | null;
1538
- environment: string | null;
1539
- pageviews: number;
1540
- sessions: number;
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
- }>;
484
+ }, z.core.$strict>>;
485
+ }, z.core.$strict>;
486
+ }, z.core.$strict>;
1581
487
  export type AnalyticsUsageSummaryResponse = z.infer<typeof AnalyticsUsageSummaryResponseSchema>;
1582
488
  declare const AnalyticsMetricsWindowSchema: z.ZodObject<{
1583
489
  project_id: z.ZodString;
1584
490
  from: z.ZodString;
1585
491
  to: z.ZodString;
1586
- granularity: z.ZodEnum<["hour", "day"]>;
492
+ granularity: z.ZodEnum<{
493
+ hour: "hour";
494
+ day: "day";
495
+ }>;
1587
496
  service: z.ZodNullable<z.ZodString>;
1588
497
  environment: z.ZodNullable<z.ZodString>;
1589
- }, "strict", z.ZodTypeAny, {
1590
- to: string;
1591
- project_id: string;
1592
- from: string;
1593
- service: string | null;
1594
- environment: string | null;
1595
- granularity: "hour" | "day";
1596
- }, {
1597
- to: string;
1598
- project_id: string;
1599
- from: string;
1600
- service: string | null;
1601
- environment: string | null;
1602
- granularity: "hour" | "day";
1603
- }>;
498
+ }, z.core.$strict>;
1604
499
  export type AnalyticsMetricsWindow = z.infer<typeof AnalyticsMetricsWindowSchema>;
1605
500
  declare const AnalyticsRouteMetricSchema: z.ZodObject<{
1606
501
  route_key: z.ZodString;
@@ -1610,47 +505,20 @@ declare const AnalyticsRouteMetricSchema: z.ZodObject<{
1610
505
  exits: z.ZodNumber;
1611
506
  bounces: z.ZodNumber;
1612
507
  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
- }>;
508
+ }, z.core.$strict>;
1630
509
  export type AnalyticsRouteMetric = z.infer<typeof AnalyticsRouteMetricSchema>;
1631
510
  export declare const AnalyticsRouteMetricsResponseSchema: z.ZodObject<{
1632
511
  window: z.ZodObject<{
1633
512
  project_id: z.ZodString;
1634
513
  from: z.ZodString;
1635
514
  to: z.ZodString;
1636
- granularity: z.ZodEnum<["hour", "day"]>;
515
+ granularity: z.ZodEnum<{
516
+ hour: "hour";
517
+ day: "day";
518
+ }>;
1637
519
  service: z.ZodNullable<z.ZodString>;
1638
520
  environment: z.ZodNullable<z.ZodString>;
1639
- }, "strict", z.ZodTypeAny, {
1640
- to: string;
1641
- project_id: string;
1642
- from: string;
1643
- service: string | null;
1644
- environment: string | null;
1645
- granularity: "hour" | "day";
1646
- }, {
1647
- to: string;
1648
- project_id: string;
1649
- from: string;
1650
- service: string | null;
1651
- environment: string | null;
1652
- granularity: "hour" | "day";
1653
- }>;
521
+ }, z.core.$strict>;
1654
522
  routes: z.ZodArray<z.ZodObject<{
1655
523
  route_key: z.ZodString;
1656
524
  pageviews: z.ZodNumber;
@@ -1659,60 +527,8 @@ export declare const AnalyticsRouteMetricsResponseSchema: z.ZodObject<{
1659
527
  exits: z.ZodNumber;
1660
528
  bounces: z.ZodNumber;
1661
529
  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
- to: string;
1682
- project_id: string;
1683
- from: string;
1684
- service: string | null;
1685
- environment: string | null;
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
- to: string;
1700
- project_id: string;
1701
- from: string;
1702
- service: string | null;
1703
- environment: string | null;
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
- }>;
530
+ }, z.core.$strict>>;
531
+ }, z.core.$strict>;
1716
532
  export type AnalyticsRouteMetricsResponse = z.infer<typeof AnalyticsRouteMetricsResponseSchema>;
1717
533
  declare const AnalyticsJourneyPatternSchema: z.ZodObject<{
1718
534
  from_route_key: z.ZodString;
@@ -1720,103 +536,30 @@ declare const AnalyticsJourneyPatternSchema: z.ZodObject<{
1720
536
  transition_count: z.ZodNumber;
1721
537
  unique_sessions: z.ZodNumber;
1722
538
  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
- }>;
539
+ sample_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
540
+ }, z.core.$strict>;
1739
541
  export type AnalyticsJourneyPattern = z.infer<typeof AnalyticsJourneyPatternSchema>;
1740
542
  export declare const AnalyticsJourneyPatternsResponseSchema: z.ZodObject<{
1741
543
  window: z.ZodObject<{
1742
544
  project_id: z.ZodString;
1743
545
  from: z.ZodString;
1744
546
  to: z.ZodString;
1745
- granularity: z.ZodEnum<["hour", "day"]>;
547
+ granularity: z.ZodEnum<{
548
+ hour: "hour";
549
+ day: "day";
550
+ }>;
1746
551
  service: z.ZodNullable<z.ZodString>;
1747
552
  environment: z.ZodNullable<z.ZodString>;
1748
- }, "strict", z.ZodTypeAny, {
1749
- to: string;
1750
- project_id: string;
1751
- from: string;
1752
- service: string | null;
1753
- environment: string | null;
1754
- granularity: "hour" | "day";
1755
- }, {
1756
- to: string;
1757
- project_id: string;
1758
- from: string;
1759
- service: string | null;
1760
- environment: string | null;
1761
- granularity: "hour" | "day";
1762
- }>;
553
+ }, z.core.$strict>;
1763
554
  patterns: z.ZodArray<z.ZodObject<{
1764
555
  from_route_key: z.ZodString;
1765
556
  to_route_key: z.ZodString;
1766
557
  transition_count: z.ZodNumber;
1767
558
  unique_sessions: z.ZodNumber;
1768
559
  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
- to: string;
1788
- project_id: string;
1789
- from: string;
1790
- service: string | null;
1791
- environment: string | null;
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
- to: string;
1805
- project_id: string;
1806
- from: string;
1807
- service: string | null;
1808
- environment: string | null;
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
- }>;
560
+ sample_ids: z.ZodDefault<z.ZodArray<z.ZodString>>;
561
+ }, z.core.$strict>>;
562
+ }, z.core.$strict>;
1820
563
  export type AnalyticsJourneyPatternsResponse = z.infer<typeof AnalyticsJourneyPatternsResponseSchema>;
1821
564
  export declare const AnalyticsIncidentImpactResponseSchema: z.ZodObject<{
1822
565
  incident_id: z.ZodString;
@@ -1824,560 +567,159 @@ export declare const AnalyticsIncidentImpactResponseSchema: z.ZodObject<{
1824
567
  project_id: z.ZodString;
1825
568
  from: z.ZodString;
1826
569
  to: z.ZodString;
1827
- granularity: z.ZodEnum<["hour", "day"]>;
570
+ granularity: z.ZodEnum<{
571
+ hour: "hour";
572
+ day: "day";
573
+ }>;
1828
574
  service: z.ZodNullable<z.ZodString>;
1829
575
  environment: z.ZodNullable<z.ZodString>;
1830
- }, "strict", z.ZodTypeAny, {
1831
- to: string;
1832
- project_id: string;
1833
- from: string;
1834
- service: string | null;
1835
- environment: string | null;
1836
- granularity: "hour" | "day";
1837
- }, {
1838
- to: string;
1839
- project_id: string;
1840
- from: string;
1841
- service: string | null;
1842
- environment: string | null;
1843
- granularity: "hour" | "day";
1844
- }>;
576
+ }, z.core.$strict>;
1845
577
  affected_sessions: z.ZodNumber;
1846
578
  affected_routes: z.ZodArray<z.ZodObject<{
1847
579
  route_key: z.ZodString;
1848
580
  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">;
581
+ }, z.core.$strict>>;
1856
582
  affected_funnels: z.ZodArray<z.ZodObject<{
1857
583
  funnel_key: z.ZodString;
1858
584
  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">;
585
+ }, z.core.$strict>>;
1866
586
  top_device_types: z.ZodArray<z.ZodObject<{
1867
587
  value: z.ZodString;
1868
588
  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">;
589
+ }, z.core.$strict>>;
1876
590
  top_browsers: z.ZodArray<z.ZodObject<{
1877
591
  value: z.ZodString;
1878
592
  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">;
593
+ }, z.core.$strict>>;
1886
594
  journey_patterns: z.ZodArray<z.ZodObject<{
1887
595
  from_route_key: z.ZodString;
1888
596
  to_route_key: z.ZodString;
1889
597
  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"]>;
598
+ sample_ids: z.ZodArray<z.ZodString>;
599
+ }, z.core.$strict>>;
600
+ conversion_delta: z.ZodObject<{
601
+ availability: z.ZodEnum<{
602
+ available: "available";
603
+ unavailable: "unavailable";
604
+ }>;
1904
605
  value: z.ZodNullable<z.ZodNumber>;
1905
606
  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
- }>;
607
+ }, z.core.$strict>;
1923
608
  analytics_bundle: z.ZodObject<{
1924
- status: z.ZodEnum<["not_requested", "pending", "running", "completed", "failed"]>;
609
+ status: z.ZodEnum<{
610
+ not_requested: "not_requested";
611
+ pending: "pending";
612
+ running: "running";
613
+ completed: "completed";
614
+ failed: "failed";
615
+ }>;
1925
616
  generation_id: z.ZodNullable<z.ZodString>;
1926
617
  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
- to: string;
1939
- project_id: string;
1940
- from: string;
1941
- service: string | null;
1942
- environment: string | null;
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
- to: string;
1982
- project_id: string;
1983
- from: string;
1984
- service: string | null;
1985
- environment: string | null;
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
- }>;
618
+ }, z.core.$strict>;
619
+ }, z.core.$strict>;
2023
620
  export type AnalyticsIncidentImpactResponse = z.infer<typeof AnalyticsIncidentImpactResponseSchema>;
2024
621
  export declare const AnalyticsDeviceBreakdownResponseSchema: z.ZodObject<{
2025
622
  window: z.ZodObject<{
2026
623
  project_id: z.ZodString;
2027
624
  from: z.ZodString;
2028
625
  to: z.ZodString;
2029
- granularity: z.ZodEnum<["hour", "day"]>;
626
+ granularity: z.ZodEnum<{
627
+ hour: "hour";
628
+ day: "day";
629
+ }>;
2030
630
  service: z.ZodNullable<z.ZodString>;
2031
631
  environment: z.ZodNullable<z.ZodString>;
2032
- }, "strict", z.ZodTypeAny, {
2033
- to: string;
2034
- project_id: string;
2035
- from: string;
2036
- service: string | null;
2037
- environment: string | null;
2038
- granularity: "hour" | "day";
2039
- }, {
2040
- to: string;
2041
- project_id: string;
2042
- from: string;
2043
- service: string | null;
2044
- environment: string | null;
2045
- granularity: "hour" | "day";
2046
- }>;
632
+ }, z.core.$strict>;
2047
633
  device_types: z.ZodArray<z.ZodObject<{
2048
634
  value: z.ZodString;
2049
635
  sessions: z.ZodNumber;
2050
636
  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">;
637
+ }, z.core.$strict>>;
2060
638
  browsers: z.ZodArray<z.ZodObject<{
2061
639
  value: z.ZodString;
2062
640
  sessions: z.ZodNumber;
2063
641
  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">;
642
+ }, z.core.$strict>>;
2073
643
  os: z.ZodArray<z.ZodObject<{
2074
644
  value: z.ZodString;
2075
645
  sessions: z.ZodNumber;
2076
646
  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">;
647
+ }, z.core.$strict>>;
2086
648
  languages: z.ZodArray<z.ZodObject<{
2087
649
  value: z.ZodString;
2088
650
  sessions: z.ZodNumber;
2089
651
  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
- window: {
2101
- to: string;
2102
- project_id: string;
2103
- from: string;
2104
- service: string | null;
2105
- environment: string | null;
2106
- granularity: "hour" | "day";
2107
- };
2108
- device_types: {
2109
- value: string;
2110
- pageviews: number;
2111
- sessions: number;
2112
- }[];
2113
- browsers: {
2114
- value: string;
2115
- pageviews: number;
2116
- sessions: number;
2117
- }[];
2118
- os: {
2119
- value: string;
2120
- pageviews: number;
2121
- sessions: number;
2122
- }[];
2123
- languages: {
2124
- value: string;
2125
- pageviews: number;
2126
- sessions: number;
2127
- }[];
2128
- }, {
2129
- window: {
2130
- to: string;
2131
- project_id: string;
2132
- from: string;
2133
- service: string | null;
2134
- environment: string | null;
2135
- granularity: "hour" | "day";
2136
- };
2137
- device_types: {
2138
- value: string;
2139
- pageviews: number;
2140
- sessions: number;
2141
- }[];
2142
- browsers: {
2143
- value: string;
2144
- pageviews: number;
2145
- sessions: number;
2146
- }[];
2147
- os: {
2148
- value: string;
2149
- pageviews: number;
2150
- sessions: number;
2151
- }[];
2152
- languages: {
2153
- value: string;
2154
- pageviews: number;
2155
- sessions: number;
2156
- }[];
2157
- }>;
652
+ }, z.core.$strict>>;
653
+ }, z.core.$strict>;
2158
654
  export type AnalyticsDeviceBreakdownResponse = z.infer<typeof AnalyticsDeviceBreakdownResponseSchema>;
2159
655
  export declare const AnalyticsReferrerMetricsResponseSchema: z.ZodObject<{
2160
656
  window: z.ZodObject<{
2161
657
  project_id: z.ZodString;
2162
658
  from: z.ZodString;
2163
659
  to: z.ZodString;
2164
- granularity: z.ZodEnum<["hour", "day"]>;
660
+ granularity: z.ZodEnum<{
661
+ hour: "hour";
662
+ day: "day";
663
+ }>;
2165
664
  service: z.ZodNullable<z.ZodString>;
2166
665
  environment: z.ZodNullable<z.ZodString>;
2167
- }, "strict", z.ZodTypeAny, {
2168
- to: string;
2169
- project_id: string;
2170
- from: string;
2171
- service: string | null;
2172
- environment: string | null;
2173
- granularity: "hour" | "day";
2174
- }, {
2175
- to: string;
2176
- project_id: string;
2177
- from: string;
2178
- service: string | null;
2179
- environment: string | null;
2180
- granularity: "hour" | "day";
2181
- }>;
666
+ }, z.core.$strict>;
2182
667
  referrers: z.ZodArray<z.ZodObject<{
2183
668
  value: z.ZodString;
2184
669
  sessions: z.ZodNumber;
2185
670
  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">;
671
+ }, z.core.$strict>>;
2195
672
  utm_sources: z.ZodArray<z.ZodObject<{
2196
673
  value: z.ZodString;
2197
674
  sessions: z.ZodNumber;
2198
675
  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">;
676
+ }, z.core.$strict>>;
2208
677
  utm_mediums: z.ZodArray<z.ZodObject<{
2209
678
  value: z.ZodString;
2210
679
  sessions: z.ZodNumber;
2211
680
  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">;
681
+ }, z.core.$strict>>;
2221
682
  utm_campaigns: z.ZodArray<z.ZodObject<{
2222
683
  value: z.ZodString;
2223
684
  sessions: z.ZodNumber;
2224
685
  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
- window: {
2236
- to: string;
2237
- project_id: string;
2238
- from: string;
2239
- service: string | null;
2240
- environment: string | null;
2241
- granularity: "hour" | "day";
2242
- };
2243
- referrers: {
2244
- value: string;
2245
- pageviews: number;
2246
- sessions: number;
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
- window: {
2265
- to: string;
2266
- project_id: string;
2267
- from: string;
2268
- service: string | null;
2269
- environment: string | null;
2270
- granularity: "hour" | "day";
2271
- };
2272
- referrers: {
2273
- value: string;
2274
- pageviews: number;
2275
- sessions: number;
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
- }>;
686
+ }, z.core.$strict>>;
687
+ }, z.core.$strict>;
2293
688
  export type AnalyticsReferrerMetricsResponse = z.infer<typeof AnalyticsReferrerMetricsResponseSchema>;
2294
689
  declare const AnalyticsActionMetricSchema: z.ZodObject<{
2295
690
  action_key: z.ZodString;
2296
- kind: z.ZodEnum<["action", "conversion", "marker"]>;
691
+ kind: z.ZodEnum<{
692
+ action: "action";
693
+ conversion: "conversion";
694
+ marker: "marker";
695
+ }>;
2297
696
  event_count: z.ZodNumber;
2298
697
  unique_sessions: z.ZodNumber;
2299
- }, "strict", z.ZodTypeAny, {
2300
- kind: "action" | "conversion" | "marker";
2301
- action_key: string;
2302
- unique_sessions: number;
2303
- event_count: number;
2304
- }, {
2305
- kind: "action" | "conversion" | "marker";
2306
- action_key: string;
2307
- unique_sessions: number;
2308
- event_count: number;
2309
- }>;
698
+ }, z.core.$strict>;
2310
699
  export type AnalyticsActionMetric = z.infer<typeof AnalyticsActionMetricSchema>;
2311
700
  export declare const AnalyticsActionMetricsResponseSchema: z.ZodObject<{
2312
701
  window: z.ZodObject<{
2313
702
  project_id: z.ZodString;
2314
703
  from: z.ZodString;
2315
704
  to: z.ZodString;
2316
- granularity: z.ZodEnum<["hour", "day"]>;
705
+ granularity: z.ZodEnum<{
706
+ hour: "hour";
707
+ day: "day";
708
+ }>;
2317
709
  service: z.ZodNullable<z.ZodString>;
2318
710
  environment: z.ZodNullable<z.ZodString>;
2319
- }, "strict", z.ZodTypeAny, {
2320
- to: string;
2321
- project_id: string;
2322
- from: string;
2323
- service: string | null;
2324
- environment: string | null;
2325
- granularity: "hour" | "day";
2326
- }, {
2327
- to: string;
2328
- project_id: string;
2329
- from: string;
2330
- service: string | null;
2331
- environment: string | null;
2332
- granularity: "hour" | "day";
2333
- }>;
711
+ }, z.core.$strict>;
2334
712
  actions: z.ZodArray<z.ZodObject<{
2335
713
  action_key: z.ZodString;
2336
- kind: z.ZodEnum<["action", "conversion", "marker"]>;
714
+ kind: z.ZodEnum<{
715
+ action: "action";
716
+ conversion: "conversion";
717
+ marker: "marker";
718
+ }>;
2337
719
  event_count: z.ZodNumber;
2338
720
  unique_sessions: z.ZodNumber;
2339
- }, "strict", z.ZodTypeAny, {
2340
- kind: "action" | "conversion" | "marker";
2341
- action_key: string;
2342
- unique_sessions: number;
2343
- event_count: number;
2344
- }, {
2345
- kind: "action" | "conversion" | "marker";
2346
- action_key: string;
2347
- unique_sessions: number;
2348
- event_count: number;
2349
- }>, "many">;
2350
- }, "strict", z.ZodTypeAny, {
2351
- window: {
2352
- to: string;
2353
- project_id: string;
2354
- from: string;
2355
- service: string | null;
2356
- environment: string | null;
2357
- granularity: "hour" | "day";
2358
- };
2359
- actions: {
2360
- kind: "action" | "conversion" | "marker";
2361
- action_key: string;
2362
- unique_sessions: number;
2363
- event_count: number;
2364
- }[];
2365
- }, {
2366
- window: {
2367
- to: string;
2368
- project_id: string;
2369
- from: string;
2370
- service: string | null;
2371
- environment: string | null;
2372
- granularity: "hour" | "day";
2373
- };
2374
- actions: {
2375
- kind: "action" | "conversion" | "marker";
2376
- action_key: string;
2377
- unique_sessions: number;
2378
- event_count: number;
2379
- }[];
2380
- }>;
721
+ }, z.core.$strict>>;
722
+ }, z.core.$strict>;
2381
723
  export type AnalyticsActionMetricsResponse = z.infer<typeof AnalyticsActionMetricsResponseSchema>;
2382
724
  declare const AnalyticsFunnelListItemSchema: z.ZodObject<{
2383
725
  funnel_key: z.ZodString;
@@ -2385,95 +727,28 @@ declare const AnalyticsFunnelListItemSchema: z.ZodObject<{
2385
727
  sessions_completed: z.ZodNumber;
2386
728
  dropoffs: z.ZodNumber;
2387
729
  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
- }>;
730
+ }, z.core.$strict>;
2401
731
  export type AnalyticsFunnelListItem = z.infer<typeof AnalyticsFunnelListItemSchema>;
2402
732
  export declare const AnalyticsFunnelsResponseSchema: z.ZodObject<{
2403
733
  window: z.ZodObject<{
2404
734
  project_id: z.ZodString;
2405
735
  from: z.ZodString;
2406
736
  to: z.ZodString;
2407
- granularity: z.ZodEnum<["hour", "day"]>;
737
+ granularity: z.ZodEnum<{
738
+ hour: "hour";
739
+ day: "day";
740
+ }>;
2408
741
  service: z.ZodNullable<z.ZodString>;
2409
742
  environment: z.ZodNullable<z.ZodString>;
2410
- }, "strict", z.ZodTypeAny, {
2411
- to: string;
2412
- project_id: string;
2413
- from: string;
2414
- service: string | null;
2415
- environment: string | null;
2416
- granularity: "hour" | "day";
2417
- }, {
2418
- to: string;
2419
- project_id: string;
2420
- from: string;
2421
- service: string | null;
2422
- environment: string | null;
2423
- granularity: "hour" | "day";
2424
- }>;
743
+ }, z.core.$strict>;
2425
744
  funnels: z.ZodArray<z.ZodObject<{
2426
745
  funnel_key: z.ZodString;
2427
746
  sessions_entered: z.ZodNumber;
2428
747
  sessions_completed: z.ZodNumber;
2429
748
  dropoffs: z.ZodNumber;
2430
749
  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
- to: string;
2447
- project_id: string;
2448
- from: string;
2449
- service: string | null;
2450
- environment: string | null;
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
- to: string;
2463
- project_id: string;
2464
- from: string;
2465
- service: string | null;
2466
- environment: string | null;
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
- }>;
750
+ }, z.core.$strict>>;
751
+ }, z.core.$strict>;
2477
752
  export type AnalyticsFunnelsResponse = z.infer<typeof AnalyticsFunnelsResponseSchema>;
2478
753
  declare const AnalyticsFunnelStepMetricSchema: z.ZodObject<{
2479
754
  step_key: z.ZodString;
@@ -2482,59 +757,24 @@ declare const AnalyticsFunnelStepMetricSchema: z.ZodObject<{
2482
757
  sessions_completed: z.ZodNumber;
2483
758
  dropoffs: z.ZodNumber;
2484
759
  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
- }>;
760
+ }, z.core.$strict>;
2500
761
  export type AnalyticsFunnelStepMetric = z.infer<typeof AnalyticsFunnelStepMetricSchema>;
2501
762
  declare const AnalyticsFunnelSummarySchema: z.ZodObject<{
2502
763
  project_id: z.ZodString;
2503
764
  funnel_key: z.ZodString;
2504
765
  from: z.ZodString;
2505
766
  to: z.ZodString;
2506
- granularity: z.ZodEnum<["hour", "day"]>;
767
+ granularity: z.ZodEnum<{
768
+ hour: "hour";
769
+ day: "day";
770
+ }>;
2507
771
  service: z.ZodNullable<z.ZodString>;
2508
772
  environment: z.ZodNullable<z.ZodString>;
2509
773
  sessions_entered: z.ZodNumber;
2510
774
  sessions_completed: z.ZodNumber;
2511
775
  dropoffs: z.ZodNumber;
2512
776
  conversion_rate: z.ZodNumber;
2513
- }, "strict", z.ZodTypeAny, {
2514
- to: string;
2515
- project_id: string;
2516
- from: string;
2517
- funnel_key: string;
2518
- service: string | null;
2519
- environment: string | null;
2520
- granularity: "hour" | "day";
2521
- sessions_entered: number;
2522
- sessions_completed: number;
2523
- dropoffs: number;
2524
- conversion_rate: number;
2525
- }, {
2526
- to: string;
2527
- project_id: string;
2528
- from: string;
2529
- funnel_key: string;
2530
- service: string | null;
2531
- environment: string | null;
2532
- granularity: "hour" | "day";
2533
- sessions_entered: number;
2534
- sessions_completed: number;
2535
- dropoffs: number;
2536
- conversion_rate: number;
2537
- }>;
777
+ }, z.core.$strict>;
2538
778
  export type AnalyticsFunnelSummary = z.infer<typeof AnalyticsFunnelSummarySchema>;
2539
779
  export declare const AnalyticsFunnelAnalysisResponseSchema: z.ZodObject<{
2540
780
  funnel: z.ZodObject<{
@@ -2542,38 +782,17 @@ export declare const AnalyticsFunnelAnalysisResponseSchema: z.ZodObject<{
2542
782
  funnel_key: z.ZodString;
2543
783
  from: z.ZodString;
2544
784
  to: z.ZodString;
2545
- granularity: z.ZodEnum<["hour", "day"]>;
785
+ granularity: z.ZodEnum<{
786
+ hour: "hour";
787
+ day: "day";
788
+ }>;
2546
789
  service: z.ZodNullable<z.ZodString>;
2547
790
  environment: z.ZodNullable<z.ZodString>;
2548
791
  sessions_entered: z.ZodNumber;
2549
792
  sessions_completed: z.ZodNumber;
2550
793
  dropoffs: z.ZodNumber;
2551
794
  conversion_rate: z.ZodNumber;
2552
- }, "strict", z.ZodTypeAny, {
2553
- to: string;
2554
- project_id: string;
2555
- from: string;
2556
- funnel_key: string;
2557
- service: string | null;
2558
- environment: string | null;
2559
- granularity: "hour" | "day";
2560
- sessions_entered: number;
2561
- sessions_completed: number;
2562
- dropoffs: number;
2563
- conversion_rate: number;
2564
- }, {
2565
- to: string;
2566
- project_id: string;
2567
- from: string;
2568
- funnel_key: string;
2569
- service: string | null;
2570
- environment: string | null;
2571
- granularity: "hour" | "day";
2572
- sessions_entered: number;
2573
- sessions_completed: number;
2574
- dropoffs: number;
2575
- conversion_rate: number;
2576
- }>;
795
+ }, z.core.$strict>;
2577
796
  steps: z.ZodArray<z.ZodObject<{
2578
797
  step_key: z.ZodString;
2579
798
  step_order: z.ZodNumber;
@@ -2581,66 +800,8 @@ export declare const AnalyticsFunnelAnalysisResponseSchema: z.ZodObject<{
2581
800
  sessions_completed: z.ZodNumber;
2582
801
  dropoffs: z.ZodNumber;
2583
802
  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
- steps: {
2601
- step_key: string;
2602
- sessions_entered: number;
2603
- sessions_completed: number;
2604
- dropoffs: number;
2605
- conversion_rate: number;
2606
- step_order: number;
2607
- }[];
2608
- funnel: {
2609
- to: string;
2610
- project_id: string;
2611
- from: string;
2612
- funnel_key: string;
2613
- service: string | null;
2614
- environment: string | null;
2615
- granularity: "hour" | "day";
2616
- sessions_entered: number;
2617
- sessions_completed: number;
2618
- dropoffs: number;
2619
- conversion_rate: number;
2620
- };
2621
- }, {
2622
- steps: {
2623
- step_key: string;
2624
- sessions_entered: number;
2625
- sessions_completed: number;
2626
- dropoffs: number;
2627
- conversion_rate: number;
2628
- step_order: number;
2629
- }[];
2630
- funnel: {
2631
- to: string;
2632
- project_id: string;
2633
- from: string;
2634
- funnel_key: string;
2635
- service: string | null;
2636
- environment: string | null;
2637
- granularity: "hour" | "day";
2638
- sessions_entered: number;
2639
- sessions_completed: number;
2640
- dropoffs: number;
2641
- conversion_rate: number;
2642
- };
2643
- }>;
803
+ }, z.core.$strict>>;
804
+ }, z.core.$strict>;
2644
805
  export type AnalyticsFunnelAnalysisResponse = z.infer<typeof AnalyticsFunnelAnalysisResponseSchema>;
2645
806
  export {};
2646
807
  //# sourceMappingURL=analytics.d.ts.map