@debugbundle/shared-types 0.1.0-next.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.
@@ -0,0 +1,3204 @@
1
+ import { z } from "zod";
2
+ export declare const EventTypeValues: readonly ["backend_exception", "request_event", "log_event", "frontend_breadcrumb", "frontend_exception", "deploy_metadata", "error_suppressed", "probe_event"];
3
+ export declare const EventTypeSchema: z.ZodEnum<["backend_exception", "request_event", "log_event", "frontend_breadcrumb", "frontend_exception", "deploy_metadata", "error_suppressed", "probe_event"]>;
4
+ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
5
+ schema_version: z.ZodString;
6
+ event_id: z.ZodString;
7
+ project_token: z.ZodOptional<z.ZodString>;
8
+ project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ sdk_name: z.ZodString;
10
+ sdk_version: z.ZodString;
11
+ service: z.ZodObject<{
12
+ name: z.ZodString;
13
+ runtime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ environment: z.ZodString;
16
+ }, "strip", z.ZodTypeAny, {
17
+ name: string;
18
+ environment: string;
19
+ runtime?: string | null | undefined;
20
+ framework?: string | null | undefined;
21
+ }, {
22
+ name: string;
23
+ environment: string;
24
+ runtime?: string | null | undefined;
25
+ framework?: string | null | undefined;
26
+ }>;
27
+ occurred_at: z.ZodString;
28
+ correlation: z.ZodOptional<z.ZodObject<{
29
+ request_id: z.ZodNullable<z.ZodString>;
30
+ trace_id: z.ZodNullable<z.ZodString>;
31
+ session_id: z.ZodNullable<z.ZodString>;
32
+ user_id_hash: z.ZodNullable<z.ZodString>;
33
+ }, "strict", z.ZodTypeAny, {
34
+ request_id: string | null;
35
+ trace_id: string | null;
36
+ session_id: string | null;
37
+ user_id_hash: string | null;
38
+ }, {
39
+ request_id: string | null;
40
+ trace_id: string | null;
41
+ session_id: string | null;
42
+ user_id_hash: string | null;
43
+ }>>;
44
+ } & {
45
+ event_type: z.ZodLiteral<"backend_exception">;
46
+ payload: z.ZodObject<{
47
+ name: z.ZodString;
48
+ message: z.ZodString;
49
+ stack: z.ZodString;
50
+ handled: z.ZodBoolean;
51
+ request: z.ZodObject<{
52
+ method: z.ZodString;
53
+ path: z.ZodString;
54
+ query: z.ZodRecord<z.ZodString, z.ZodUnknown>;
55
+ headers: z.ZodRecord<z.ZodString, z.ZodUnknown>;
56
+ body: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ path: string;
59
+ method: string;
60
+ query: Record<string, unknown>;
61
+ headers: Record<string, unknown>;
62
+ body?: unknown;
63
+ }, {
64
+ path: string;
65
+ method: string;
66
+ query: Record<string, unknown>;
67
+ headers: Record<string, unknown>;
68
+ body?: unknown;
69
+ }>;
70
+ response: z.ZodObject<{
71
+ status_code: z.ZodNumber;
72
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
73
+ body: z.ZodOptional<z.ZodUnknown>;
74
+ }, "strip", z.ZodTypeAny, {
75
+ status_code: number;
76
+ headers?: Record<string, unknown> | undefined;
77
+ body?: unknown;
78
+ }, {
79
+ status_code: number;
80
+ headers?: Record<string, unknown> | undefined;
81
+ body?: unknown;
82
+ }>;
83
+ runtime: z.ZodObject<{
84
+ version: z.ZodString;
85
+ }, "strip", z.ZodTypeAny, {
86
+ version: string;
87
+ }, {
88
+ version: string;
89
+ }>;
90
+ probe_data: z.ZodOptional<z.ZodObject<{
91
+ version: z.ZodLiteral<1>;
92
+ items: z.ZodArray<z.ZodObject<{
93
+ label: z.ZodString;
94
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
95
+ timestamp: z.ZodString;
96
+ activation_id: z.ZodNullable<z.ZodString>;
97
+ }, "strict", z.ZodTypeAny, {
98
+ label: string;
99
+ data: Record<string, unknown>;
100
+ timestamp: string;
101
+ activation_id: string | null;
102
+ }, {
103
+ label: string;
104
+ data: Record<string, unknown>;
105
+ timestamp: string;
106
+ activation_id: string | null;
107
+ }>, "many">;
108
+ }, "strict", z.ZodTypeAny, {
109
+ version: 1;
110
+ items: {
111
+ label: string;
112
+ data: Record<string, unknown>;
113
+ timestamp: string;
114
+ activation_id: string | null;
115
+ }[];
116
+ }, {
117
+ version: 1;
118
+ items: {
119
+ label: string;
120
+ data: Record<string, unknown>;
121
+ timestamp: string;
122
+ activation_id: string | null;
123
+ }[];
124
+ }>>;
125
+ }, "strict", z.ZodTypeAny, {
126
+ message: string;
127
+ name: string;
128
+ runtime: {
129
+ version: string;
130
+ };
131
+ stack: string;
132
+ handled: boolean;
133
+ request: {
134
+ path: string;
135
+ method: string;
136
+ query: Record<string, unknown>;
137
+ headers: Record<string, unknown>;
138
+ body?: unknown;
139
+ };
140
+ response: {
141
+ status_code: number;
142
+ headers?: Record<string, unknown> | undefined;
143
+ body?: unknown;
144
+ };
145
+ probe_data?: {
146
+ version: 1;
147
+ items: {
148
+ label: string;
149
+ data: Record<string, unknown>;
150
+ timestamp: string;
151
+ activation_id: string | null;
152
+ }[];
153
+ } | undefined;
154
+ }, {
155
+ message: string;
156
+ name: string;
157
+ runtime: {
158
+ version: string;
159
+ };
160
+ stack: string;
161
+ handled: boolean;
162
+ request: {
163
+ path: string;
164
+ method: string;
165
+ query: Record<string, unknown>;
166
+ headers: Record<string, unknown>;
167
+ body?: unknown;
168
+ };
169
+ response: {
170
+ status_code: number;
171
+ headers?: Record<string, unknown> | undefined;
172
+ body?: unknown;
173
+ };
174
+ probe_data?: {
175
+ version: 1;
176
+ items: {
177
+ label: string;
178
+ data: Record<string, unknown>;
179
+ timestamp: string;
180
+ activation_id: string | null;
181
+ }[];
182
+ } | undefined;
183
+ }>;
184
+ }, "strict", z.ZodTypeAny, {
185
+ schema_version: string;
186
+ event_id: string;
187
+ event_type: "backend_exception";
188
+ sdk_name: string;
189
+ sdk_version: string;
190
+ service: {
191
+ name: string;
192
+ environment: string;
193
+ runtime?: string | null | undefined;
194
+ framework?: string | null | undefined;
195
+ };
196
+ occurred_at: string;
197
+ payload: {
198
+ message: string;
199
+ name: string;
200
+ runtime: {
201
+ version: string;
202
+ };
203
+ stack: string;
204
+ handled: boolean;
205
+ request: {
206
+ path: string;
207
+ method: string;
208
+ query: Record<string, unknown>;
209
+ headers: Record<string, unknown>;
210
+ body?: unknown;
211
+ };
212
+ response: {
213
+ status_code: number;
214
+ headers?: Record<string, unknown> | undefined;
215
+ body?: unknown;
216
+ };
217
+ probe_data?: {
218
+ version: 1;
219
+ items: {
220
+ label: string;
221
+ data: Record<string, unknown>;
222
+ timestamp: string;
223
+ activation_id: string | null;
224
+ }[];
225
+ } | undefined;
226
+ };
227
+ project_id?: string | null | undefined;
228
+ project_token?: string | undefined;
229
+ correlation?: {
230
+ request_id: string | null;
231
+ trace_id: string | null;
232
+ session_id: string | null;
233
+ user_id_hash: string | null;
234
+ } | undefined;
235
+ }, {
236
+ schema_version: string;
237
+ event_id: string;
238
+ event_type: "backend_exception";
239
+ sdk_name: string;
240
+ sdk_version: string;
241
+ service: {
242
+ name: string;
243
+ environment: string;
244
+ runtime?: string | null | undefined;
245
+ framework?: string | null | undefined;
246
+ };
247
+ occurred_at: string;
248
+ payload: {
249
+ message: string;
250
+ name: string;
251
+ runtime: {
252
+ version: string;
253
+ };
254
+ stack: string;
255
+ handled: boolean;
256
+ request: {
257
+ path: string;
258
+ method: string;
259
+ query: Record<string, unknown>;
260
+ headers: Record<string, unknown>;
261
+ body?: unknown;
262
+ };
263
+ response: {
264
+ status_code: number;
265
+ headers?: Record<string, unknown> | undefined;
266
+ body?: unknown;
267
+ };
268
+ probe_data?: {
269
+ version: 1;
270
+ items: {
271
+ label: string;
272
+ data: Record<string, unknown>;
273
+ timestamp: string;
274
+ activation_id: string | null;
275
+ }[];
276
+ } | undefined;
277
+ };
278
+ project_id?: string | null | undefined;
279
+ project_token?: string | undefined;
280
+ correlation?: {
281
+ request_id: string | null;
282
+ trace_id: string | null;
283
+ session_id: string | null;
284
+ user_id_hash: string | null;
285
+ } | undefined;
286
+ }>, z.ZodObject<{
287
+ schema_version: z.ZodString;
288
+ event_id: z.ZodString;
289
+ project_token: z.ZodOptional<z.ZodString>;
290
+ project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
291
+ sdk_name: z.ZodString;
292
+ sdk_version: z.ZodString;
293
+ service: z.ZodObject<{
294
+ name: z.ZodString;
295
+ runtime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
296
+ framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
297
+ environment: z.ZodString;
298
+ }, "strip", z.ZodTypeAny, {
299
+ name: string;
300
+ environment: string;
301
+ runtime?: string | null | undefined;
302
+ framework?: string | null | undefined;
303
+ }, {
304
+ name: string;
305
+ environment: string;
306
+ runtime?: string | null | undefined;
307
+ framework?: string | null | undefined;
308
+ }>;
309
+ occurred_at: z.ZodString;
310
+ correlation: z.ZodOptional<z.ZodObject<{
311
+ request_id: z.ZodNullable<z.ZodString>;
312
+ trace_id: z.ZodNullable<z.ZodString>;
313
+ session_id: z.ZodNullable<z.ZodString>;
314
+ user_id_hash: z.ZodNullable<z.ZodString>;
315
+ }, "strict", z.ZodTypeAny, {
316
+ request_id: string | null;
317
+ trace_id: string | null;
318
+ session_id: string | null;
319
+ user_id_hash: string | null;
320
+ }, {
321
+ request_id: string | null;
322
+ trace_id: string | null;
323
+ session_id: string | null;
324
+ user_id_hash: string | null;
325
+ }>>;
326
+ } & {
327
+ event_type: z.ZodLiteral<"request_event">;
328
+ payload: z.ZodObject<{
329
+ method: z.ZodString;
330
+ path: z.ZodString;
331
+ query: z.ZodRecord<z.ZodString, z.ZodUnknown>;
332
+ headers: z.ZodRecord<z.ZodString, z.ZodUnknown>;
333
+ body: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
334
+ response_status: z.ZodNumber;
335
+ duration_ms: z.ZodNumber;
336
+ route_template: z.ZodOptional<z.ZodNullable<z.ZodString>>;
337
+ response_headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
338
+ response_body: z.ZodOptional<z.ZodUnknown>;
339
+ }, "strict", z.ZodTypeAny, {
340
+ path: string;
341
+ response_status: number;
342
+ method: string;
343
+ query: Record<string, unknown>;
344
+ headers: Record<string, unknown>;
345
+ duration_ms: number;
346
+ body?: unknown;
347
+ route_template?: string | null | undefined;
348
+ response_headers?: Record<string, unknown> | undefined;
349
+ response_body?: unknown;
350
+ }, {
351
+ path: string;
352
+ response_status: number;
353
+ method: string;
354
+ query: Record<string, unknown>;
355
+ headers: Record<string, unknown>;
356
+ duration_ms: number;
357
+ body?: unknown;
358
+ route_template?: string | null | undefined;
359
+ response_headers?: Record<string, unknown> | undefined;
360
+ response_body?: unknown;
361
+ }>;
362
+ }, "strict", z.ZodTypeAny, {
363
+ schema_version: string;
364
+ event_id: string;
365
+ event_type: "request_event";
366
+ sdk_name: string;
367
+ sdk_version: string;
368
+ service: {
369
+ name: string;
370
+ environment: string;
371
+ runtime?: string | null | undefined;
372
+ framework?: string | null | undefined;
373
+ };
374
+ occurred_at: string;
375
+ payload: {
376
+ path: string;
377
+ response_status: number;
378
+ method: string;
379
+ query: Record<string, unknown>;
380
+ headers: Record<string, unknown>;
381
+ duration_ms: number;
382
+ body?: unknown;
383
+ route_template?: string | null | undefined;
384
+ response_headers?: Record<string, unknown> | undefined;
385
+ response_body?: unknown;
386
+ };
387
+ project_id?: string | null | undefined;
388
+ project_token?: string | undefined;
389
+ correlation?: {
390
+ request_id: string | null;
391
+ trace_id: string | null;
392
+ session_id: string | null;
393
+ user_id_hash: string | null;
394
+ } | undefined;
395
+ }, {
396
+ schema_version: string;
397
+ event_id: string;
398
+ event_type: "request_event";
399
+ sdk_name: string;
400
+ sdk_version: string;
401
+ service: {
402
+ name: string;
403
+ environment: string;
404
+ runtime?: string | null | undefined;
405
+ framework?: string | null | undefined;
406
+ };
407
+ occurred_at: string;
408
+ payload: {
409
+ path: string;
410
+ response_status: number;
411
+ method: string;
412
+ query: Record<string, unknown>;
413
+ headers: Record<string, unknown>;
414
+ duration_ms: number;
415
+ body?: unknown;
416
+ route_template?: string | null | undefined;
417
+ response_headers?: Record<string, unknown> | undefined;
418
+ response_body?: unknown;
419
+ };
420
+ project_id?: string | null | undefined;
421
+ project_token?: string | undefined;
422
+ correlation?: {
423
+ request_id: string | null;
424
+ trace_id: string | null;
425
+ session_id: string | null;
426
+ user_id_hash: string | null;
427
+ } | undefined;
428
+ }>, z.ZodObject<{
429
+ schema_version: z.ZodString;
430
+ event_id: z.ZodString;
431
+ project_token: z.ZodOptional<z.ZodString>;
432
+ project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
433
+ sdk_name: z.ZodString;
434
+ sdk_version: z.ZodString;
435
+ service: z.ZodObject<{
436
+ name: z.ZodString;
437
+ runtime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
438
+ framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
439
+ environment: z.ZodString;
440
+ }, "strip", z.ZodTypeAny, {
441
+ name: string;
442
+ environment: string;
443
+ runtime?: string | null | undefined;
444
+ framework?: string | null | undefined;
445
+ }, {
446
+ name: string;
447
+ environment: string;
448
+ runtime?: string | null | undefined;
449
+ framework?: string | null | undefined;
450
+ }>;
451
+ occurred_at: z.ZodString;
452
+ correlation: z.ZodOptional<z.ZodObject<{
453
+ request_id: z.ZodNullable<z.ZodString>;
454
+ trace_id: z.ZodNullable<z.ZodString>;
455
+ session_id: z.ZodNullable<z.ZodString>;
456
+ user_id_hash: z.ZodNullable<z.ZodString>;
457
+ }, "strict", z.ZodTypeAny, {
458
+ request_id: string | null;
459
+ trace_id: string | null;
460
+ session_id: string | null;
461
+ user_id_hash: string | null;
462
+ }, {
463
+ request_id: string | null;
464
+ trace_id: string | null;
465
+ session_id: string | null;
466
+ user_id_hash: string | null;
467
+ }>>;
468
+ } & {
469
+ event_type: z.ZodLiteral<"log_event">;
470
+ payload: z.ZodObject<{
471
+ level: z.ZodString;
472
+ message: z.ZodString;
473
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
474
+ }, "strict", z.ZodTypeAny, {
475
+ message: string;
476
+ level: string;
477
+ attributes: Record<string, unknown>;
478
+ }, {
479
+ message: string;
480
+ level: string;
481
+ attributes: Record<string, unknown>;
482
+ }>;
483
+ }, "strict", z.ZodTypeAny, {
484
+ schema_version: string;
485
+ event_id: string;
486
+ event_type: "log_event";
487
+ sdk_name: string;
488
+ sdk_version: string;
489
+ service: {
490
+ name: string;
491
+ environment: string;
492
+ runtime?: string | null | undefined;
493
+ framework?: string | null | undefined;
494
+ };
495
+ occurred_at: string;
496
+ payload: {
497
+ message: string;
498
+ level: string;
499
+ attributes: Record<string, unknown>;
500
+ };
501
+ project_id?: string | null | undefined;
502
+ project_token?: string | undefined;
503
+ correlation?: {
504
+ request_id: string | null;
505
+ trace_id: string | null;
506
+ session_id: string | null;
507
+ user_id_hash: string | null;
508
+ } | undefined;
509
+ }, {
510
+ schema_version: string;
511
+ event_id: string;
512
+ event_type: "log_event";
513
+ sdk_name: string;
514
+ sdk_version: string;
515
+ service: {
516
+ name: string;
517
+ environment: string;
518
+ runtime?: string | null | undefined;
519
+ framework?: string | null | undefined;
520
+ };
521
+ occurred_at: string;
522
+ payload: {
523
+ message: string;
524
+ level: string;
525
+ attributes: Record<string, unknown>;
526
+ };
527
+ project_id?: string | null | undefined;
528
+ project_token?: string | undefined;
529
+ correlation?: {
530
+ request_id: string | null;
531
+ trace_id: string | null;
532
+ session_id: string | null;
533
+ user_id_hash: string | null;
534
+ } | undefined;
535
+ }>, z.ZodObject<{
536
+ schema_version: z.ZodString;
537
+ event_id: z.ZodString;
538
+ project_token: z.ZodOptional<z.ZodString>;
539
+ project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
540
+ sdk_name: z.ZodString;
541
+ sdk_version: z.ZodString;
542
+ service: z.ZodObject<{
543
+ name: z.ZodString;
544
+ runtime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
545
+ framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
546
+ environment: z.ZodString;
547
+ }, "strip", z.ZodTypeAny, {
548
+ name: string;
549
+ environment: string;
550
+ runtime?: string | null | undefined;
551
+ framework?: string | null | undefined;
552
+ }, {
553
+ name: string;
554
+ environment: string;
555
+ runtime?: string | null | undefined;
556
+ framework?: string | null | undefined;
557
+ }>;
558
+ occurred_at: z.ZodString;
559
+ correlation: z.ZodOptional<z.ZodObject<{
560
+ request_id: z.ZodNullable<z.ZodString>;
561
+ trace_id: z.ZodNullable<z.ZodString>;
562
+ session_id: z.ZodNullable<z.ZodString>;
563
+ user_id_hash: z.ZodNullable<z.ZodString>;
564
+ }, "strict", z.ZodTypeAny, {
565
+ request_id: string | null;
566
+ trace_id: string | null;
567
+ session_id: string | null;
568
+ user_id_hash: string | null;
569
+ }, {
570
+ request_id: string | null;
571
+ trace_id: string | null;
572
+ session_id: string | null;
573
+ user_id_hash: string | null;
574
+ }>>;
575
+ } & {
576
+ event_type: z.ZodLiteral<"frontend_breadcrumb">;
577
+ payload: z.ZodObject<{
578
+ breadcrumb_type: z.ZodEnum<["route_change", "click", "form_submit", "console_log", "network_request"]>;
579
+ route: z.ZodOptional<z.ZodNullable<z.ZodString>>;
580
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
581
+ }, "strict", z.ZodTypeAny, {
582
+ data: Record<string, unknown>;
583
+ breadcrumb_type: "route_change" | "click" | "form_submit" | "console_log" | "network_request";
584
+ route?: string | null | undefined;
585
+ }, {
586
+ data: Record<string, unknown>;
587
+ breadcrumb_type: "route_change" | "click" | "form_submit" | "console_log" | "network_request";
588
+ route?: string | null | undefined;
589
+ }>;
590
+ }, "strict", z.ZodTypeAny, {
591
+ schema_version: string;
592
+ event_id: string;
593
+ event_type: "frontend_breadcrumb";
594
+ sdk_name: string;
595
+ sdk_version: string;
596
+ service: {
597
+ name: string;
598
+ environment: string;
599
+ runtime?: string | null | undefined;
600
+ framework?: string | null | undefined;
601
+ };
602
+ occurred_at: string;
603
+ payload: {
604
+ data: Record<string, unknown>;
605
+ breadcrumb_type: "route_change" | "click" | "form_submit" | "console_log" | "network_request";
606
+ route?: string | null | undefined;
607
+ };
608
+ project_id?: string | null | undefined;
609
+ project_token?: string | undefined;
610
+ correlation?: {
611
+ request_id: string | null;
612
+ trace_id: string | null;
613
+ session_id: string | null;
614
+ user_id_hash: string | null;
615
+ } | undefined;
616
+ }, {
617
+ schema_version: string;
618
+ event_id: string;
619
+ event_type: "frontend_breadcrumb";
620
+ sdk_name: string;
621
+ sdk_version: string;
622
+ service: {
623
+ name: string;
624
+ environment: string;
625
+ runtime?: string | null | undefined;
626
+ framework?: string | null | undefined;
627
+ };
628
+ occurred_at: string;
629
+ payload: {
630
+ data: Record<string, unknown>;
631
+ breadcrumb_type: "route_change" | "click" | "form_submit" | "console_log" | "network_request";
632
+ route?: string | null | undefined;
633
+ };
634
+ project_id?: string | null | undefined;
635
+ project_token?: string | undefined;
636
+ correlation?: {
637
+ request_id: string | null;
638
+ trace_id: string | null;
639
+ session_id: string | null;
640
+ user_id_hash: string | null;
641
+ } | undefined;
642
+ }>, z.ZodObject<{
643
+ schema_version: z.ZodString;
644
+ event_id: z.ZodString;
645
+ project_token: z.ZodOptional<z.ZodString>;
646
+ project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
647
+ sdk_name: z.ZodString;
648
+ sdk_version: z.ZodString;
649
+ service: z.ZodObject<{
650
+ name: z.ZodString;
651
+ runtime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
652
+ framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
653
+ environment: z.ZodString;
654
+ }, "strip", z.ZodTypeAny, {
655
+ name: string;
656
+ environment: string;
657
+ runtime?: string | null | undefined;
658
+ framework?: string | null | undefined;
659
+ }, {
660
+ name: string;
661
+ environment: string;
662
+ runtime?: string | null | undefined;
663
+ framework?: string | null | undefined;
664
+ }>;
665
+ occurred_at: z.ZodString;
666
+ correlation: z.ZodOptional<z.ZodObject<{
667
+ request_id: z.ZodNullable<z.ZodString>;
668
+ trace_id: z.ZodNullable<z.ZodString>;
669
+ session_id: z.ZodNullable<z.ZodString>;
670
+ user_id_hash: z.ZodNullable<z.ZodString>;
671
+ }, "strict", z.ZodTypeAny, {
672
+ request_id: string | null;
673
+ trace_id: string | null;
674
+ session_id: string | null;
675
+ user_id_hash: string | null;
676
+ }, {
677
+ request_id: string | null;
678
+ trace_id: string | null;
679
+ session_id: string | null;
680
+ user_id_hash: string | null;
681
+ }>>;
682
+ } & {
683
+ event_type: z.ZodLiteral<"frontend_exception">;
684
+ payload: z.ZodObject<{
685
+ name: z.ZodString;
686
+ message: z.ZodString;
687
+ stack: z.ZodString;
688
+ route: z.ZodOptional<z.ZodNullable<z.ZodString>>;
689
+ browser: z.ZodObject<{
690
+ name: z.ZodString;
691
+ version: z.ZodString;
692
+ }, "strip", z.ZodTypeAny, {
693
+ name: string;
694
+ version: string;
695
+ }, {
696
+ name: string;
697
+ version: string;
698
+ }>;
699
+ breadcrumbs: z.ZodOptional<z.ZodArray<z.ZodObject<{
700
+ breadcrumb_type: z.ZodEnum<["route_change", "click", "form_submit", "console_log", "network_request"]>;
701
+ route: z.ZodOptional<z.ZodNullable<z.ZodString>>;
702
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
703
+ } & {
704
+ ts: z.ZodString;
705
+ }, "strict", z.ZodTypeAny, {
706
+ data: Record<string, unknown>;
707
+ breadcrumb_type: "route_change" | "click" | "form_submit" | "console_log" | "network_request";
708
+ ts: string;
709
+ route?: string | null | undefined;
710
+ }, {
711
+ data: Record<string, unknown>;
712
+ breadcrumb_type: "route_change" | "click" | "form_submit" | "console_log" | "network_request";
713
+ ts: string;
714
+ route?: string | null | undefined;
715
+ }>, "many">>;
716
+ device: z.ZodOptional<z.ZodNullable<z.ZodObject<{
717
+ user_agent: z.ZodNullable<z.ZodString>;
718
+ os: z.ZodObject<{
719
+ name: z.ZodNullable<z.ZodString>;
720
+ version: z.ZodNullable<z.ZodString>;
721
+ }, "strip", z.ZodTypeAny, {
722
+ name: string | null;
723
+ version: string | null;
724
+ }, {
725
+ name: string | null;
726
+ version: string | null;
727
+ }>;
728
+ device_type: z.ZodEnum<["desktop", "mobile", "tablet", "unknown"]>;
729
+ screen: z.ZodObject<{
730
+ width: z.ZodNumber;
731
+ height: z.ZodNumber;
732
+ }, "strip", z.ZodTypeAny, {
733
+ width: number;
734
+ height: number;
735
+ }, {
736
+ width: number;
737
+ height: number;
738
+ }>;
739
+ viewport: z.ZodObject<{
740
+ width: z.ZodNumber;
741
+ height: z.ZodNumber;
742
+ }, "strip", z.ZodTypeAny, {
743
+ width: number;
744
+ height: number;
745
+ }, {
746
+ width: number;
747
+ height: number;
748
+ }>;
749
+ device_pixel_ratio: z.ZodNullable<z.ZodNumber>;
750
+ touch_capable: z.ZodNullable<z.ZodBoolean>;
751
+ language: z.ZodNullable<z.ZodString>;
752
+ connection_type: z.ZodNullable<z.ZodString>;
753
+ color_scheme_preference: z.ZodNullable<z.ZodEnum<["light", "dark", "no-preference"]>>;
754
+ }, "strict", z.ZodTypeAny, {
755
+ user_agent: string | null;
756
+ os: {
757
+ name: string | null;
758
+ version: string | null;
759
+ };
760
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
761
+ screen: {
762
+ width: number;
763
+ height: number;
764
+ };
765
+ viewport: {
766
+ width: number;
767
+ height: number;
768
+ };
769
+ device_pixel_ratio: number | null;
770
+ touch_capable: boolean | null;
771
+ language: string | null;
772
+ connection_type: string | null;
773
+ color_scheme_preference: "light" | "dark" | "no-preference" | null;
774
+ }, {
775
+ user_agent: string | null;
776
+ os: {
777
+ name: string | null;
778
+ version: string | null;
779
+ };
780
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
781
+ screen: {
782
+ width: number;
783
+ height: number;
784
+ };
785
+ viewport: {
786
+ width: number;
787
+ height: number;
788
+ };
789
+ device_pixel_ratio: number | null;
790
+ touch_capable: boolean | null;
791
+ language: string | null;
792
+ connection_type: string | null;
793
+ color_scheme_preference: "light" | "dark" | "no-preference" | null;
794
+ }>>>;
795
+ dom_context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
796
+ mode: z.ZodLiteral<"lightweight">;
797
+ html_excerpt: z.ZodString;
798
+ }, "strip", z.ZodTypeAny, {
799
+ mode: "lightweight";
800
+ html_excerpt: string;
801
+ }, {
802
+ mode: "lightweight";
803
+ html_excerpt: string;
804
+ }>>>;
805
+ probe_data: z.ZodOptional<z.ZodObject<{
806
+ version: z.ZodLiteral<1>;
807
+ items: z.ZodArray<z.ZodObject<{
808
+ label: z.ZodString;
809
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
810
+ timestamp: z.ZodString;
811
+ activation_id: z.ZodNullable<z.ZodString>;
812
+ }, "strict", z.ZodTypeAny, {
813
+ label: string;
814
+ data: Record<string, unknown>;
815
+ timestamp: string;
816
+ activation_id: string | null;
817
+ }, {
818
+ label: string;
819
+ data: Record<string, unknown>;
820
+ timestamp: string;
821
+ activation_id: string | null;
822
+ }>, "many">;
823
+ }, "strict", z.ZodTypeAny, {
824
+ version: 1;
825
+ items: {
826
+ label: string;
827
+ data: Record<string, unknown>;
828
+ timestamp: string;
829
+ activation_id: string | null;
830
+ }[];
831
+ }, {
832
+ version: 1;
833
+ items: {
834
+ label: string;
835
+ data: Record<string, unknown>;
836
+ timestamp: string;
837
+ activation_id: string | null;
838
+ }[];
839
+ }>>;
840
+ }, "strict", z.ZodTypeAny, {
841
+ message: string;
842
+ name: string;
843
+ stack: string;
844
+ browser: {
845
+ name: string;
846
+ version: string;
847
+ };
848
+ probe_data?: {
849
+ version: 1;
850
+ items: {
851
+ label: string;
852
+ data: Record<string, unknown>;
853
+ timestamp: string;
854
+ activation_id: string | null;
855
+ }[];
856
+ } | undefined;
857
+ route?: string | null | undefined;
858
+ breadcrumbs?: {
859
+ data: Record<string, unknown>;
860
+ breadcrumb_type: "route_change" | "click" | "form_submit" | "console_log" | "network_request";
861
+ ts: string;
862
+ route?: string | null | undefined;
863
+ }[] | undefined;
864
+ device?: {
865
+ user_agent: string | null;
866
+ os: {
867
+ name: string | null;
868
+ version: string | null;
869
+ };
870
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
871
+ screen: {
872
+ width: number;
873
+ height: number;
874
+ };
875
+ viewport: {
876
+ width: number;
877
+ height: number;
878
+ };
879
+ device_pixel_ratio: number | null;
880
+ touch_capable: boolean | null;
881
+ language: string | null;
882
+ connection_type: string | null;
883
+ color_scheme_preference: "light" | "dark" | "no-preference" | null;
884
+ } | null | undefined;
885
+ dom_context?: {
886
+ mode: "lightweight";
887
+ html_excerpt: string;
888
+ } | null | undefined;
889
+ }, {
890
+ message: string;
891
+ name: string;
892
+ stack: string;
893
+ browser: {
894
+ name: string;
895
+ version: string;
896
+ };
897
+ probe_data?: {
898
+ version: 1;
899
+ items: {
900
+ label: string;
901
+ data: Record<string, unknown>;
902
+ timestamp: string;
903
+ activation_id: string | null;
904
+ }[];
905
+ } | undefined;
906
+ route?: string | null | undefined;
907
+ breadcrumbs?: {
908
+ data: Record<string, unknown>;
909
+ breadcrumb_type: "route_change" | "click" | "form_submit" | "console_log" | "network_request";
910
+ ts: string;
911
+ route?: string | null | undefined;
912
+ }[] | undefined;
913
+ device?: {
914
+ user_agent: string | null;
915
+ os: {
916
+ name: string | null;
917
+ version: string | null;
918
+ };
919
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
920
+ screen: {
921
+ width: number;
922
+ height: number;
923
+ };
924
+ viewport: {
925
+ width: number;
926
+ height: number;
927
+ };
928
+ device_pixel_ratio: number | null;
929
+ touch_capable: boolean | null;
930
+ language: string | null;
931
+ connection_type: string | null;
932
+ color_scheme_preference: "light" | "dark" | "no-preference" | null;
933
+ } | null | undefined;
934
+ dom_context?: {
935
+ mode: "lightweight";
936
+ html_excerpt: string;
937
+ } | null | undefined;
938
+ }>;
939
+ }, "strict", z.ZodTypeAny, {
940
+ schema_version: string;
941
+ event_id: string;
942
+ event_type: "frontend_exception";
943
+ sdk_name: string;
944
+ sdk_version: string;
945
+ service: {
946
+ name: string;
947
+ environment: string;
948
+ runtime?: string | null | undefined;
949
+ framework?: string | null | undefined;
950
+ };
951
+ occurred_at: string;
952
+ payload: {
953
+ message: string;
954
+ name: string;
955
+ stack: string;
956
+ browser: {
957
+ name: string;
958
+ version: string;
959
+ };
960
+ probe_data?: {
961
+ version: 1;
962
+ items: {
963
+ label: string;
964
+ data: Record<string, unknown>;
965
+ timestamp: string;
966
+ activation_id: string | null;
967
+ }[];
968
+ } | undefined;
969
+ route?: string | null | undefined;
970
+ breadcrumbs?: {
971
+ data: Record<string, unknown>;
972
+ breadcrumb_type: "route_change" | "click" | "form_submit" | "console_log" | "network_request";
973
+ ts: string;
974
+ route?: string | null | undefined;
975
+ }[] | undefined;
976
+ device?: {
977
+ user_agent: string | null;
978
+ os: {
979
+ name: string | null;
980
+ version: string | null;
981
+ };
982
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
983
+ screen: {
984
+ width: number;
985
+ height: number;
986
+ };
987
+ viewport: {
988
+ width: number;
989
+ height: number;
990
+ };
991
+ device_pixel_ratio: number | null;
992
+ touch_capable: boolean | null;
993
+ language: string | null;
994
+ connection_type: string | null;
995
+ color_scheme_preference: "light" | "dark" | "no-preference" | null;
996
+ } | null | undefined;
997
+ dom_context?: {
998
+ mode: "lightweight";
999
+ html_excerpt: string;
1000
+ } | null | undefined;
1001
+ };
1002
+ project_id?: string | null | undefined;
1003
+ project_token?: string | undefined;
1004
+ correlation?: {
1005
+ request_id: string | null;
1006
+ trace_id: string | null;
1007
+ session_id: string | null;
1008
+ user_id_hash: string | null;
1009
+ } | undefined;
1010
+ }, {
1011
+ schema_version: string;
1012
+ event_id: string;
1013
+ event_type: "frontend_exception";
1014
+ sdk_name: string;
1015
+ sdk_version: string;
1016
+ service: {
1017
+ name: string;
1018
+ environment: string;
1019
+ runtime?: string | null | undefined;
1020
+ framework?: string | null | undefined;
1021
+ };
1022
+ occurred_at: string;
1023
+ payload: {
1024
+ message: string;
1025
+ name: string;
1026
+ stack: string;
1027
+ browser: {
1028
+ name: string;
1029
+ version: string;
1030
+ };
1031
+ probe_data?: {
1032
+ version: 1;
1033
+ items: {
1034
+ label: string;
1035
+ data: Record<string, unknown>;
1036
+ timestamp: string;
1037
+ activation_id: string | null;
1038
+ }[];
1039
+ } | undefined;
1040
+ route?: string | null | undefined;
1041
+ breadcrumbs?: {
1042
+ data: Record<string, unknown>;
1043
+ breadcrumb_type: "route_change" | "click" | "form_submit" | "console_log" | "network_request";
1044
+ ts: string;
1045
+ route?: string | null | undefined;
1046
+ }[] | undefined;
1047
+ device?: {
1048
+ user_agent: string | null;
1049
+ os: {
1050
+ name: string | null;
1051
+ version: string | null;
1052
+ };
1053
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
1054
+ screen: {
1055
+ width: number;
1056
+ height: number;
1057
+ };
1058
+ viewport: {
1059
+ width: number;
1060
+ height: number;
1061
+ };
1062
+ device_pixel_ratio: number | null;
1063
+ touch_capable: boolean | null;
1064
+ language: string | null;
1065
+ connection_type: string | null;
1066
+ color_scheme_preference: "light" | "dark" | "no-preference" | null;
1067
+ } | null | undefined;
1068
+ dom_context?: {
1069
+ mode: "lightweight";
1070
+ html_excerpt: string;
1071
+ } | null | undefined;
1072
+ };
1073
+ project_id?: string | null | undefined;
1074
+ project_token?: string | undefined;
1075
+ correlation?: {
1076
+ request_id: string | null;
1077
+ trace_id: string | null;
1078
+ session_id: string | null;
1079
+ user_id_hash: string | null;
1080
+ } | undefined;
1081
+ }>, z.ZodObject<{
1082
+ schema_version: z.ZodString;
1083
+ event_id: z.ZodString;
1084
+ project_token: z.ZodOptional<z.ZodString>;
1085
+ project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1086
+ sdk_name: z.ZodString;
1087
+ sdk_version: z.ZodString;
1088
+ service: z.ZodObject<{
1089
+ name: z.ZodString;
1090
+ runtime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1091
+ framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1092
+ environment: z.ZodString;
1093
+ }, "strip", z.ZodTypeAny, {
1094
+ name: string;
1095
+ environment: string;
1096
+ runtime?: string | null | undefined;
1097
+ framework?: string | null | undefined;
1098
+ }, {
1099
+ name: string;
1100
+ environment: string;
1101
+ runtime?: string | null | undefined;
1102
+ framework?: string | null | undefined;
1103
+ }>;
1104
+ occurred_at: z.ZodString;
1105
+ correlation: z.ZodOptional<z.ZodObject<{
1106
+ request_id: z.ZodNullable<z.ZodString>;
1107
+ trace_id: z.ZodNullable<z.ZodString>;
1108
+ session_id: z.ZodNullable<z.ZodString>;
1109
+ user_id_hash: z.ZodNullable<z.ZodString>;
1110
+ }, "strict", z.ZodTypeAny, {
1111
+ request_id: string | null;
1112
+ trace_id: string | null;
1113
+ session_id: string | null;
1114
+ user_id_hash: string | null;
1115
+ }, {
1116
+ request_id: string | null;
1117
+ trace_id: string | null;
1118
+ session_id: string | null;
1119
+ user_id_hash: string | null;
1120
+ }>>;
1121
+ } & {
1122
+ event_type: z.ZodLiteral<"deploy_metadata">;
1123
+ payload: z.ZodObject<{
1124
+ commit_sha: z.ZodString;
1125
+ version: z.ZodString;
1126
+ branch: z.ZodString;
1127
+ environment: z.ZodString;
1128
+ deployed_at: z.ZodString;
1129
+ }, "strict", z.ZodTypeAny, {
1130
+ environment: string;
1131
+ version: string;
1132
+ commit_sha: string;
1133
+ branch: string;
1134
+ deployed_at: string;
1135
+ }, {
1136
+ environment: string;
1137
+ version: string;
1138
+ commit_sha: string;
1139
+ branch: string;
1140
+ deployed_at: string;
1141
+ }>;
1142
+ }, "strict", z.ZodTypeAny, {
1143
+ schema_version: string;
1144
+ event_id: string;
1145
+ event_type: "deploy_metadata";
1146
+ sdk_name: string;
1147
+ sdk_version: string;
1148
+ service: {
1149
+ name: string;
1150
+ environment: string;
1151
+ runtime?: string | null | undefined;
1152
+ framework?: string | null | undefined;
1153
+ };
1154
+ occurred_at: string;
1155
+ payload: {
1156
+ environment: string;
1157
+ version: string;
1158
+ commit_sha: string;
1159
+ branch: string;
1160
+ deployed_at: string;
1161
+ };
1162
+ project_id?: string | null | undefined;
1163
+ project_token?: string | undefined;
1164
+ correlation?: {
1165
+ request_id: string | null;
1166
+ trace_id: string | null;
1167
+ session_id: string | null;
1168
+ user_id_hash: string | null;
1169
+ } | undefined;
1170
+ }, {
1171
+ schema_version: string;
1172
+ event_id: string;
1173
+ event_type: "deploy_metadata";
1174
+ sdk_name: string;
1175
+ sdk_version: string;
1176
+ service: {
1177
+ name: string;
1178
+ environment: string;
1179
+ runtime?: string | null | undefined;
1180
+ framework?: string | null | undefined;
1181
+ };
1182
+ occurred_at: string;
1183
+ payload: {
1184
+ environment: string;
1185
+ version: string;
1186
+ commit_sha: string;
1187
+ branch: string;
1188
+ deployed_at: string;
1189
+ };
1190
+ project_id?: string | null | undefined;
1191
+ project_token?: string | undefined;
1192
+ correlation?: {
1193
+ request_id: string | null;
1194
+ trace_id: string | null;
1195
+ session_id: string | null;
1196
+ user_id_hash: string | null;
1197
+ } | undefined;
1198
+ }>, z.ZodObject<{
1199
+ schema_version: z.ZodString;
1200
+ event_id: z.ZodString;
1201
+ project_token: z.ZodOptional<z.ZodString>;
1202
+ project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1203
+ sdk_name: z.ZodString;
1204
+ sdk_version: z.ZodString;
1205
+ service: z.ZodObject<{
1206
+ name: z.ZodString;
1207
+ runtime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1208
+ framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1209
+ environment: z.ZodString;
1210
+ }, "strip", z.ZodTypeAny, {
1211
+ name: string;
1212
+ environment: string;
1213
+ runtime?: string | null | undefined;
1214
+ framework?: string | null | undefined;
1215
+ }, {
1216
+ name: string;
1217
+ environment: string;
1218
+ runtime?: string | null | undefined;
1219
+ framework?: string | null | undefined;
1220
+ }>;
1221
+ occurred_at: z.ZodString;
1222
+ correlation: z.ZodOptional<z.ZodObject<{
1223
+ request_id: z.ZodNullable<z.ZodString>;
1224
+ trace_id: z.ZodNullable<z.ZodString>;
1225
+ session_id: z.ZodNullable<z.ZodString>;
1226
+ user_id_hash: z.ZodNullable<z.ZodString>;
1227
+ }, "strict", z.ZodTypeAny, {
1228
+ request_id: string | null;
1229
+ trace_id: string | null;
1230
+ session_id: string | null;
1231
+ user_id_hash: string | null;
1232
+ }, {
1233
+ request_id: string | null;
1234
+ trace_id: string | null;
1235
+ session_id: string | null;
1236
+ user_id_hash: string | null;
1237
+ }>>;
1238
+ } & {
1239
+ event_type: z.ZodLiteral<"error_suppressed">;
1240
+ payload: z.ZodObject<{
1241
+ fingerprint: z.ZodString;
1242
+ suppressed_count: z.ZodNumber;
1243
+ window_seconds: z.ZodNumber;
1244
+ first_seen: z.ZodString;
1245
+ last_seen: z.ZodString;
1246
+ }, "strict", z.ZodTypeAny, {
1247
+ fingerprint: string;
1248
+ suppressed_count: number;
1249
+ window_seconds: number;
1250
+ first_seen: string;
1251
+ last_seen: string;
1252
+ }, {
1253
+ fingerprint: string;
1254
+ suppressed_count: number;
1255
+ window_seconds: number;
1256
+ first_seen: string;
1257
+ last_seen: string;
1258
+ }>;
1259
+ }, "strict", z.ZodTypeAny, {
1260
+ schema_version: string;
1261
+ event_id: string;
1262
+ event_type: "error_suppressed";
1263
+ sdk_name: string;
1264
+ sdk_version: string;
1265
+ service: {
1266
+ name: string;
1267
+ environment: string;
1268
+ runtime?: string | null | undefined;
1269
+ framework?: string | null | undefined;
1270
+ };
1271
+ occurred_at: string;
1272
+ payload: {
1273
+ fingerprint: string;
1274
+ suppressed_count: number;
1275
+ window_seconds: number;
1276
+ first_seen: string;
1277
+ last_seen: string;
1278
+ };
1279
+ project_id?: string | null | undefined;
1280
+ project_token?: string | undefined;
1281
+ correlation?: {
1282
+ request_id: string | null;
1283
+ trace_id: string | null;
1284
+ session_id: string | null;
1285
+ user_id_hash: string | null;
1286
+ } | undefined;
1287
+ }, {
1288
+ schema_version: string;
1289
+ event_id: string;
1290
+ event_type: "error_suppressed";
1291
+ sdk_name: string;
1292
+ sdk_version: string;
1293
+ service: {
1294
+ name: string;
1295
+ environment: string;
1296
+ runtime?: string | null | undefined;
1297
+ framework?: string | null | undefined;
1298
+ };
1299
+ occurred_at: string;
1300
+ payload: {
1301
+ fingerprint: string;
1302
+ suppressed_count: number;
1303
+ window_seconds: number;
1304
+ first_seen: string;
1305
+ last_seen: string;
1306
+ };
1307
+ project_id?: string | null | undefined;
1308
+ project_token?: string | undefined;
1309
+ correlation?: {
1310
+ request_id: string | null;
1311
+ trace_id: string | null;
1312
+ session_id: string | null;
1313
+ user_id_hash: string | null;
1314
+ } | undefined;
1315
+ }>, z.ZodObject<{
1316
+ schema_version: z.ZodString;
1317
+ event_id: z.ZodString;
1318
+ project_token: z.ZodOptional<z.ZodString>;
1319
+ project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1320
+ sdk_name: z.ZodString;
1321
+ sdk_version: z.ZodString;
1322
+ service: z.ZodObject<{
1323
+ name: z.ZodString;
1324
+ runtime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1325
+ framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1326
+ environment: z.ZodString;
1327
+ }, "strip", z.ZodTypeAny, {
1328
+ name: string;
1329
+ environment: string;
1330
+ runtime?: string | null | undefined;
1331
+ framework?: string | null | undefined;
1332
+ }, {
1333
+ name: string;
1334
+ environment: string;
1335
+ runtime?: string | null | undefined;
1336
+ framework?: string | null | undefined;
1337
+ }>;
1338
+ occurred_at: z.ZodString;
1339
+ correlation: z.ZodOptional<z.ZodObject<{
1340
+ request_id: z.ZodNullable<z.ZodString>;
1341
+ trace_id: z.ZodNullable<z.ZodString>;
1342
+ session_id: z.ZodNullable<z.ZodString>;
1343
+ user_id_hash: z.ZodNullable<z.ZodString>;
1344
+ }, "strict", z.ZodTypeAny, {
1345
+ request_id: string | null;
1346
+ trace_id: string | null;
1347
+ session_id: string | null;
1348
+ user_id_hash: string | null;
1349
+ }, {
1350
+ request_id: string | null;
1351
+ trace_id: string | null;
1352
+ session_id: string | null;
1353
+ user_id_hash: string | null;
1354
+ }>>;
1355
+ } & {
1356
+ event_type: z.ZodLiteral<"probe_event">;
1357
+ payload: z.ZodObject<{
1358
+ label: z.ZodString;
1359
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1360
+ activation_id: z.ZodNullable<z.ZodString>;
1361
+ probe_label_pattern: z.ZodString;
1362
+ }, "strict", z.ZodTypeAny, {
1363
+ label: string;
1364
+ data: Record<string, unknown>;
1365
+ activation_id: string | null;
1366
+ probe_label_pattern: string;
1367
+ }, {
1368
+ label: string;
1369
+ data: Record<string, unknown>;
1370
+ activation_id: string | null;
1371
+ probe_label_pattern: string;
1372
+ }>;
1373
+ }, "strict", z.ZodTypeAny, {
1374
+ schema_version: string;
1375
+ event_id: string;
1376
+ event_type: "probe_event";
1377
+ sdk_name: string;
1378
+ sdk_version: string;
1379
+ service: {
1380
+ name: string;
1381
+ environment: string;
1382
+ runtime?: string | null | undefined;
1383
+ framework?: string | null | undefined;
1384
+ };
1385
+ occurred_at: string;
1386
+ payload: {
1387
+ label: string;
1388
+ data: Record<string, unknown>;
1389
+ activation_id: string | null;
1390
+ probe_label_pattern: string;
1391
+ };
1392
+ project_id?: string | null | undefined;
1393
+ project_token?: string | undefined;
1394
+ correlation?: {
1395
+ request_id: string | null;
1396
+ trace_id: string | null;
1397
+ session_id: string | null;
1398
+ user_id_hash: string | null;
1399
+ } | undefined;
1400
+ }, {
1401
+ schema_version: string;
1402
+ event_id: string;
1403
+ event_type: "probe_event";
1404
+ sdk_name: string;
1405
+ sdk_version: string;
1406
+ service: {
1407
+ name: string;
1408
+ environment: string;
1409
+ runtime?: string | null | undefined;
1410
+ framework?: string | null | undefined;
1411
+ };
1412
+ occurred_at: string;
1413
+ payload: {
1414
+ label: string;
1415
+ data: Record<string, unknown>;
1416
+ activation_id: string | null;
1417
+ probe_label_pattern: string;
1418
+ };
1419
+ project_id?: string | null | undefined;
1420
+ project_token?: string | undefined;
1421
+ correlation?: {
1422
+ request_id: string | null;
1423
+ trace_id: string | null;
1424
+ session_id: string | null;
1425
+ user_id_hash: string | null;
1426
+ } | undefined;
1427
+ }>]>;
1428
+ export type EventEnvelope = z.infer<typeof EventEnvelopeSchema>;
1429
+ type CreateEnvelopeInput = Omit<EventEnvelope, "schema_version" | "event_id" | "occurred_at" | "correlation" | "sdk_name" | "sdk_version"> & Partial<Pick<EventEnvelope, "schema_version" | "event_id" | "occurred_at" | "correlation" | "sdk_name" | "sdk_version">>;
1430
+ export declare function createEventEnvelope(input: CreateEnvelopeInput): EventEnvelope;
1431
+ export declare const BundleV1Schema: z.ZodObject<{
1432
+ bundle_version: z.ZodLiteral<1>;
1433
+ bundle_id: z.ZodString;
1434
+ bundle_type: z.ZodEnum<["failure", "improvement"]>;
1435
+ captured_at: z.ZodString;
1436
+ sdk: z.ZodObject<{
1437
+ name: z.ZodString;
1438
+ version: z.ZodString;
1439
+ }, "strip", z.ZodTypeAny, {
1440
+ name: string;
1441
+ version: string;
1442
+ }, {
1443
+ name: string;
1444
+ version: string;
1445
+ }>;
1446
+ project: z.ZodObject<{
1447
+ id: z.ZodString;
1448
+ slug: z.ZodString;
1449
+ environment: z.ZodString;
1450
+ }, "strip", z.ZodTypeAny, {
1451
+ environment: string;
1452
+ id: string;
1453
+ slug: string;
1454
+ }, {
1455
+ environment: string;
1456
+ id: string;
1457
+ slug: string;
1458
+ }>;
1459
+ service: z.ZodObject<{
1460
+ id: z.ZodString;
1461
+ name: z.ZodString;
1462
+ runtime: z.ZodNullable<z.ZodString>;
1463
+ framework: z.ZodNullable<z.ZodString>;
1464
+ version: z.ZodNullable<z.ZodString>;
1465
+ region: z.ZodNullable<z.ZodString>;
1466
+ }, "strip", z.ZodTypeAny, {
1467
+ name: string;
1468
+ runtime: string | null;
1469
+ framework: string | null;
1470
+ version: string | null;
1471
+ id: string;
1472
+ region: string | null;
1473
+ }, {
1474
+ name: string;
1475
+ runtime: string | null;
1476
+ framework: string | null;
1477
+ version: string | null;
1478
+ id: string;
1479
+ region: string | null;
1480
+ }>;
1481
+ signal: z.ZodObject<{
1482
+ signal_id: z.ZodString;
1483
+ signal_type: z.ZodEnum<["exception", "fatal_error", "request_failure", "frontend_exception", "warning", "deprecation", "performance_issue", "retry_loop", "slow_query"]>;
1484
+ severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
1485
+ fingerprint: z.ZodString;
1486
+ first_seen_at: z.ZodString;
1487
+ last_seen_at: z.ZodString;
1488
+ occurrence_count: z.ZodNumber;
1489
+ source_event_types: z.ZodArray<z.ZodString, "many">;
1490
+ }, "strip", z.ZodTypeAny, {
1491
+ fingerprint: string;
1492
+ signal_id: string;
1493
+ signal_type: "warning" | "frontend_exception" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
1494
+ severity: "critical" | "low" | "medium" | "high";
1495
+ first_seen_at: string;
1496
+ last_seen_at: string;
1497
+ occurrence_count: number;
1498
+ source_event_types: string[];
1499
+ }, {
1500
+ fingerprint: string;
1501
+ signal_id: string;
1502
+ signal_type: "warning" | "frontend_exception" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
1503
+ severity: "critical" | "low" | "medium" | "high";
1504
+ first_seen_at: string;
1505
+ last_seen_at: string;
1506
+ occurrence_count: number;
1507
+ source_event_types: string[];
1508
+ }>;
1509
+ summary: z.ZodObject<{
1510
+ title: z.ZodString;
1511
+ description: z.ZodString;
1512
+ likely_cause: z.ZodNullable<z.ZodString>;
1513
+ confidence: z.ZodNumber;
1514
+ recommended_action: z.ZodNullable<z.ZodString>;
1515
+ severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
1516
+ error_type: z.ZodNullable<z.ZodString>;
1517
+ error_message: z.ZodNullable<z.ZodString>;
1518
+ first_application_frame: z.ZodNullable<z.ZodObject<{
1519
+ file: z.ZodNullable<z.ZodString>;
1520
+ line: z.ZodNullable<z.ZodNumber>;
1521
+ function: z.ZodNullable<z.ZodString>;
1522
+ }, "strip", z.ZodTypeAny, {
1523
+ function: string | null;
1524
+ file: string | null;
1525
+ line: number | null;
1526
+ }, {
1527
+ function: string | null;
1528
+ file: string | null;
1529
+ line: number | null;
1530
+ }>>;
1531
+ primary_signal: z.ZodNullable<z.ZodString>;
1532
+ signals: z.ZodObject<{
1533
+ new_deploy: z.ZodBoolean;
1534
+ regression_suspected: z.ZodBoolean;
1535
+ customer_visible: z.ZodBoolean;
1536
+ }, "strip", z.ZodTypeAny, {
1537
+ new_deploy: boolean;
1538
+ regression_suspected: boolean;
1539
+ customer_visible: boolean;
1540
+ }, {
1541
+ new_deploy: boolean;
1542
+ regression_suspected: boolean;
1543
+ customer_visible: boolean;
1544
+ }>;
1545
+ }, "strip", z.ZodTypeAny, {
1546
+ severity: "critical" | "low" | "medium" | "high";
1547
+ title: string;
1548
+ description: string;
1549
+ likely_cause: string | null;
1550
+ confidence: number;
1551
+ recommended_action: string | null;
1552
+ error_type: string | null;
1553
+ error_message: string | null;
1554
+ first_application_frame: {
1555
+ function: string | null;
1556
+ file: string | null;
1557
+ line: number | null;
1558
+ } | null;
1559
+ primary_signal: string | null;
1560
+ signals: {
1561
+ new_deploy: boolean;
1562
+ regression_suspected: boolean;
1563
+ customer_visible: boolean;
1564
+ };
1565
+ }, {
1566
+ severity: "critical" | "low" | "medium" | "high";
1567
+ title: string;
1568
+ description: string;
1569
+ likely_cause: string | null;
1570
+ confidence: number;
1571
+ recommended_action: string | null;
1572
+ error_type: string | null;
1573
+ error_message: string | null;
1574
+ first_application_frame: {
1575
+ function: string | null;
1576
+ file: string | null;
1577
+ line: number | null;
1578
+ } | null;
1579
+ primary_signal: string | null;
1580
+ signals: {
1581
+ new_deploy: boolean;
1582
+ regression_suspected: boolean;
1583
+ customer_visible: boolean;
1584
+ };
1585
+ }>;
1586
+ impact: z.ZodObject<{
1587
+ affected_users_estimate: z.ZodNullable<z.ZodNumber>;
1588
+ affected_requests_estimate: z.ZodNullable<z.ZodNumber>;
1589
+ business_criticality: z.ZodEnum<["low", "medium", "high", "critical"]>;
1590
+ customer_visible: z.ZodBoolean;
1591
+ regression_suspected: z.ZodBoolean;
1592
+ }, "strip", z.ZodTypeAny, {
1593
+ regression_suspected: boolean;
1594
+ customer_visible: boolean;
1595
+ affected_users_estimate: number | null;
1596
+ affected_requests_estimate: number | null;
1597
+ business_criticality: "critical" | "low" | "medium" | "high";
1598
+ }, {
1599
+ regression_suspected: boolean;
1600
+ customer_visible: boolean;
1601
+ affected_users_estimate: number | null;
1602
+ affected_requests_estimate: number | null;
1603
+ business_criticality: "critical" | "low" | "medium" | "high";
1604
+ }>;
1605
+ context: z.ZodObject<{
1606
+ error: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodObject<{
1607
+ version: z.ZodLiteral<1>;
1608
+ name: z.ZodString;
1609
+ message: z.ZodString;
1610
+ stack: z.ZodString;
1611
+ handled: z.ZodBoolean;
1612
+ top_frames: z.ZodArray<z.ZodString, "many">;
1613
+ }, "strip", z.ZodTypeAny, {
1614
+ message: string;
1615
+ name: string;
1616
+ version: 1;
1617
+ stack: string;
1618
+ handled: boolean;
1619
+ top_frames: string[];
1620
+ }, {
1621
+ message: string;
1622
+ name: string;
1623
+ version: 1;
1624
+ stack: string;
1625
+ handled: boolean;
1626
+ top_frames: string[];
1627
+ }>>>>;
1628
+ request: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1629
+ version: z.ZodLiteral<1>;
1630
+ method: z.ZodString;
1631
+ path: z.ZodString;
1632
+ route_template: z.ZodNullable<z.ZodString>;
1633
+ query: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1634
+ headers: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1635
+ body: z.ZodNullable<z.ZodUnknown>;
1636
+ request_id: z.ZodNullable<z.ZodString>;
1637
+ }, "strip", z.ZodTypeAny, {
1638
+ path: string;
1639
+ request_id: string | null;
1640
+ version: 1;
1641
+ method: string;
1642
+ query: Record<string, unknown>;
1643
+ headers: Record<string, unknown>;
1644
+ route_template: string | null;
1645
+ body?: unknown;
1646
+ }, {
1647
+ path: string;
1648
+ request_id: string | null;
1649
+ version: 1;
1650
+ method: string;
1651
+ query: Record<string, unknown>;
1652
+ headers: Record<string, unknown>;
1653
+ route_template: string | null;
1654
+ body?: unknown;
1655
+ }>>>;
1656
+ response: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1657
+ version: z.ZodLiteral<1>;
1658
+ status_code: z.ZodNumber;
1659
+ duration_ms: z.ZodNullable<z.ZodNumber>;
1660
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1661
+ body: z.ZodOptional<z.ZodUnknown>;
1662
+ }, "strip", z.ZodTypeAny, {
1663
+ version: 1;
1664
+ status_code: number;
1665
+ duration_ms: number | null;
1666
+ headers?: Record<string, unknown> | undefined;
1667
+ body?: unknown;
1668
+ }, {
1669
+ version: 1;
1670
+ status_code: number;
1671
+ duration_ms: number | null;
1672
+ headers?: Record<string, unknown> | undefined;
1673
+ body?: unknown;
1674
+ }>>>;
1675
+ logs: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1676
+ version: z.ZodLiteral<1>;
1677
+ items: z.ZodArray<z.ZodObject<{
1678
+ level: z.ZodString;
1679
+ message: z.ZodString;
1680
+ timestamp: z.ZodString;
1681
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1682
+ }, "strip", z.ZodTypeAny, {
1683
+ message: string;
1684
+ level: string;
1685
+ timestamp: string;
1686
+ attributes: Record<string, unknown>;
1687
+ }, {
1688
+ message: string;
1689
+ level: string;
1690
+ timestamp: string;
1691
+ attributes: Record<string, unknown>;
1692
+ }>, "many">;
1693
+ }, "strip", z.ZodTypeAny, {
1694
+ version: 1;
1695
+ items: {
1696
+ message: string;
1697
+ level: string;
1698
+ timestamp: string;
1699
+ attributes: Record<string, unknown>;
1700
+ }[];
1701
+ }, {
1702
+ version: 1;
1703
+ items: {
1704
+ message: string;
1705
+ level: string;
1706
+ timestamp: string;
1707
+ attributes: Record<string, unknown>;
1708
+ }[];
1709
+ }>>>;
1710
+ frontend: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1711
+ version: z.ZodLiteral<1>;
1712
+ route_changes: z.ZodArray<z.ZodObject<{
1713
+ from: z.ZodString;
1714
+ to: z.ZodString;
1715
+ ts: z.ZodString;
1716
+ }, "strip", z.ZodTypeAny, {
1717
+ ts: string;
1718
+ from: string;
1719
+ to: string;
1720
+ }, {
1721
+ ts: string;
1722
+ from: string;
1723
+ to: string;
1724
+ }>, "many">;
1725
+ clicks: z.ZodArray<z.ZodObject<{
1726
+ selector: z.ZodString;
1727
+ label: z.ZodString;
1728
+ ts: z.ZodString;
1729
+ }, "strip", z.ZodTypeAny, {
1730
+ label: string;
1731
+ ts: string;
1732
+ selector: string;
1733
+ }, {
1734
+ label: string;
1735
+ ts: string;
1736
+ selector: string;
1737
+ }>, "many">;
1738
+ form_submissions: z.ZodArray<z.ZodObject<{
1739
+ form: z.ZodString;
1740
+ fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1741
+ ts: z.ZodString;
1742
+ }, "strip", z.ZodTypeAny, {
1743
+ ts: string;
1744
+ form: string;
1745
+ fields: Record<string, unknown>;
1746
+ }, {
1747
+ ts: string;
1748
+ form: string;
1749
+ fields: Record<string, unknown>;
1750
+ }>, "many">;
1751
+ console_logs: z.ZodArray<z.ZodUnknown, "many">;
1752
+ network_requests: z.ZodArray<z.ZodObject<{
1753
+ method: z.ZodString;
1754
+ url: z.ZodString;
1755
+ status: z.ZodNumber;
1756
+ ts: z.ZodString;
1757
+ duration_ms: z.ZodOptional<z.ZodNumber>;
1758
+ caller_trace: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1759
+ response_body: z.ZodOptional<z.ZodUnknown>;
1760
+ request_body: z.ZodOptional<z.ZodUnknown>;
1761
+ response_headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1762
+ response_content_length: z.ZodOptional<z.ZodNumber>;
1763
+ }, "strip", z.ZodTypeAny, {
1764
+ status: number;
1765
+ method: string;
1766
+ ts: string;
1767
+ url: string;
1768
+ duration_ms?: number | undefined;
1769
+ response_headers?: Record<string, string> | undefined;
1770
+ response_body?: unknown;
1771
+ caller_trace?: string[] | undefined;
1772
+ request_body?: unknown;
1773
+ response_content_length?: number | undefined;
1774
+ }, {
1775
+ status: number;
1776
+ method: string;
1777
+ ts: string;
1778
+ url: string;
1779
+ duration_ms?: number | undefined;
1780
+ response_headers?: Record<string, string> | undefined;
1781
+ response_body?: unknown;
1782
+ caller_trace?: string[] | undefined;
1783
+ request_body?: unknown;
1784
+ response_content_length?: number | undefined;
1785
+ }>, "many">;
1786
+ exceptions: z.ZodArray<z.ZodUnknown, "many">;
1787
+ dom_context: z.ZodNullable<z.ZodObject<{
1788
+ mode: z.ZodLiteral<"lightweight">;
1789
+ html_excerpt: z.ZodString;
1790
+ }, "strip", z.ZodTypeAny, {
1791
+ mode: "lightweight";
1792
+ html_excerpt: string;
1793
+ }, {
1794
+ mode: "lightweight";
1795
+ html_excerpt: string;
1796
+ }>>;
1797
+ }, "strip", z.ZodTypeAny, {
1798
+ version: 1;
1799
+ dom_context: {
1800
+ mode: "lightweight";
1801
+ html_excerpt: string;
1802
+ } | null;
1803
+ route_changes: {
1804
+ ts: string;
1805
+ from: string;
1806
+ to: string;
1807
+ }[];
1808
+ clicks: {
1809
+ label: string;
1810
+ ts: string;
1811
+ selector: string;
1812
+ }[];
1813
+ form_submissions: {
1814
+ ts: string;
1815
+ form: string;
1816
+ fields: Record<string, unknown>;
1817
+ }[];
1818
+ console_logs: unknown[];
1819
+ network_requests: {
1820
+ status: number;
1821
+ method: string;
1822
+ ts: string;
1823
+ url: string;
1824
+ duration_ms?: number | undefined;
1825
+ response_headers?: Record<string, string> | undefined;
1826
+ response_body?: unknown;
1827
+ caller_trace?: string[] | undefined;
1828
+ request_body?: unknown;
1829
+ response_content_length?: number | undefined;
1830
+ }[];
1831
+ exceptions: unknown[];
1832
+ }, {
1833
+ version: 1;
1834
+ dom_context: {
1835
+ mode: "lightweight";
1836
+ html_excerpt: string;
1837
+ } | null;
1838
+ route_changes: {
1839
+ ts: string;
1840
+ from: string;
1841
+ to: string;
1842
+ }[];
1843
+ clicks: {
1844
+ label: string;
1845
+ ts: string;
1846
+ selector: string;
1847
+ }[];
1848
+ form_submissions: {
1849
+ ts: string;
1850
+ form: string;
1851
+ fields: Record<string, unknown>;
1852
+ }[];
1853
+ console_logs: unknown[];
1854
+ network_requests: {
1855
+ status: number;
1856
+ method: string;
1857
+ ts: string;
1858
+ url: string;
1859
+ duration_ms?: number | undefined;
1860
+ response_headers?: Record<string, string> | undefined;
1861
+ response_body?: unknown;
1862
+ caller_trace?: string[] | undefined;
1863
+ request_body?: unknown;
1864
+ response_content_length?: number | undefined;
1865
+ }[];
1866
+ exceptions: unknown[];
1867
+ }>>>;
1868
+ environment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1869
+ version: z.ZodLiteral<1>;
1870
+ os: z.ZodNullable<z.ZodString>;
1871
+ host: z.ZodNullable<z.ZodString>;
1872
+ container_id: z.ZodNullable<z.ZodString>;
1873
+ }, "strip", z.ZodTypeAny, {
1874
+ version: 1;
1875
+ os: string | null;
1876
+ host: string | null;
1877
+ container_id: string | null;
1878
+ }, {
1879
+ version: 1;
1880
+ os: string | null;
1881
+ host: string | null;
1882
+ container_id: string | null;
1883
+ }>>>;
1884
+ deploy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1885
+ version: z.ZodLiteral<1>;
1886
+ commit_sha: z.ZodNullable<z.ZodString>;
1887
+ deploy_version: z.ZodNullable<z.ZodString>;
1888
+ branch: z.ZodNullable<z.ZodString>;
1889
+ deployed_at: z.ZodNullable<z.ZodString>;
1890
+ regression_window: z.ZodNullable<z.ZodBoolean>;
1891
+ }, "strip", z.ZodTypeAny, {
1892
+ version: 1;
1893
+ commit_sha: string | null;
1894
+ branch: string | null;
1895
+ deployed_at: string | null;
1896
+ deploy_version: string | null;
1897
+ regression_window: boolean | null;
1898
+ }, {
1899
+ version: 1;
1900
+ commit_sha: string | null;
1901
+ branch: string | null;
1902
+ deployed_at: string | null;
1903
+ deploy_version: string | null;
1904
+ regression_window: boolean | null;
1905
+ }>>>;
1906
+ runtime: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1907
+ version: z.ZodLiteral<1>;
1908
+ name: z.ZodString;
1909
+ runtime_version: z.ZodNullable<z.ZodString>;
1910
+ platform: z.ZodNullable<z.ZodString>;
1911
+ arch: z.ZodNullable<z.ZodString>;
1912
+ pid: z.ZodNullable<z.ZodNumber>;
1913
+ cwd: z.ZodNullable<z.ZodString>;
1914
+ uptime_sec: z.ZodNullable<z.ZodNumber>;
1915
+ hostname: z.ZodNullable<z.ZodString>;
1916
+ thread_id: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
1917
+ framework: z.ZodNullable<z.ZodString>;
1918
+ framework_version: z.ZodNullable<z.ZodString>;
1919
+ memory: z.ZodNullable<z.ZodObject<{
1920
+ rss: z.ZodNullable<z.ZodNumber>;
1921
+ heap_total: z.ZodNullable<z.ZodNumber>;
1922
+ heap_used: z.ZodNullable<z.ZodNumber>;
1923
+ external: z.ZodNullable<z.ZodNumber>;
1924
+ peak: z.ZodNullable<z.ZodNumber>;
1925
+ }, "strip", z.ZodTypeAny, {
1926
+ rss: number | null;
1927
+ heap_total: number | null;
1928
+ heap_used: number | null;
1929
+ external: number | null;
1930
+ peak: number | null;
1931
+ }, {
1932
+ rss: number | null;
1933
+ heap_total: number | null;
1934
+ heap_used: number | null;
1935
+ external: number | null;
1936
+ peak: number | null;
1937
+ }>>;
1938
+ framework_extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1939
+ }, "strip", z.ZodTypeAny, {
1940
+ name: string;
1941
+ framework: string | null;
1942
+ version: 1;
1943
+ runtime_version: string | null;
1944
+ platform: string | null;
1945
+ arch: string | null;
1946
+ pid: number | null;
1947
+ cwd: string | null;
1948
+ uptime_sec: number | null;
1949
+ hostname: string | null;
1950
+ thread_id: string | number | null;
1951
+ framework_version: string | null;
1952
+ memory: {
1953
+ rss: number | null;
1954
+ heap_total: number | null;
1955
+ heap_used: number | null;
1956
+ external: number | null;
1957
+ peak: number | null;
1958
+ } | null;
1959
+ framework_extras?: Record<string, unknown> | null | undefined;
1960
+ }, {
1961
+ name: string;
1962
+ framework: string | null;
1963
+ version: 1;
1964
+ runtime_version: string | null;
1965
+ platform: string | null;
1966
+ arch: string | null;
1967
+ pid: number | null;
1968
+ cwd: string | null;
1969
+ uptime_sec: number | null;
1970
+ hostname: string | null;
1971
+ thread_id: string | number | null;
1972
+ framework_version: string | null;
1973
+ memory: {
1974
+ rss: number | null;
1975
+ heap_total: number | null;
1976
+ heap_used: number | null;
1977
+ external: number | null;
1978
+ peak: number | null;
1979
+ } | null;
1980
+ framework_extras?: Record<string, unknown> | null | undefined;
1981
+ }>>>;
1982
+ git: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1983
+ version: z.ZodLiteral<1>;
1984
+ commit: z.ZodNullable<z.ZodString>;
1985
+ commit_short: z.ZodNullable<z.ZodString>;
1986
+ branch: z.ZodNullable<z.ZodString>;
1987
+ repo: z.ZodNullable<z.ZodString>;
1988
+ dirty: z.ZodBoolean;
1989
+ source: z.ZodEnum<["config", "env", "local", "unknown"]>;
1990
+ }, "strip", z.ZodTypeAny, {
1991
+ dirty: boolean;
1992
+ version: 1;
1993
+ branch: string | null;
1994
+ commit: string | null;
1995
+ commit_short: string | null;
1996
+ repo: string | null;
1997
+ source: "unknown" | "config" | "env" | "local";
1998
+ }, {
1999
+ dirty: boolean;
2000
+ version: 1;
2001
+ branch: string | null;
2002
+ commit: string | null;
2003
+ commit_short: string | null;
2004
+ repo: string | null;
2005
+ source: "unknown" | "config" | "env" | "local";
2006
+ }>>>;
2007
+ dependencies: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2008
+ version: z.ZodLiteral<1>;
2009
+ items: z.ZodArray<z.ZodObject<{
2010
+ name: z.ZodString;
2011
+ status: z.ZodEnum<["ok", "degraded", "failed", "unknown"]>;
2012
+ notes: z.ZodNullable<z.ZodString>;
2013
+ }, "strip", z.ZodTypeAny, {
2014
+ status: "unknown" | "ok" | "degraded" | "failed";
2015
+ name: string;
2016
+ notes: string | null;
2017
+ }, {
2018
+ status: "unknown" | "ok" | "degraded" | "failed";
2019
+ name: string;
2020
+ notes: string | null;
2021
+ }>, "many">;
2022
+ }, "strip", z.ZodTypeAny, {
2023
+ version: 1;
2024
+ items: {
2025
+ status: "unknown" | "ok" | "degraded" | "failed";
2026
+ name: string;
2027
+ notes: string | null;
2028
+ }[];
2029
+ }, {
2030
+ version: 1;
2031
+ items: {
2032
+ status: "unknown" | "ok" | "degraded" | "failed";
2033
+ name: string;
2034
+ notes: string | null;
2035
+ }[];
2036
+ }>>>;
2037
+ probe_data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2038
+ version: z.ZodLiteral<1>;
2039
+ items: z.ZodArray<z.ZodObject<{
2040
+ label: z.ZodString;
2041
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2042
+ timestamp: z.ZodString;
2043
+ activation_id: z.ZodNullable<z.ZodString>;
2044
+ }, "strip", z.ZodTypeAny, {
2045
+ label: string;
2046
+ data: Record<string, unknown>;
2047
+ timestamp: string;
2048
+ activation_id: string | null;
2049
+ }, {
2050
+ label: string;
2051
+ data: Record<string, unknown>;
2052
+ timestamp: string;
2053
+ activation_id: string | null;
2054
+ }>, "many">;
2055
+ }, "strip", z.ZodTypeAny, {
2056
+ version: 1;
2057
+ items: {
2058
+ label: string;
2059
+ data: Record<string, unknown>;
2060
+ timestamp: string;
2061
+ activation_id: string | null;
2062
+ }[];
2063
+ }, {
2064
+ version: 1;
2065
+ items: {
2066
+ label: string;
2067
+ data: Record<string, unknown>;
2068
+ timestamp: string;
2069
+ activation_id: string | null;
2070
+ }[];
2071
+ }>>>;
2072
+ device: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2073
+ version: z.ZodLiteral<1>;
2074
+ user_agent: z.ZodNullable<z.ZodString>;
2075
+ browser: z.ZodObject<{
2076
+ name: z.ZodNullable<z.ZodString>;
2077
+ version: z.ZodNullable<z.ZodString>;
2078
+ }, "strip", z.ZodTypeAny, {
2079
+ name: string | null;
2080
+ version: string | null;
2081
+ }, {
2082
+ name: string | null;
2083
+ version: string | null;
2084
+ }>;
2085
+ os: z.ZodObject<{
2086
+ name: z.ZodNullable<z.ZodString>;
2087
+ version: z.ZodNullable<z.ZodString>;
2088
+ }, "strip", z.ZodTypeAny, {
2089
+ name: string | null;
2090
+ version: string | null;
2091
+ }, {
2092
+ name: string | null;
2093
+ version: string | null;
2094
+ }>;
2095
+ device_type: z.ZodEnum<["desktop", "mobile", "tablet", "unknown"]>;
2096
+ screen: z.ZodObject<{
2097
+ width: z.ZodNumber;
2098
+ height: z.ZodNumber;
2099
+ }, "strip", z.ZodTypeAny, {
2100
+ width: number;
2101
+ height: number;
2102
+ }, {
2103
+ width: number;
2104
+ height: number;
2105
+ }>;
2106
+ viewport: z.ZodObject<{
2107
+ width: z.ZodNumber;
2108
+ height: z.ZodNumber;
2109
+ }, "strip", z.ZodTypeAny, {
2110
+ width: number;
2111
+ height: number;
2112
+ }, {
2113
+ width: number;
2114
+ height: number;
2115
+ }>;
2116
+ device_pixel_ratio: z.ZodNullable<z.ZodNumber>;
2117
+ touch_capable: z.ZodNullable<z.ZodBoolean>;
2118
+ language: z.ZodNullable<z.ZodString>;
2119
+ connection_type: z.ZodNullable<z.ZodString>;
2120
+ color_scheme_preference: z.ZodNullable<z.ZodEnum<["light", "dark", "no-preference"]>>;
2121
+ }, "strip", z.ZodTypeAny, {
2122
+ version: 1;
2123
+ user_agent: string | null;
2124
+ os: {
2125
+ name: string | null;
2126
+ version: string | null;
2127
+ };
2128
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
2129
+ screen: {
2130
+ width: number;
2131
+ height: number;
2132
+ };
2133
+ viewport: {
2134
+ width: number;
2135
+ height: number;
2136
+ };
2137
+ device_pixel_ratio: number | null;
2138
+ touch_capable: boolean | null;
2139
+ language: string | null;
2140
+ connection_type: string | null;
2141
+ color_scheme_preference: "light" | "dark" | "no-preference" | null;
2142
+ browser: {
2143
+ name: string | null;
2144
+ version: string | null;
2145
+ };
2146
+ }, {
2147
+ version: 1;
2148
+ user_agent: string | null;
2149
+ os: {
2150
+ name: string | null;
2151
+ version: string | null;
2152
+ };
2153
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
2154
+ screen: {
2155
+ width: number;
2156
+ height: number;
2157
+ };
2158
+ viewport: {
2159
+ width: number;
2160
+ height: number;
2161
+ };
2162
+ device_pixel_ratio: number | null;
2163
+ touch_capable: boolean | null;
2164
+ language: string | null;
2165
+ connection_type: string | null;
2166
+ color_scheme_preference: "light" | "dark" | "no-preference" | null;
2167
+ browser: {
2168
+ name: string | null;
2169
+ version: string | null;
2170
+ };
2171
+ }>>>;
2172
+ }, "strip", z.ZodTypeAny, {
2173
+ error?: {
2174
+ message: string;
2175
+ name: string;
2176
+ version: 1;
2177
+ stack: string;
2178
+ handled: boolean;
2179
+ top_frames: string[];
2180
+ } | null | undefined;
2181
+ runtime?: {
2182
+ name: string;
2183
+ framework: string | null;
2184
+ version: 1;
2185
+ runtime_version: string | null;
2186
+ platform: string | null;
2187
+ arch: string | null;
2188
+ pid: number | null;
2189
+ cwd: string | null;
2190
+ uptime_sec: number | null;
2191
+ hostname: string | null;
2192
+ thread_id: string | number | null;
2193
+ framework_version: string | null;
2194
+ memory: {
2195
+ rss: number | null;
2196
+ heap_total: number | null;
2197
+ heap_used: number | null;
2198
+ external: number | null;
2199
+ peak: number | null;
2200
+ } | null;
2201
+ framework_extras?: Record<string, unknown> | null | undefined;
2202
+ } | null | undefined;
2203
+ environment?: {
2204
+ version: 1;
2205
+ os: string | null;
2206
+ host: string | null;
2207
+ container_id: string | null;
2208
+ } | null | undefined;
2209
+ request?: {
2210
+ path: string;
2211
+ request_id: string | null;
2212
+ version: 1;
2213
+ method: string;
2214
+ query: Record<string, unknown>;
2215
+ headers: Record<string, unknown>;
2216
+ route_template: string | null;
2217
+ body?: unknown;
2218
+ } | null | undefined;
2219
+ response?: {
2220
+ version: 1;
2221
+ status_code: number;
2222
+ duration_ms: number | null;
2223
+ headers?: Record<string, unknown> | undefined;
2224
+ body?: unknown;
2225
+ } | null | undefined;
2226
+ probe_data?: {
2227
+ version: 1;
2228
+ items: {
2229
+ label: string;
2230
+ data: Record<string, unknown>;
2231
+ timestamp: string;
2232
+ activation_id: string | null;
2233
+ }[];
2234
+ } | null | undefined;
2235
+ device?: {
2236
+ version: 1;
2237
+ user_agent: string | null;
2238
+ os: {
2239
+ name: string | null;
2240
+ version: string | null;
2241
+ };
2242
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
2243
+ screen: {
2244
+ width: number;
2245
+ height: number;
2246
+ };
2247
+ viewport: {
2248
+ width: number;
2249
+ height: number;
2250
+ };
2251
+ device_pixel_ratio: number | null;
2252
+ touch_capable: boolean | null;
2253
+ language: string | null;
2254
+ connection_type: string | null;
2255
+ color_scheme_preference: "light" | "dark" | "no-preference" | null;
2256
+ browser: {
2257
+ name: string | null;
2258
+ version: string | null;
2259
+ };
2260
+ } | null | undefined;
2261
+ logs?: {
2262
+ version: 1;
2263
+ items: {
2264
+ message: string;
2265
+ level: string;
2266
+ timestamp: string;
2267
+ attributes: Record<string, unknown>;
2268
+ }[];
2269
+ } | null | undefined;
2270
+ frontend?: {
2271
+ version: 1;
2272
+ dom_context: {
2273
+ mode: "lightweight";
2274
+ html_excerpt: string;
2275
+ } | null;
2276
+ route_changes: {
2277
+ ts: string;
2278
+ from: string;
2279
+ to: string;
2280
+ }[];
2281
+ clicks: {
2282
+ label: string;
2283
+ ts: string;
2284
+ selector: string;
2285
+ }[];
2286
+ form_submissions: {
2287
+ ts: string;
2288
+ form: string;
2289
+ fields: Record<string, unknown>;
2290
+ }[];
2291
+ console_logs: unknown[];
2292
+ network_requests: {
2293
+ status: number;
2294
+ method: string;
2295
+ ts: string;
2296
+ url: string;
2297
+ duration_ms?: number | undefined;
2298
+ response_headers?: Record<string, string> | undefined;
2299
+ response_body?: unknown;
2300
+ caller_trace?: string[] | undefined;
2301
+ request_body?: unknown;
2302
+ response_content_length?: number | undefined;
2303
+ }[];
2304
+ exceptions: unknown[];
2305
+ } | null | undefined;
2306
+ deploy?: {
2307
+ version: 1;
2308
+ commit_sha: string | null;
2309
+ branch: string | null;
2310
+ deployed_at: string | null;
2311
+ deploy_version: string | null;
2312
+ regression_window: boolean | null;
2313
+ } | null | undefined;
2314
+ git?: {
2315
+ dirty: boolean;
2316
+ version: 1;
2317
+ branch: string | null;
2318
+ commit: string | null;
2319
+ commit_short: string | null;
2320
+ repo: string | null;
2321
+ source: "unknown" | "config" | "env" | "local";
2322
+ } | null | undefined;
2323
+ dependencies?: {
2324
+ version: 1;
2325
+ items: {
2326
+ status: "unknown" | "ok" | "degraded" | "failed";
2327
+ name: string;
2328
+ notes: string | null;
2329
+ }[];
2330
+ } | null | undefined;
2331
+ }, {
2332
+ error?: {
2333
+ message: string;
2334
+ name: string;
2335
+ version: 1;
2336
+ stack: string;
2337
+ handled: boolean;
2338
+ top_frames: string[];
2339
+ } | null | undefined;
2340
+ runtime?: {
2341
+ name: string;
2342
+ framework: string | null;
2343
+ version: 1;
2344
+ runtime_version: string | null;
2345
+ platform: string | null;
2346
+ arch: string | null;
2347
+ pid: number | null;
2348
+ cwd: string | null;
2349
+ uptime_sec: number | null;
2350
+ hostname: string | null;
2351
+ thread_id: string | number | null;
2352
+ framework_version: string | null;
2353
+ memory: {
2354
+ rss: number | null;
2355
+ heap_total: number | null;
2356
+ heap_used: number | null;
2357
+ external: number | null;
2358
+ peak: number | null;
2359
+ } | null;
2360
+ framework_extras?: Record<string, unknown> | null | undefined;
2361
+ } | null | undefined;
2362
+ environment?: {
2363
+ version: 1;
2364
+ os: string | null;
2365
+ host: string | null;
2366
+ container_id: string | null;
2367
+ } | null | undefined;
2368
+ request?: {
2369
+ path: string;
2370
+ request_id: string | null;
2371
+ version: 1;
2372
+ method: string;
2373
+ query: Record<string, unknown>;
2374
+ headers: Record<string, unknown>;
2375
+ route_template: string | null;
2376
+ body?: unknown;
2377
+ } | null | undefined;
2378
+ response?: {
2379
+ version: 1;
2380
+ status_code: number;
2381
+ duration_ms: number | null;
2382
+ headers?: Record<string, unknown> | undefined;
2383
+ body?: unknown;
2384
+ } | null | undefined;
2385
+ probe_data?: {
2386
+ version: 1;
2387
+ items: {
2388
+ label: string;
2389
+ data: Record<string, unknown>;
2390
+ timestamp: string;
2391
+ activation_id: string | null;
2392
+ }[];
2393
+ } | null | undefined;
2394
+ device?: {
2395
+ version: 1;
2396
+ user_agent: string | null;
2397
+ os: {
2398
+ name: string | null;
2399
+ version: string | null;
2400
+ };
2401
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
2402
+ screen: {
2403
+ width: number;
2404
+ height: number;
2405
+ };
2406
+ viewport: {
2407
+ width: number;
2408
+ height: number;
2409
+ };
2410
+ device_pixel_ratio: number | null;
2411
+ touch_capable: boolean | null;
2412
+ language: string | null;
2413
+ connection_type: string | null;
2414
+ color_scheme_preference: "light" | "dark" | "no-preference" | null;
2415
+ browser: {
2416
+ name: string | null;
2417
+ version: string | null;
2418
+ };
2419
+ } | null | undefined;
2420
+ logs?: {
2421
+ version: 1;
2422
+ items: {
2423
+ message: string;
2424
+ level: string;
2425
+ timestamp: string;
2426
+ attributes: Record<string, unknown>;
2427
+ }[];
2428
+ } | null | undefined;
2429
+ frontend?: {
2430
+ version: 1;
2431
+ dom_context: {
2432
+ mode: "lightweight";
2433
+ html_excerpt: string;
2434
+ } | null;
2435
+ route_changes: {
2436
+ ts: string;
2437
+ from: string;
2438
+ to: string;
2439
+ }[];
2440
+ clicks: {
2441
+ label: string;
2442
+ ts: string;
2443
+ selector: string;
2444
+ }[];
2445
+ form_submissions: {
2446
+ ts: string;
2447
+ form: string;
2448
+ fields: Record<string, unknown>;
2449
+ }[];
2450
+ console_logs: unknown[];
2451
+ network_requests: {
2452
+ status: number;
2453
+ method: string;
2454
+ ts: string;
2455
+ url: string;
2456
+ duration_ms?: number | undefined;
2457
+ response_headers?: Record<string, string> | undefined;
2458
+ response_body?: unknown;
2459
+ caller_trace?: string[] | undefined;
2460
+ request_body?: unknown;
2461
+ response_content_length?: number | undefined;
2462
+ }[];
2463
+ exceptions: unknown[];
2464
+ } | null | undefined;
2465
+ deploy?: {
2466
+ version: 1;
2467
+ commit_sha: string | null;
2468
+ branch: string | null;
2469
+ deployed_at: string | null;
2470
+ deploy_version: string | null;
2471
+ regression_window: boolean | null;
2472
+ } | null | undefined;
2473
+ git?: {
2474
+ dirty: boolean;
2475
+ version: 1;
2476
+ branch: string | null;
2477
+ commit: string | null;
2478
+ commit_short: string | null;
2479
+ repo: string | null;
2480
+ source: "unknown" | "config" | "env" | "local";
2481
+ } | null | undefined;
2482
+ dependencies?: {
2483
+ version: 1;
2484
+ items: {
2485
+ status: "unknown" | "ok" | "degraded" | "failed";
2486
+ name: string;
2487
+ notes: string | null;
2488
+ }[];
2489
+ } | null | undefined;
2490
+ }>;
2491
+ reproduction: z.ZodObject<{
2492
+ possible: z.ZodBoolean;
2493
+ confidence: z.ZodNumber;
2494
+ reason: z.ZodString;
2495
+ artifacts: z.ZodNullable<z.ZodObject<{
2496
+ curl: z.ZodNullable<z.ZodString>;
2497
+ httpie: z.ZodNullable<z.ZodString>;
2498
+ json_spec: z.ZodNullable<z.ZodObject<{
2499
+ method: z.ZodString;
2500
+ url: z.ZodString;
2501
+ headers: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2502
+ query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2503
+ body: z.ZodNullable<z.ZodUnknown>;
2504
+ }, "strip", z.ZodTypeAny, {
2505
+ method: string;
2506
+ headers: Record<string, unknown>;
2507
+ url: string;
2508
+ query?: Record<string, unknown> | undefined;
2509
+ body?: unknown;
2510
+ }, {
2511
+ method: string;
2512
+ headers: Record<string, unknown>;
2513
+ url: string;
2514
+ query?: Record<string, unknown> | undefined;
2515
+ body?: unknown;
2516
+ }>>;
2517
+ }, "strip", z.ZodTypeAny, {
2518
+ curl: string | null;
2519
+ httpie: string | null;
2520
+ json_spec: {
2521
+ method: string;
2522
+ headers: Record<string, unknown>;
2523
+ url: string;
2524
+ query?: Record<string, unknown> | undefined;
2525
+ body?: unknown;
2526
+ } | null;
2527
+ }, {
2528
+ curl: string | null;
2529
+ httpie: string | null;
2530
+ json_spec: {
2531
+ method: string;
2532
+ headers: Record<string, unknown>;
2533
+ url: string;
2534
+ query?: Record<string, unknown> | undefined;
2535
+ body?: unknown;
2536
+ } | null;
2537
+ }>>;
2538
+ feasibility_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2539
+ standard_http_bugs: z.ZodString;
2540
+ frontend_interaction_plus_failing_request: z.ZodString;
2541
+ background_jobs: z.ZodString;
2542
+ race_conditions: z.ZodString;
2543
+ external_outage_timing: z.ZodString;
2544
+ }, "strip", z.ZodTypeAny, {
2545
+ standard_http_bugs: string;
2546
+ frontend_interaction_plus_failing_request: string;
2547
+ background_jobs: string;
2548
+ race_conditions: string;
2549
+ external_outage_timing: string;
2550
+ }, {
2551
+ standard_http_bugs: string;
2552
+ frontend_interaction_plus_failing_request: string;
2553
+ background_jobs: string;
2554
+ race_conditions: string;
2555
+ external_outage_timing: string;
2556
+ }>>>;
2557
+ }, "strip", z.ZodTypeAny, {
2558
+ confidence: number;
2559
+ possible: boolean;
2560
+ reason: string;
2561
+ artifacts: {
2562
+ curl: string | null;
2563
+ httpie: string | null;
2564
+ json_spec: {
2565
+ method: string;
2566
+ headers: Record<string, unknown>;
2567
+ url: string;
2568
+ query?: Record<string, unknown> | undefined;
2569
+ body?: unknown;
2570
+ } | null;
2571
+ } | null;
2572
+ feasibility_reference?: {
2573
+ standard_http_bugs: string;
2574
+ frontend_interaction_plus_failing_request: string;
2575
+ background_jobs: string;
2576
+ race_conditions: string;
2577
+ external_outage_timing: string;
2578
+ } | null | undefined;
2579
+ }, {
2580
+ confidence: number;
2581
+ possible: boolean;
2582
+ reason: string;
2583
+ artifacts: {
2584
+ curl: string | null;
2585
+ httpie: string | null;
2586
+ json_spec: {
2587
+ method: string;
2588
+ headers: Record<string, unknown>;
2589
+ url: string;
2590
+ query?: Record<string, unknown> | undefined;
2591
+ body?: unknown;
2592
+ } | null;
2593
+ } | null;
2594
+ feasibility_reference?: {
2595
+ standard_http_bugs: string;
2596
+ frontend_interaction_plus_failing_request: string;
2597
+ background_jobs: string;
2598
+ race_conditions: string;
2599
+ external_outage_timing: string;
2600
+ } | null | undefined;
2601
+ }>;
2602
+ verification: z.ZodObject<{
2603
+ verification_type: z.ZodNullable<z.ZodString>;
2604
+ synthetic: z.ZodBoolean;
2605
+ local_verified: z.ZodBoolean;
2606
+ production_verified: z.ZodBoolean;
2607
+ }, "strip", z.ZodTypeAny, {
2608
+ verification_type: string | null;
2609
+ synthetic: boolean;
2610
+ local_verified: boolean;
2611
+ production_verified: boolean;
2612
+ }, {
2613
+ verification_type: string | null;
2614
+ synthetic: boolean;
2615
+ local_verified: boolean;
2616
+ production_verified: boolean;
2617
+ }>;
2618
+ links: z.ZodObject<{
2619
+ self: z.ZodNullable<z.ZodString>;
2620
+ reproduction: z.ZodNullable<z.ZodString>;
2621
+ incident: z.ZodNullable<z.ZodString>;
2622
+ project: z.ZodNullable<z.ZodString>;
2623
+ docs: z.ZodNullable<z.ZodString>;
2624
+ }, "strip", z.ZodTypeAny, {
2625
+ self: string | null;
2626
+ reproduction: string | null;
2627
+ incident: string | null;
2628
+ project: string | null;
2629
+ docs: string | null;
2630
+ }, {
2631
+ self: string | null;
2632
+ reproduction: string | null;
2633
+ incident: string | null;
2634
+ project: string | null;
2635
+ docs: string | null;
2636
+ }>;
2637
+ redaction: z.ZodObject<{
2638
+ redacted: z.ZodBoolean;
2639
+ fields: z.ZodArray<z.ZodString, "many">;
2640
+ notes: z.ZodNullable<z.ZodString>;
2641
+ }, "strip", z.ZodTypeAny, {
2642
+ fields: string[];
2643
+ notes: string | null;
2644
+ redacted: boolean;
2645
+ }, {
2646
+ fields: string[];
2647
+ notes: string | null;
2648
+ redacted: boolean;
2649
+ }>;
2650
+ metadata: z.ZodObject<{
2651
+ created_at: z.ZodString;
2652
+ updated_at: z.ZodString;
2653
+ generator_version: z.ZodString;
2654
+ generation_number: z.ZodNumber;
2655
+ }, "strip", z.ZodTypeAny, {
2656
+ updated_at: string;
2657
+ created_at: string;
2658
+ generator_version: string;
2659
+ generation_number: number;
2660
+ }, {
2661
+ updated_at: string;
2662
+ created_at: string;
2663
+ generator_version: string;
2664
+ generation_number: number;
2665
+ }>;
2666
+ }, "strip", z.ZodTypeAny, {
2667
+ service: {
2668
+ name: string;
2669
+ runtime: string | null;
2670
+ framework: string | null;
2671
+ version: string | null;
2672
+ id: string;
2673
+ region: string | null;
2674
+ };
2675
+ reproduction: {
2676
+ confidence: number;
2677
+ possible: boolean;
2678
+ reason: string;
2679
+ artifacts: {
2680
+ curl: string | null;
2681
+ httpie: string | null;
2682
+ json_spec: {
2683
+ method: string;
2684
+ headers: Record<string, unknown>;
2685
+ url: string;
2686
+ query?: Record<string, unknown> | undefined;
2687
+ body?: unknown;
2688
+ } | null;
2689
+ } | null;
2690
+ feasibility_reference?: {
2691
+ standard_http_bugs: string;
2692
+ frontend_interaction_plus_failing_request: string;
2693
+ background_jobs: string;
2694
+ race_conditions: string;
2695
+ external_outage_timing: string;
2696
+ } | null | undefined;
2697
+ };
2698
+ project: {
2699
+ environment: string;
2700
+ id: string;
2701
+ slug: string;
2702
+ };
2703
+ bundle_version: 1;
2704
+ bundle_id: string;
2705
+ bundle_type: "failure" | "improvement";
2706
+ captured_at: string;
2707
+ sdk: {
2708
+ name: string;
2709
+ version: string;
2710
+ };
2711
+ signal: {
2712
+ fingerprint: string;
2713
+ signal_id: string;
2714
+ signal_type: "warning" | "frontend_exception" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
2715
+ severity: "critical" | "low" | "medium" | "high";
2716
+ first_seen_at: string;
2717
+ last_seen_at: string;
2718
+ occurrence_count: number;
2719
+ source_event_types: string[];
2720
+ };
2721
+ summary: {
2722
+ severity: "critical" | "low" | "medium" | "high";
2723
+ title: string;
2724
+ description: string;
2725
+ likely_cause: string | null;
2726
+ confidence: number;
2727
+ recommended_action: string | null;
2728
+ error_type: string | null;
2729
+ error_message: string | null;
2730
+ first_application_frame: {
2731
+ function: string | null;
2732
+ file: string | null;
2733
+ line: number | null;
2734
+ } | null;
2735
+ primary_signal: string | null;
2736
+ signals: {
2737
+ new_deploy: boolean;
2738
+ regression_suspected: boolean;
2739
+ customer_visible: boolean;
2740
+ };
2741
+ };
2742
+ impact: {
2743
+ regression_suspected: boolean;
2744
+ customer_visible: boolean;
2745
+ affected_users_estimate: number | null;
2746
+ affected_requests_estimate: number | null;
2747
+ business_criticality: "critical" | "low" | "medium" | "high";
2748
+ };
2749
+ context: {
2750
+ error?: {
2751
+ message: string;
2752
+ name: string;
2753
+ version: 1;
2754
+ stack: string;
2755
+ handled: boolean;
2756
+ top_frames: string[];
2757
+ } | null | undefined;
2758
+ runtime?: {
2759
+ name: string;
2760
+ framework: string | null;
2761
+ version: 1;
2762
+ runtime_version: string | null;
2763
+ platform: string | null;
2764
+ arch: string | null;
2765
+ pid: number | null;
2766
+ cwd: string | null;
2767
+ uptime_sec: number | null;
2768
+ hostname: string | null;
2769
+ thread_id: string | number | null;
2770
+ framework_version: string | null;
2771
+ memory: {
2772
+ rss: number | null;
2773
+ heap_total: number | null;
2774
+ heap_used: number | null;
2775
+ external: number | null;
2776
+ peak: number | null;
2777
+ } | null;
2778
+ framework_extras?: Record<string, unknown> | null | undefined;
2779
+ } | null | undefined;
2780
+ environment?: {
2781
+ version: 1;
2782
+ os: string | null;
2783
+ host: string | null;
2784
+ container_id: string | null;
2785
+ } | null | undefined;
2786
+ request?: {
2787
+ path: string;
2788
+ request_id: string | null;
2789
+ version: 1;
2790
+ method: string;
2791
+ query: Record<string, unknown>;
2792
+ headers: Record<string, unknown>;
2793
+ route_template: string | null;
2794
+ body?: unknown;
2795
+ } | null | undefined;
2796
+ response?: {
2797
+ version: 1;
2798
+ status_code: number;
2799
+ duration_ms: number | null;
2800
+ headers?: Record<string, unknown> | undefined;
2801
+ body?: unknown;
2802
+ } | null | undefined;
2803
+ probe_data?: {
2804
+ version: 1;
2805
+ items: {
2806
+ label: string;
2807
+ data: Record<string, unknown>;
2808
+ timestamp: string;
2809
+ activation_id: string | null;
2810
+ }[];
2811
+ } | null | undefined;
2812
+ device?: {
2813
+ version: 1;
2814
+ user_agent: string | null;
2815
+ os: {
2816
+ name: string | null;
2817
+ version: string | null;
2818
+ };
2819
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
2820
+ screen: {
2821
+ width: number;
2822
+ height: number;
2823
+ };
2824
+ viewport: {
2825
+ width: number;
2826
+ height: number;
2827
+ };
2828
+ device_pixel_ratio: number | null;
2829
+ touch_capable: boolean | null;
2830
+ language: string | null;
2831
+ connection_type: string | null;
2832
+ color_scheme_preference: "light" | "dark" | "no-preference" | null;
2833
+ browser: {
2834
+ name: string | null;
2835
+ version: string | null;
2836
+ };
2837
+ } | null | undefined;
2838
+ logs?: {
2839
+ version: 1;
2840
+ items: {
2841
+ message: string;
2842
+ level: string;
2843
+ timestamp: string;
2844
+ attributes: Record<string, unknown>;
2845
+ }[];
2846
+ } | null | undefined;
2847
+ frontend?: {
2848
+ version: 1;
2849
+ dom_context: {
2850
+ mode: "lightweight";
2851
+ html_excerpt: string;
2852
+ } | null;
2853
+ route_changes: {
2854
+ ts: string;
2855
+ from: string;
2856
+ to: string;
2857
+ }[];
2858
+ clicks: {
2859
+ label: string;
2860
+ ts: string;
2861
+ selector: string;
2862
+ }[];
2863
+ form_submissions: {
2864
+ ts: string;
2865
+ form: string;
2866
+ fields: Record<string, unknown>;
2867
+ }[];
2868
+ console_logs: unknown[];
2869
+ network_requests: {
2870
+ status: number;
2871
+ method: string;
2872
+ ts: string;
2873
+ url: string;
2874
+ duration_ms?: number | undefined;
2875
+ response_headers?: Record<string, string> | undefined;
2876
+ response_body?: unknown;
2877
+ caller_trace?: string[] | undefined;
2878
+ request_body?: unknown;
2879
+ response_content_length?: number | undefined;
2880
+ }[];
2881
+ exceptions: unknown[];
2882
+ } | null | undefined;
2883
+ deploy?: {
2884
+ version: 1;
2885
+ commit_sha: string | null;
2886
+ branch: string | null;
2887
+ deployed_at: string | null;
2888
+ deploy_version: string | null;
2889
+ regression_window: boolean | null;
2890
+ } | null | undefined;
2891
+ git?: {
2892
+ dirty: boolean;
2893
+ version: 1;
2894
+ branch: string | null;
2895
+ commit: string | null;
2896
+ commit_short: string | null;
2897
+ repo: string | null;
2898
+ source: "unknown" | "config" | "env" | "local";
2899
+ } | null | undefined;
2900
+ dependencies?: {
2901
+ version: 1;
2902
+ items: {
2903
+ status: "unknown" | "ok" | "degraded" | "failed";
2904
+ name: string;
2905
+ notes: string | null;
2906
+ }[];
2907
+ } | null | undefined;
2908
+ };
2909
+ verification: {
2910
+ verification_type: string | null;
2911
+ synthetic: boolean;
2912
+ local_verified: boolean;
2913
+ production_verified: boolean;
2914
+ };
2915
+ links: {
2916
+ self: string | null;
2917
+ reproduction: string | null;
2918
+ incident: string | null;
2919
+ project: string | null;
2920
+ docs: string | null;
2921
+ };
2922
+ redaction: {
2923
+ fields: string[];
2924
+ notes: string | null;
2925
+ redacted: boolean;
2926
+ };
2927
+ metadata: {
2928
+ updated_at: string;
2929
+ created_at: string;
2930
+ generator_version: string;
2931
+ generation_number: number;
2932
+ };
2933
+ }, {
2934
+ service: {
2935
+ name: string;
2936
+ runtime: string | null;
2937
+ framework: string | null;
2938
+ version: string | null;
2939
+ id: string;
2940
+ region: string | null;
2941
+ };
2942
+ reproduction: {
2943
+ confidence: number;
2944
+ possible: boolean;
2945
+ reason: string;
2946
+ artifacts: {
2947
+ curl: string | null;
2948
+ httpie: string | null;
2949
+ json_spec: {
2950
+ method: string;
2951
+ headers: Record<string, unknown>;
2952
+ url: string;
2953
+ query?: Record<string, unknown> | undefined;
2954
+ body?: unknown;
2955
+ } | null;
2956
+ } | null;
2957
+ feasibility_reference?: {
2958
+ standard_http_bugs: string;
2959
+ frontend_interaction_plus_failing_request: string;
2960
+ background_jobs: string;
2961
+ race_conditions: string;
2962
+ external_outage_timing: string;
2963
+ } | null | undefined;
2964
+ };
2965
+ project: {
2966
+ environment: string;
2967
+ id: string;
2968
+ slug: string;
2969
+ };
2970
+ bundle_version: 1;
2971
+ bundle_id: string;
2972
+ bundle_type: "failure" | "improvement";
2973
+ captured_at: string;
2974
+ sdk: {
2975
+ name: string;
2976
+ version: string;
2977
+ };
2978
+ signal: {
2979
+ fingerprint: string;
2980
+ signal_id: string;
2981
+ signal_type: "warning" | "frontend_exception" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
2982
+ severity: "critical" | "low" | "medium" | "high";
2983
+ first_seen_at: string;
2984
+ last_seen_at: string;
2985
+ occurrence_count: number;
2986
+ source_event_types: string[];
2987
+ };
2988
+ summary: {
2989
+ severity: "critical" | "low" | "medium" | "high";
2990
+ title: string;
2991
+ description: string;
2992
+ likely_cause: string | null;
2993
+ confidence: number;
2994
+ recommended_action: string | null;
2995
+ error_type: string | null;
2996
+ error_message: string | null;
2997
+ first_application_frame: {
2998
+ function: string | null;
2999
+ file: string | null;
3000
+ line: number | null;
3001
+ } | null;
3002
+ primary_signal: string | null;
3003
+ signals: {
3004
+ new_deploy: boolean;
3005
+ regression_suspected: boolean;
3006
+ customer_visible: boolean;
3007
+ };
3008
+ };
3009
+ impact: {
3010
+ regression_suspected: boolean;
3011
+ customer_visible: boolean;
3012
+ affected_users_estimate: number | null;
3013
+ affected_requests_estimate: number | null;
3014
+ business_criticality: "critical" | "low" | "medium" | "high";
3015
+ };
3016
+ context: {
3017
+ error?: {
3018
+ message: string;
3019
+ name: string;
3020
+ version: 1;
3021
+ stack: string;
3022
+ handled: boolean;
3023
+ top_frames: string[];
3024
+ } | null | undefined;
3025
+ runtime?: {
3026
+ name: string;
3027
+ framework: string | null;
3028
+ version: 1;
3029
+ runtime_version: string | null;
3030
+ platform: string | null;
3031
+ arch: string | null;
3032
+ pid: number | null;
3033
+ cwd: string | null;
3034
+ uptime_sec: number | null;
3035
+ hostname: string | null;
3036
+ thread_id: string | number | null;
3037
+ framework_version: string | null;
3038
+ memory: {
3039
+ rss: number | null;
3040
+ heap_total: number | null;
3041
+ heap_used: number | null;
3042
+ external: number | null;
3043
+ peak: number | null;
3044
+ } | null;
3045
+ framework_extras?: Record<string, unknown> | null | undefined;
3046
+ } | null | undefined;
3047
+ environment?: {
3048
+ version: 1;
3049
+ os: string | null;
3050
+ host: string | null;
3051
+ container_id: string | null;
3052
+ } | null | undefined;
3053
+ request?: {
3054
+ path: string;
3055
+ request_id: string | null;
3056
+ version: 1;
3057
+ method: string;
3058
+ query: Record<string, unknown>;
3059
+ headers: Record<string, unknown>;
3060
+ route_template: string | null;
3061
+ body?: unknown;
3062
+ } | null | undefined;
3063
+ response?: {
3064
+ version: 1;
3065
+ status_code: number;
3066
+ duration_ms: number | null;
3067
+ headers?: Record<string, unknown> | undefined;
3068
+ body?: unknown;
3069
+ } | null | undefined;
3070
+ probe_data?: {
3071
+ version: 1;
3072
+ items: {
3073
+ label: string;
3074
+ data: Record<string, unknown>;
3075
+ timestamp: string;
3076
+ activation_id: string | null;
3077
+ }[];
3078
+ } | null | undefined;
3079
+ device?: {
3080
+ version: 1;
3081
+ user_agent: string | null;
3082
+ os: {
3083
+ name: string | null;
3084
+ version: string | null;
3085
+ };
3086
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
3087
+ screen: {
3088
+ width: number;
3089
+ height: number;
3090
+ };
3091
+ viewport: {
3092
+ width: number;
3093
+ height: number;
3094
+ };
3095
+ device_pixel_ratio: number | null;
3096
+ touch_capable: boolean | null;
3097
+ language: string | null;
3098
+ connection_type: string | null;
3099
+ color_scheme_preference: "light" | "dark" | "no-preference" | null;
3100
+ browser: {
3101
+ name: string | null;
3102
+ version: string | null;
3103
+ };
3104
+ } | null | undefined;
3105
+ logs?: {
3106
+ version: 1;
3107
+ items: {
3108
+ message: string;
3109
+ level: string;
3110
+ timestamp: string;
3111
+ attributes: Record<string, unknown>;
3112
+ }[];
3113
+ } | null | undefined;
3114
+ frontend?: {
3115
+ version: 1;
3116
+ dom_context: {
3117
+ mode: "lightweight";
3118
+ html_excerpt: string;
3119
+ } | null;
3120
+ route_changes: {
3121
+ ts: string;
3122
+ from: string;
3123
+ to: string;
3124
+ }[];
3125
+ clicks: {
3126
+ label: string;
3127
+ ts: string;
3128
+ selector: string;
3129
+ }[];
3130
+ form_submissions: {
3131
+ ts: string;
3132
+ form: string;
3133
+ fields: Record<string, unknown>;
3134
+ }[];
3135
+ console_logs: unknown[];
3136
+ network_requests: {
3137
+ status: number;
3138
+ method: string;
3139
+ ts: string;
3140
+ url: string;
3141
+ duration_ms?: number | undefined;
3142
+ response_headers?: Record<string, string> | undefined;
3143
+ response_body?: unknown;
3144
+ caller_trace?: string[] | undefined;
3145
+ request_body?: unknown;
3146
+ response_content_length?: number | undefined;
3147
+ }[];
3148
+ exceptions: unknown[];
3149
+ } | null | undefined;
3150
+ deploy?: {
3151
+ version: 1;
3152
+ commit_sha: string | null;
3153
+ branch: string | null;
3154
+ deployed_at: string | null;
3155
+ deploy_version: string | null;
3156
+ regression_window: boolean | null;
3157
+ } | null | undefined;
3158
+ git?: {
3159
+ dirty: boolean;
3160
+ version: 1;
3161
+ branch: string | null;
3162
+ commit: string | null;
3163
+ commit_short: string | null;
3164
+ repo: string | null;
3165
+ source: "unknown" | "config" | "env" | "local";
3166
+ } | null | undefined;
3167
+ dependencies?: {
3168
+ version: 1;
3169
+ items: {
3170
+ status: "unknown" | "ok" | "degraded" | "failed";
3171
+ name: string;
3172
+ notes: string | null;
3173
+ }[];
3174
+ } | null | undefined;
3175
+ };
3176
+ verification: {
3177
+ verification_type: string | null;
3178
+ synthetic: boolean;
3179
+ local_verified: boolean;
3180
+ production_verified: boolean;
3181
+ };
3182
+ links: {
3183
+ self: string | null;
3184
+ reproduction: string | null;
3185
+ incident: string | null;
3186
+ project: string | null;
3187
+ docs: string | null;
3188
+ };
3189
+ redaction: {
3190
+ fields: string[];
3191
+ notes: string | null;
3192
+ redacted: boolean;
3193
+ };
3194
+ metadata: {
3195
+ updated_at: string;
3196
+ created_at: string;
3197
+ generator_version: string;
3198
+ generation_number: number;
3199
+ };
3200
+ }>;
3201
+ export type BundleV1 = z.infer<typeof BundleV1Schema>;
3202
+ export { TIER_CAPABILITIES, getTierCapabilities, isSelfHostMode, type TierName, type TierCapabilities } from "./tier-capabilities.js";
3203
+ export { EventClassValues, EventClassSchema, type EventClass, CapturePresetValues, CapturePresetSchema, type CapturePreset, CaptureLogsSchema, CaptureRequestEventsSchema, CaptureBreadcrumbsSchema, CaptureProbeEventsSchema, type CaptureLogs, type CaptureRequestEvents, type CaptureBreadcrumbs, type CaptureProbeEvents, type ResolvedCapturePolicy, CapturePolicySchema, type CapturePolicyRecord, CapturePolicyUpdateSchema, type CapturePolicyUpdate, PRESET_DEFAULTS, DEFAULT_PRESET_BY_TIER, resolvePolicy, getDefaultPreset, shouldCaptureEvent, } from "./capture-policy.js";
3204
+ //# sourceMappingURL=index.d.ts.map