@debugbundle/shared-types 1.3.1 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,975 @@
1
+ import { z } from "zod";
2
+ export declare const AnalyticsJourneySampleEventSchema: z.ZodObject<{
3
+ event_id: z.ZodString;
4
+ occurred_at: z.ZodString;
5
+ kind: z.ZodEnum<["session_start", "page_view", "route_change", "action", "funnel_step", "conversion", "journey_marker", "session_summary"]>;
6
+ route: z.ZodNullable<z.ZodEffects<z.ZodObject<{
7
+ path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ normalized_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ }, "strict", z.ZodTypeAny, {
11
+ path?: string | null | undefined;
12
+ normalized_path?: string | null | undefined;
13
+ title?: string | null | undefined;
14
+ }, {
15
+ path?: string | null | undefined;
16
+ normalized_path?: string | null | undefined;
17
+ title?: string | null | undefined;
18
+ }>, {
19
+ path?: string | null | undefined;
20
+ normalized_path?: string | null | undefined;
21
+ title?: string | null | undefined;
22
+ }, {
23
+ path?: string | null | undefined;
24
+ normalized_path?: string | null | undefined;
25
+ title?: string | null | undefined;
26
+ }>>;
27
+ previous_route: z.ZodNullable<z.ZodEffects<z.ZodObject<{
28
+ path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ normalized_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ }, "strict", z.ZodTypeAny, {
32
+ path?: string | null | undefined;
33
+ normalized_path?: string | null | undefined;
34
+ title?: string | null | undefined;
35
+ }, {
36
+ path?: string | null | undefined;
37
+ normalized_path?: string | null | undefined;
38
+ title?: string | null | undefined;
39
+ }>, {
40
+ path?: string | null | undefined;
41
+ normalized_path?: string | null | undefined;
42
+ title?: string | null | undefined;
43
+ }, {
44
+ path?: string | null | undefined;
45
+ normalized_path?: string | null | undefined;
46
+ title?: string | null | undefined;
47
+ }>>;
48
+ signal: z.ZodNullable<z.ZodObject<{
49
+ action_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ funnel_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ step_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ conversion_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ marker_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ }, "strict", z.ZodTypeAny, {
55
+ action_key?: string | null | undefined;
56
+ funnel_key?: string | null | undefined;
57
+ step_key?: string | null | undefined;
58
+ conversion_key?: string | null | undefined;
59
+ marker_key?: string | null | undefined;
60
+ }, {
61
+ action_key?: string | null | undefined;
62
+ funnel_key?: string | null | undefined;
63
+ step_key?: string | null | undefined;
64
+ conversion_key?: string | null | undefined;
65
+ marker_key?: string | null | undefined;
66
+ }>>;
67
+ trace_id: z.ZodNullable<z.ZodString>;
68
+ deploy_id: z.ZodNullable<z.ZodString>;
69
+ dimensions: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>;
70
+ custom_dimensions: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>;
71
+ }, "strict", z.ZodTypeAny, {
72
+ event_id: string;
73
+ occurred_at: string;
74
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
75
+ route: {
76
+ path?: string | null | undefined;
77
+ normalized_path?: string | null | undefined;
78
+ title?: string | null | undefined;
79
+ } | null;
80
+ previous_route: {
81
+ path?: string | null | undefined;
82
+ normalized_path?: string | null | undefined;
83
+ title?: string | null | undefined;
84
+ } | null;
85
+ signal: {
86
+ action_key?: string | null | undefined;
87
+ funnel_key?: string | null | undefined;
88
+ step_key?: string | null | undefined;
89
+ conversion_key?: string | null | undefined;
90
+ marker_key?: string | null | undefined;
91
+ } | null;
92
+ trace_id: string | null;
93
+ deploy_id: string | null;
94
+ dimensions: Record<string, string | number | boolean | null>;
95
+ custom_dimensions: Record<string, string | number | boolean | null>;
96
+ }, {
97
+ event_id: string;
98
+ occurred_at: string;
99
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
100
+ route: {
101
+ path?: string | null | undefined;
102
+ normalized_path?: string | null | undefined;
103
+ title?: string | null | undefined;
104
+ } | null;
105
+ previous_route: {
106
+ path?: string | null | undefined;
107
+ normalized_path?: string | null | undefined;
108
+ title?: string | null | undefined;
109
+ } | null;
110
+ signal: {
111
+ action_key?: string | null | undefined;
112
+ funnel_key?: string | null | undefined;
113
+ step_key?: string | null | undefined;
114
+ conversion_key?: string | null | undefined;
115
+ marker_key?: string | null | undefined;
116
+ } | null;
117
+ trace_id: string | null;
118
+ deploy_id: string | null;
119
+ dimensions: Record<string, string | number | boolean | null>;
120
+ custom_dimensions: Record<string, string | number | boolean | null>;
121
+ }>;
122
+ export type AnalyticsJourneySampleEvent = z.infer<typeof AnalyticsJourneySampleEventSchema>;
123
+ export declare const AnalyticsJourneySampleMetadataSchema: z.ZodObject<{
124
+ sample_id: z.ZodString;
125
+ project_id: z.ZodString;
126
+ service: z.ZodNullable<z.ZodString>;
127
+ environment: z.ZodNullable<z.ZodString>;
128
+ session_id_hash: z.ZodString;
129
+ visitor_id_hash: z.ZodNullable<z.ZodString>;
130
+ analysis_tags: z.ZodArray<z.ZodString, "many">;
131
+ first_seen_at: z.ZodString;
132
+ last_seen_at: z.ZodString;
133
+ dimensions_summary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
134
+ has_artifact: z.ZodBoolean;
135
+ expires_at: z.ZodString;
136
+ created_at: z.ZodString;
137
+ }, "strict", z.ZodTypeAny, {
138
+ sample_id: string;
139
+ project_id: string;
140
+ service: string | null;
141
+ environment: string | null;
142
+ session_id_hash: string;
143
+ visitor_id_hash: string | null;
144
+ analysis_tags: string[];
145
+ first_seen_at: string;
146
+ last_seen_at: string;
147
+ dimensions_summary: Record<string, unknown>;
148
+ has_artifact: boolean;
149
+ expires_at: string;
150
+ created_at: string;
151
+ }, {
152
+ sample_id: string;
153
+ project_id: string;
154
+ service: string | null;
155
+ environment: string | null;
156
+ session_id_hash: string;
157
+ visitor_id_hash: string | null;
158
+ analysis_tags: string[];
159
+ first_seen_at: string;
160
+ last_seen_at: string;
161
+ dimensions_summary: Record<string, unknown>;
162
+ has_artifact: boolean;
163
+ expires_at: string;
164
+ created_at: string;
165
+ }>;
166
+ export type AnalyticsJourneySampleMetadata = z.infer<typeof AnalyticsJourneySampleMetadataSchema>;
167
+ export declare const AnalyticsJourneySamplesListResponseSchema: z.ZodObject<{
168
+ samples: z.ZodArray<z.ZodObject<{
169
+ sample_id: z.ZodString;
170
+ project_id: z.ZodString;
171
+ service: z.ZodNullable<z.ZodString>;
172
+ environment: z.ZodNullable<z.ZodString>;
173
+ session_id_hash: z.ZodString;
174
+ visitor_id_hash: z.ZodNullable<z.ZodString>;
175
+ analysis_tags: z.ZodArray<z.ZodString, "many">;
176
+ first_seen_at: z.ZodString;
177
+ last_seen_at: z.ZodString;
178
+ dimensions_summary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
179
+ has_artifact: z.ZodBoolean;
180
+ expires_at: z.ZodString;
181
+ created_at: z.ZodString;
182
+ }, "strict", z.ZodTypeAny, {
183
+ sample_id: string;
184
+ project_id: string;
185
+ service: string | null;
186
+ environment: string | null;
187
+ session_id_hash: string;
188
+ visitor_id_hash: string | null;
189
+ analysis_tags: string[];
190
+ first_seen_at: string;
191
+ last_seen_at: string;
192
+ dimensions_summary: Record<string, unknown>;
193
+ has_artifact: boolean;
194
+ expires_at: string;
195
+ created_at: string;
196
+ }, {
197
+ sample_id: string;
198
+ project_id: string;
199
+ service: string | null;
200
+ environment: string | null;
201
+ session_id_hash: string;
202
+ visitor_id_hash: string | null;
203
+ analysis_tags: string[];
204
+ first_seen_at: string;
205
+ last_seen_at: string;
206
+ dimensions_summary: Record<string, unknown>;
207
+ has_artifact: boolean;
208
+ expires_at: string;
209
+ created_at: string;
210
+ }>, "many">;
211
+ next_cursor: z.ZodNullable<z.ZodString>;
212
+ }, "strict", z.ZodTypeAny, {
213
+ samples: {
214
+ sample_id: string;
215
+ project_id: string;
216
+ service: string | null;
217
+ environment: string | null;
218
+ session_id_hash: string;
219
+ visitor_id_hash: string | null;
220
+ analysis_tags: string[];
221
+ first_seen_at: string;
222
+ last_seen_at: string;
223
+ dimensions_summary: Record<string, unknown>;
224
+ has_artifact: boolean;
225
+ expires_at: string;
226
+ created_at: string;
227
+ }[];
228
+ next_cursor: string | null;
229
+ }, {
230
+ samples: {
231
+ sample_id: string;
232
+ project_id: string;
233
+ service: string | null;
234
+ environment: string | null;
235
+ session_id_hash: string;
236
+ visitor_id_hash: string | null;
237
+ analysis_tags: string[];
238
+ first_seen_at: string;
239
+ last_seen_at: string;
240
+ dimensions_summary: Record<string, unknown>;
241
+ has_artifact: boolean;
242
+ expires_at: string;
243
+ created_at: string;
244
+ }[];
245
+ next_cursor: string | null;
246
+ }>;
247
+ export type AnalyticsJourneySamplesListResponse = z.infer<typeof AnalyticsJourneySamplesListResponseSchema>;
248
+ export declare const AnalyticsJourneySampleArtifactSchema: z.ZodEffects<z.ZodObject<{
249
+ schema_version: z.ZodLiteral<"analytics_journey_sample.v1">;
250
+ sample_id: z.ZodString;
251
+ project_id: z.ZodString;
252
+ service: z.ZodString;
253
+ environment: z.ZodString;
254
+ session_id_hash: z.ZodString;
255
+ visitor_id_hash: z.ZodNullable<z.ZodString>;
256
+ first_seen_at: z.ZodString;
257
+ last_seen_at: z.ZodString;
258
+ analysis_tags: z.ZodArray<z.ZodString, "many">;
259
+ dimensions_summary: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>]>>, Record<string, string | number | boolean | Record<string, string | number | boolean | null> | null>, Record<string, string | number | boolean | Record<string, string | number | boolean | null> | null>>;
260
+ events: z.ZodArray<z.ZodObject<{
261
+ event_id: z.ZodString;
262
+ occurred_at: z.ZodString;
263
+ kind: z.ZodEnum<["session_start", "page_view", "route_change", "action", "funnel_step", "conversion", "journey_marker", "session_summary"]>;
264
+ route: z.ZodNullable<z.ZodEffects<z.ZodObject<{
265
+ path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
266
+ normalized_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
267
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
268
+ }, "strict", z.ZodTypeAny, {
269
+ path?: string | null | undefined;
270
+ normalized_path?: string | null | undefined;
271
+ title?: string | null | undefined;
272
+ }, {
273
+ path?: string | null | undefined;
274
+ normalized_path?: string | null | undefined;
275
+ title?: string | null | undefined;
276
+ }>, {
277
+ path?: string | null | undefined;
278
+ normalized_path?: string | null | undefined;
279
+ title?: string | null | undefined;
280
+ }, {
281
+ path?: string | null | undefined;
282
+ normalized_path?: string | null | undefined;
283
+ title?: string | null | undefined;
284
+ }>>;
285
+ previous_route: z.ZodNullable<z.ZodEffects<z.ZodObject<{
286
+ path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
287
+ normalized_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
288
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
289
+ }, "strict", z.ZodTypeAny, {
290
+ path?: string | null | undefined;
291
+ normalized_path?: string | null | undefined;
292
+ title?: string | null | undefined;
293
+ }, {
294
+ path?: string | null | undefined;
295
+ normalized_path?: string | null | undefined;
296
+ title?: string | null | undefined;
297
+ }>, {
298
+ path?: string | null | undefined;
299
+ normalized_path?: string | null | undefined;
300
+ title?: string | null | undefined;
301
+ }, {
302
+ path?: string | null | undefined;
303
+ normalized_path?: string | null | undefined;
304
+ title?: string | null | undefined;
305
+ }>>;
306
+ signal: z.ZodNullable<z.ZodObject<{
307
+ action_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
308
+ funnel_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
309
+ step_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
310
+ conversion_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
311
+ marker_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
312
+ }, "strict", z.ZodTypeAny, {
313
+ action_key?: string | null | undefined;
314
+ funnel_key?: string | null | undefined;
315
+ step_key?: string | null | undefined;
316
+ conversion_key?: string | null | undefined;
317
+ marker_key?: string | null | undefined;
318
+ }, {
319
+ action_key?: string | null | undefined;
320
+ funnel_key?: string | null | undefined;
321
+ step_key?: string | null | undefined;
322
+ conversion_key?: string | null | undefined;
323
+ marker_key?: string | null | undefined;
324
+ }>>;
325
+ trace_id: z.ZodNullable<z.ZodString>;
326
+ deploy_id: z.ZodNullable<z.ZodString>;
327
+ dimensions: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>;
328
+ custom_dimensions: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>;
329
+ }, "strict", z.ZodTypeAny, {
330
+ event_id: string;
331
+ occurred_at: string;
332
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
333
+ route: {
334
+ path?: string | null | undefined;
335
+ normalized_path?: string | null | undefined;
336
+ title?: string | null | undefined;
337
+ } | null;
338
+ previous_route: {
339
+ path?: string | null | undefined;
340
+ normalized_path?: string | null | undefined;
341
+ title?: string | null | undefined;
342
+ } | null;
343
+ signal: {
344
+ action_key?: string | null | undefined;
345
+ funnel_key?: string | null | undefined;
346
+ step_key?: string | null | undefined;
347
+ conversion_key?: string | null | undefined;
348
+ marker_key?: string | null | undefined;
349
+ } | null;
350
+ trace_id: string | null;
351
+ deploy_id: string | null;
352
+ dimensions: Record<string, string | number | boolean | null>;
353
+ custom_dimensions: Record<string, string | number | boolean | null>;
354
+ }, {
355
+ event_id: string;
356
+ occurred_at: string;
357
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
358
+ route: {
359
+ path?: string | null | undefined;
360
+ normalized_path?: string | null | undefined;
361
+ title?: string | null | undefined;
362
+ } | null;
363
+ previous_route: {
364
+ path?: string | null | undefined;
365
+ normalized_path?: string | null | undefined;
366
+ title?: string | null | undefined;
367
+ } | null;
368
+ signal: {
369
+ action_key?: string | null | undefined;
370
+ funnel_key?: string | null | undefined;
371
+ step_key?: string | null | undefined;
372
+ conversion_key?: string | null | undefined;
373
+ marker_key?: string | null | undefined;
374
+ } | null;
375
+ trace_id: string | null;
376
+ deploy_id: string | null;
377
+ dimensions: Record<string, string | number | boolean | null>;
378
+ custom_dimensions: Record<string, string | number | boolean | null>;
379
+ }>, "many">;
380
+ }, "strict", z.ZodTypeAny, {
381
+ sample_id: string;
382
+ project_id: string;
383
+ service: string;
384
+ environment: string;
385
+ session_id_hash: string;
386
+ visitor_id_hash: string | null;
387
+ analysis_tags: string[];
388
+ first_seen_at: string;
389
+ last_seen_at: string;
390
+ dimensions_summary: Record<string, string | number | boolean | Record<string, string | number | boolean | null> | null>;
391
+ schema_version: "analytics_journey_sample.v1";
392
+ events: {
393
+ event_id: string;
394
+ occurred_at: string;
395
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
396
+ route: {
397
+ path?: string | null | undefined;
398
+ normalized_path?: string | null | undefined;
399
+ title?: string | null | undefined;
400
+ } | null;
401
+ previous_route: {
402
+ path?: string | null | undefined;
403
+ normalized_path?: string | null | undefined;
404
+ title?: string | null | undefined;
405
+ } | null;
406
+ signal: {
407
+ action_key?: string | null | undefined;
408
+ funnel_key?: string | null | undefined;
409
+ step_key?: string | null | undefined;
410
+ conversion_key?: string | null | undefined;
411
+ marker_key?: string | null | undefined;
412
+ } | null;
413
+ trace_id: string | null;
414
+ deploy_id: string | null;
415
+ dimensions: Record<string, string | number | boolean | null>;
416
+ custom_dimensions: Record<string, string | number | boolean | null>;
417
+ }[];
418
+ }, {
419
+ sample_id: string;
420
+ project_id: string;
421
+ service: string;
422
+ environment: string;
423
+ session_id_hash: string;
424
+ visitor_id_hash: string | null;
425
+ analysis_tags: string[];
426
+ first_seen_at: string;
427
+ last_seen_at: string;
428
+ dimensions_summary: Record<string, string | number | boolean | Record<string, string | number | boolean | null> | null>;
429
+ schema_version: "analytics_journey_sample.v1";
430
+ events: {
431
+ event_id: string;
432
+ occurred_at: string;
433
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
434
+ route: {
435
+ path?: string | null | undefined;
436
+ normalized_path?: string | null | undefined;
437
+ title?: string | null | undefined;
438
+ } | null;
439
+ previous_route: {
440
+ path?: string | null | undefined;
441
+ normalized_path?: string | null | undefined;
442
+ title?: string | null | undefined;
443
+ } | null;
444
+ signal: {
445
+ action_key?: string | null | undefined;
446
+ funnel_key?: string | null | undefined;
447
+ step_key?: string | null | undefined;
448
+ conversion_key?: string | null | undefined;
449
+ marker_key?: string | null | undefined;
450
+ } | null;
451
+ trace_id: string | null;
452
+ deploy_id: string | null;
453
+ dimensions: Record<string, string | number | boolean | null>;
454
+ custom_dimensions: Record<string, string | number | boolean | null>;
455
+ }[];
456
+ }>, {
457
+ sample_id: string;
458
+ project_id: string;
459
+ service: string;
460
+ environment: string;
461
+ session_id_hash: string;
462
+ visitor_id_hash: string | null;
463
+ analysis_tags: string[];
464
+ first_seen_at: string;
465
+ last_seen_at: string;
466
+ dimensions_summary: Record<string, string | number | boolean | Record<string, string | number | boolean | null> | null>;
467
+ schema_version: "analytics_journey_sample.v1";
468
+ events: {
469
+ event_id: string;
470
+ occurred_at: string;
471
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
472
+ route: {
473
+ path?: string | null | undefined;
474
+ normalized_path?: string | null | undefined;
475
+ title?: string | null | undefined;
476
+ } | null;
477
+ previous_route: {
478
+ path?: string | null | undefined;
479
+ normalized_path?: string | null | undefined;
480
+ title?: string | null | undefined;
481
+ } | null;
482
+ signal: {
483
+ action_key?: string | null | undefined;
484
+ funnel_key?: string | null | undefined;
485
+ step_key?: string | null | undefined;
486
+ conversion_key?: string | null | undefined;
487
+ marker_key?: string | null | undefined;
488
+ } | null;
489
+ trace_id: string | null;
490
+ deploy_id: string | null;
491
+ dimensions: Record<string, string | number | boolean | null>;
492
+ custom_dimensions: Record<string, string | number | boolean | null>;
493
+ }[];
494
+ }, {
495
+ sample_id: string;
496
+ project_id: string;
497
+ service: string;
498
+ environment: string;
499
+ session_id_hash: string;
500
+ visitor_id_hash: string | null;
501
+ analysis_tags: string[];
502
+ first_seen_at: string;
503
+ last_seen_at: string;
504
+ dimensions_summary: Record<string, string | number | boolean | Record<string, string | number | boolean | null> | null>;
505
+ schema_version: "analytics_journey_sample.v1";
506
+ events: {
507
+ event_id: string;
508
+ occurred_at: string;
509
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
510
+ route: {
511
+ path?: string | null | undefined;
512
+ normalized_path?: string | null | undefined;
513
+ title?: string | null | undefined;
514
+ } | null;
515
+ previous_route: {
516
+ path?: string | null | undefined;
517
+ normalized_path?: string | null | undefined;
518
+ title?: string | null | undefined;
519
+ } | null;
520
+ signal: {
521
+ action_key?: string | null | undefined;
522
+ funnel_key?: string | null | undefined;
523
+ step_key?: string | null | undefined;
524
+ conversion_key?: string | null | undefined;
525
+ marker_key?: string | null | undefined;
526
+ } | null;
527
+ trace_id: string | null;
528
+ deploy_id: string | null;
529
+ dimensions: Record<string, string | number | boolean | null>;
530
+ custom_dimensions: Record<string, string | number | boolean | null>;
531
+ }[];
532
+ }>;
533
+ export type AnalyticsJourneySampleArtifact = z.infer<typeof AnalyticsJourneySampleArtifactSchema>;
534
+ export declare const AnalyticsJourneySampleResponseSchema: z.ZodObject<{
535
+ sample: z.ZodObject<{
536
+ sample_id: z.ZodString;
537
+ project_id: z.ZodString;
538
+ service: z.ZodNullable<z.ZodString>;
539
+ environment: z.ZodNullable<z.ZodString>;
540
+ session_id_hash: z.ZodString;
541
+ visitor_id_hash: z.ZodNullable<z.ZodString>;
542
+ analysis_tags: z.ZodArray<z.ZodString, "many">;
543
+ first_seen_at: z.ZodString;
544
+ last_seen_at: z.ZodString;
545
+ dimensions_summary: z.ZodRecord<z.ZodString, z.ZodUnknown>;
546
+ has_artifact: z.ZodBoolean;
547
+ expires_at: z.ZodString;
548
+ created_at: z.ZodString;
549
+ }, "strict", z.ZodTypeAny, {
550
+ sample_id: string;
551
+ project_id: string;
552
+ service: string | null;
553
+ environment: string | null;
554
+ session_id_hash: string;
555
+ visitor_id_hash: string | null;
556
+ analysis_tags: string[];
557
+ first_seen_at: string;
558
+ last_seen_at: string;
559
+ dimensions_summary: Record<string, unknown>;
560
+ has_artifact: boolean;
561
+ expires_at: string;
562
+ created_at: string;
563
+ }, {
564
+ sample_id: string;
565
+ project_id: string;
566
+ service: string | null;
567
+ environment: string | null;
568
+ session_id_hash: string;
569
+ visitor_id_hash: string | null;
570
+ analysis_tags: string[];
571
+ first_seen_at: string;
572
+ last_seen_at: string;
573
+ dimensions_summary: Record<string, unknown>;
574
+ has_artifact: boolean;
575
+ expires_at: string;
576
+ created_at: string;
577
+ }>;
578
+ journey: z.ZodEffects<z.ZodObject<{
579
+ schema_version: z.ZodLiteral<"analytics_journey_sample.v1">;
580
+ sample_id: z.ZodString;
581
+ project_id: z.ZodString;
582
+ service: z.ZodString;
583
+ environment: z.ZodString;
584
+ session_id_hash: z.ZodString;
585
+ visitor_id_hash: z.ZodNullable<z.ZodString>;
586
+ first_seen_at: z.ZodString;
587
+ last_seen_at: z.ZodString;
588
+ analysis_tags: z.ZodArray<z.ZodString, "many">;
589
+ dimensions_summary: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>, z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>]>>, Record<string, string | number | boolean | Record<string, string | number | boolean | null> | null>, Record<string, string | number | boolean | Record<string, string | number | boolean | null> | null>>;
590
+ events: z.ZodArray<z.ZodObject<{
591
+ event_id: z.ZodString;
592
+ occurred_at: z.ZodString;
593
+ kind: z.ZodEnum<["session_start", "page_view", "route_change", "action", "funnel_step", "conversion", "journey_marker", "session_summary"]>;
594
+ route: z.ZodNullable<z.ZodEffects<z.ZodObject<{
595
+ path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
596
+ normalized_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
597
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
598
+ }, "strict", z.ZodTypeAny, {
599
+ path?: string | null | undefined;
600
+ normalized_path?: string | null | undefined;
601
+ title?: string | null | undefined;
602
+ }, {
603
+ path?: string | null | undefined;
604
+ normalized_path?: string | null | undefined;
605
+ title?: string | null | undefined;
606
+ }>, {
607
+ path?: string | null | undefined;
608
+ normalized_path?: string | null | undefined;
609
+ title?: string | null | undefined;
610
+ }, {
611
+ path?: string | null | undefined;
612
+ normalized_path?: string | null | undefined;
613
+ title?: string | null | undefined;
614
+ }>>;
615
+ previous_route: z.ZodNullable<z.ZodEffects<z.ZodObject<{
616
+ path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
617
+ normalized_path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
618
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
619
+ }, "strict", z.ZodTypeAny, {
620
+ path?: string | null | undefined;
621
+ normalized_path?: string | null | undefined;
622
+ title?: string | null | undefined;
623
+ }, {
624
+ path?: string | null | undefined;
625
+ normalized_path?: string | null | undefined;
626
+ title?: string | null | undefined;
627
+ }>, {
628
+ path?: string | null | undefined;
629
+ normalized_path?: string | null | undefined;
630
+ title?: string | null | undefined;
631
+ }, {
632
+ path?: string | null | undefined;
633
+ normalized_path?: string | null | undefined;
634
+ title?: string | null | undefined;
635
+ }>>;
636
+ signal: z.ZodNullable<z.ZodObject<{
637
+ action_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
638
+ funnel_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
639
+ step_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
640
+ conversion_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
641
+ marker_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
642
+ }, "strict", z.ZodTypeAny, {
643
+ action_key?: string | null | undefined;
644
+ funnel_key?: string | null | undefined;
645
+ step_key?: string | null | undefined;
646
+ conversion_key?: string | null | undefined;
647
+ marker_key?: string | null | undefined;
648
+ }, {
649
+ action_key?: string | null | undefined;
650
+ funnel_key?: string | null | undefined;
651
+ step_key?: string | null | undefined;
652
+ conversion_key?: string | null | undefined;
653
+ marker_key?: string | null | undefined;
654
+ }>>;
655
+ trace_id: z.ZodNullable<z.ZodString>;
656
+ deploy_id: z.ZodNullable<z.ZodString>;
657
+ dimensions: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>;
658
+ custom_dimensions: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>;
659
+ }, "strict", z.ZodTypeAny, {
660
+ event_id: string;
661
+ occurred_at: string;
662
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
663
+ route: {
664
+ path?: string | null | undefined;
665
+ normalized_path?: string | null | undefined;
666
+ title?: string | null | undefined;
667
+ } | null;
668
+ previous_route: {
669
+ path?: string | null | undefined;
670
+ normalized_path?: string | null | undefined;
671
+ title?: string | null | undefined;
672
+ } | null;
673
+ signal: {
674
+ action_key?: string | null | undefined;
675
+ funnel_key?: string | null | undefined;
676
+ step_key?: string | null | undefined;
677
+ conversion_key?: string | null | undefined;
678
+ marker_key?: string | null | undefined;
679
+ } | null;
680
+ trace_id: string | null;
681
+ deploy_id: string | null;
682
+ dimensions: Record<string, string | number | boolean | null>;
683
+ custom_dimensions: Record<string, string | number | boolean | null>;
684
+ }, {
685
+ event_id: string;
686
+ occurred_at: string;
687
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
688
+ route: {
689
+ path?: string | null | undefined;
690
+ normalized_path?: string | null | undefined;
691
+ title?: string | null | undefined;
692
+ } | null;
693
+ previous_route: {
694
+ path?: string | null | undefined;
695
+ normalized_path?: string | null | undefined;
696
+ title?: string | null | undefined;
697
+ } | null;
698
+ signal: {
699
+ action_key?: string | null | undefined;
700
+ funnel_key?: string | null | undefined;
701
+ step_key?: string | null | undefined;
702
+ conversion_key?: string | null | undefined;
703
+ marker_key?: string | null | undefined;
704
+ } | null;
705
+ trace_id: string | null;
706
+ deploy_id: string | null;
707
+ dimensions: Record<string, string | number | boolean | null>;
708
+ custom_dimensions: Record<string, string | number | boolean | null>;
709
+ }>, "many">;
710
+ }, "strict", z.ZodTypeAny, {
711
+ sample_id: string;
712
+ project_id: string;
713
+ service: string;
714
+ environment: string;
715
+ session_id_hash: string;
716
+ visitor_id_hash: string | null;
717
+ analysis_tags: string[];
718
+ first_seen_at: string;
719
+ last_seen_at: string;
720
+ dimensions_summary: Record<string, string | number | boolean | Record<string, string | number | boolean | null> | null>;
721
+ schema_version: "analytics_journey_sample.v1";
722
+ events: {
723
+ event_id: string;
724
+ occurred_at: string;
725
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
726
+ route: {
727
+ path?: string | null | undefined;
728
+ normalized_path?: string | null | undefined;
729
+ title?: string | null | undefined;
730
+ } | null;
731
+ previous_route: {
732
+ path?: string | null | undefined;
733
+ normalized_path?: string | null | undefined;
734
+ title?: string | null | undefined;
735
+ } | null;
736
+ signal: {
737
+ action_key?: string | null | undefined;
738
+ funnel_key?: string | null | undefined;
739
+ step_key?: string | null | undefined;
740
+ conversion_key?: string | null | undefined;
741
+ marker_key?: string | null | undefined;
742
+ } | null;
743
+ trace_id: string | null;
744
+ deploy_id: string | null;
745
+ dimensions: Record<string, string | number | boolean | null>;
746
+ custom_dimensions: Record<string, string | number | boolean | null>;
747
+ }[];
748
+ }, {
749
+ sample_id: string;
750
+ project_id: string;
751
+ service: string;
752
+ environment: string;
753
+ session_id_hash: string;
754
+ visitor_id_hash: string | null;
755
+ analysis_tags: string[];
756
+ first_seen_at: string;
757
+ last_seen_at: string;
758
+ dimensions_summary: Record<string, string | number | boolean | Record<string, string | number | boolean | null> | null>;
759
+ schema_version: "analytics_journey_sample.v1";
760
+ events: {
761
+ event_id: string;
762
+ occurred_at: string;
763
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
764
+ route: {
765
+ path?: string | null | undefined;
766
+ normalized_path?: string | null | undefined;
767
+ title?: string | null | undefined;
768
+ } | null;
769
+ previous_route: {
770
+ path?: string | null | undefined;
771
+ normalized_path?: string | null | undefined;
772
+ title?: string | null | undefined;
773
+ } | null;
774
+ signal: {
775
+ action_key?: string | null | undefined;
776
+ funnel_key?: string | null | undefined;
777
+ step_key?: string | null | undefined;
778
+ conversion_key?: string | null | undefined;
779
+ marker_key?: string | null | undefined;
780
+ } | null;
781
+ trace_id: string | null;
782
+ deploy_id: string | null;
783
+ dimensions: Record<string, string | number | boolean | null>;
784
+ custom_dimensions: Record<string, string | number | boolean | null>;
785
+ }[];
786
+ }>, {
787
+ sample_id: string;
788
+ project_id: string;
789
+ service: string;
790
+ environment: string;
791
+ session_id_hash: string;
792
+ visitor_id_hash: string | null;
793
+ analysis_tags: string[];
794
+ first_seen_at: string;
795
+ last_seen_at: string;
796
+ dimensions_summary: Record<string, string | number | boolean | Record<string, string | number | boolean | null> | null>;
797
+ schema_version: "analytics_journey_sample.v1";
798
+ events: {
799
+ event_id: string;
800
+ occurred_at: string;
801
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
802
+ route: {
803
+ path?: string | null | undefined;
804
+ normalized_path?: string | null | undefined;
805
+ title?: string | null | undefined;
806
+ } | null;
807
+ previous_route: {
808
+ path?: string | null | undefined;
809
+ normalized_path?: string | null | undefined;
810
+ title?: string | null | undefined;
811
+ } | null;
812
+ signal: {
813
+ action_key?: string | null | undefined;
814
+ funnel_key?: string | null | undefined;
815
+ step_key?: string | null | undefined;
816
+ conversion_key?: string | null | undefined;
817
+ marker_key?: string | null | undefined;
818
+ } | null;
819
+ trace_id: string | null;
820
+ deploy_id: string | null;
821
+ dimensions: Record<string, string | number | boolean | null>;
822
+ custom_dimensions: Record<string, string | number | boolean | null>;
823
+ }[];
824
+ }, {
825
+ sample_id: string;
826
+ project_id: string;
827
+ service: string;
828
+ environment: string;
829
+ session_id_hash: string;
830
+ visitor_id_hash: string | null;
831
+ analysis_tags: string[];
832
+ first_seen_at: string;
833
+ last_seen_at: string;
834
+ dimensions_summary: Record<string, string | number | boolean | Record<string, string | number | boolean | null> | null>;
835
+ schema_version: "analytics_journey_sample.v1";
836
+ events: {
837
+ event_id: string;
838
+ occurred_at: string;
839
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
840
+ route: {
841
+ path?: string | null | undefined;
842
+ normalized_path?: string | null | undefined;
843
+ title?: string | null | undefined;
844
+ } | null;
845
+ previous_route: {
846
+ path?: string | null | undefined;
847
+ normalized_path?: string | null | undefined;
848
+ title?: string | null | undefined;
849
+ } | null;
850
+ signal: {
851
+ action_key?: string | null | undefined;
852
+ funnel_key?: string | null | undefined;
853
+ step_key?: string | null | undefined;
854
+ conversion_key?: string | null | undefined;
855
+ marker_key?: string | null | undefined;
856
+ } | null;
857
+ trace_id: string | null;
858
+ deploy_id: string | null;
859
+ dimensions: Record<string, string | number | boolean | null>;
860
+ custom_dimensions: Record<string, string | number | boolean | null>;
861
+ }[];
862
+ }>;
863
+ }, "strict", z.ZodTypeAny, {
864
+ sample: {
865
+ sample_id: string;
866
+ project_id: string;
867
+ service: string | null;
868
+ environment: string | null;
869
+ session_id_hash: string;
870
+ visitor_id_hash: string | null;
871
+ analysis_tags: string[];
872
+ first_seen_at: string;
873
+ last_seen_at: string;
874
+ dimensions_summary: Record<string, unknown>;
875
+ has_artifact: boolean;
876
+ expires_at: string;
877
+ created_at: string;
878
+ };
879
+ journey: {
880
+ sample_id: string;
881
+ project_id: string;
882
+ service: string;
883
+ environment: string;
884
+ session_id_hash: string;
885
+ visitor_id_hash: string | null;
886
+ analysis_tags: string[];
887
+ first_seen_at: string;
888
+ last_seen_at: string;
889
+ dimensions_summary: Record<string, string | number | boolean | Record<string, string | number | boolean | null> | null>;
890
+ schema_version: "analytics_journey_sample.v1";
891
+ events: {
892
+ event_id: string;
893
+ occurred_at: string;
894
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
895
+ route: {
896
+ path?: string | null | undefined;
897
+ normalized_path?: string | null | undefined;
898
+ title?: string | null | undefined;
899
+ } | null;
900
+ previous_route: {
901
+ path?: string | null | undefined;
902
+ normalized_path?: string | null | undefined;
903
+ title?: string | null | undefined;
904
+ } | null;
905
+ signal: {
906
+ action_key?: string | null | undefined;
907
+ funnel_key?: string | null | undefined;
908
+ step_key?: string | null | undefined;
909
+ conversion_key?: string | null | undefined;
910
+ marker_key?: string | null | undefined;
911
+ } | null;
912
+ trace_id: string | null;
913
+ deploy_id: string | null;
914
+ dimensions: Record<string, string | number | boolean | null>;
915
+ custom_dimensions: Record<string, string | number | boolean | null>;
916
+ }[];
917
+ };
918
+ }, {
919
+ sample: {
920
+ sample_id: string;
921
+ project_id: string;
922
+ service: string | null;
923
+ environment: string | null;
924
+ session_id_hash: string;
925
+ visitor_id_hash: string | null;
926
+ analysis_tags: string[];
927
+ first_seen_at: string;
928
+ last_seen_at: string;
929
+ dimensions_summary: Record<string, unknown>;
930
+ has_artifact: boolean;
931
+ expires_at: string;
932
+ created_at: string;
933
+ };
934
+ journey: {
935
+ sample_id: string;
936
+ project_id: string;
937
+ service: string;
938
+ environment: string;
939
+ session_id_hash: string;
940
+ visitor_id_hash: string | null;
941
+ analysis_tags: string[];
942
+ first_seen_at: string;
943
+ last_seen_at: string;
944
+ dimensions_summary: Record<string, string | number | boolean | Record<string, string | number | boolean | null> | null>;
945
+ schema_version: "analytics_journey_sample.v1";
946
+ events: {
947
+ event_id: string;
948
+ occurred_at: string;
949
+ kind: "session_start" | "page_view" | "route_change" | "action" | "funnel_step" | "conversion" | "journey_marker" | "session_summary";
950
+ route: {
951
+ path?: string | null | undefined;
952
+ normalized_path?: string | null | undefined;
953
+ title?: string | null | undefined;
954
+ } | null;
955
+ previous_route: {
956
+ path?: string | null | undefined;
957
+ normalized_path?: string | null | undefined;
958
+ title?: string | null | undefined;
959
+ } | null;
960
+ signal: {
961
+ action_key?: string | null | undefined;
962
+ funnel_key?: string | null | undefined;
963
+ step_key?: string | null | undefined;
964
+ conversion_key?: string | null | undefined;
965
+ marker_key?: string | null | undefined;
966
+ } | null;
967
+ trace_id: string | null;
968
+ deploy_id: string | null;
969
+ dimensions: Record<string, string | number | boolean | null>;
970
+ custom_dimensions: Record<string, string | number | boolean | null>;
971
+ }[];
972
+ };
973
+ }>;
974
+ export type AnalyticsJourneySampleResponse = z.infer<typeof AnalyticsJourneySampleResponseSchema>;
975
+ //# sourceMappingURL=analytics-journey-samples.d.ts.map