@debugbundle/shared-types 1.3.1 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -14,13 +14,13 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
14
14
  framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
15
  environment: z.ZodString;
16
16
  }, "strip", z.ZodTypeAny, {
17
- name: string;
18
17
  environment: string;
18
+ name: string;
19
19
  runtime?: string | null | undefined;
20
20
  framework?: string | null | undefined;
21
21
  }, {
22
- name: string;
23
22
  environment: string;
23
+ name: string;
24
24
  runtime?: string | null | undefined;
25
25
  framework?: string | null | undefined;
26
26
  }>;
@@ -31,25 +31,25 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
31
31
  session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  user_id_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
33
  }, "strict", z.ZodTypeAny, {
34
- request_id?: string | null | undefined;
35
34
  trace_id?: string | null | undefined;
36
35
  session_id?: string | null | undefined;
37
36
  user_id_hash?: string | null | undefined;
38
- }, {
39
37
  request_id?: string | null | undefined;
38
+ }, {
40
39
  trace_id?: string | null | undefined;
41
40
  session_id?: string | null | undefined;
42
41
  user_id_hash?: string | null | undefined;
42
+ request_id?: string | null | undefined;
43
43
  }>, {
44
44
  request_id: string | null;
45
45
  trace_id: string | null;
46
46
  session_id: string | null;
47
47
  user_id_hash: string | null;
48
48
  }, {
49
- request_id?: string | null | undefined;
50
49
  trace_id?: string | null | undefined;
51
50
  session_id?: string | null | undefined;
52
51
  user_id_hash?: string | null | undefined;
52
+ request_id?: string | null | undefined;
53
53
  }>>;
54
54
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
55
55
  } & {
@@ -67,15 +67,15 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
67
67
  body: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
68
68
  }, "strip", z.ZodTypeAny, {
69
69
  path: string;
70
+ query: Record<string, unknown>;
70
71
  method: string;
71
72
  headers: Record<string, unknown>;
72
- query: Record<string, unknown>;
73
73
  body?: unknown;
74
74
  }, {
75
75
  path: string;
76
+ query: Record<string, unknown>;
76
77
  method: string;
77
78
  headers: Record<string, unknown>;
78
- query: Record<string, unknown>;
79
79
  body?: unknown;
80
80
  }>;
81
81
  response: z.ZodObject<{
@@ -84,12 +84,12 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
84
84
  body: z.ZodOptional<z.ZodUnknown>;
85
85
  }, "strip", z.ZodTypeAny, {
86
86
  status_code: number;
87
- headers?: Record<string, unknown> | undefined;
88
87
  body?: unknown;
88
+ headers?: Record<string, unknown> | undefined;
89
89
  }, {
90
90
  status_code: number;
91
- headers?: Record<string, unknown> | undefined;
92
91
  body?: unknown;
92
+ headers?: Record<string, unknown> | undefined;
93
93
  }>;
94
94
  runtime: z.ZodObject<{
95
95
  version: z.ZodString;
@@ -195,6 +195,7 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
195
195
  }>>;
196
196
  }, "strict", z.ZodTypeAny, {
197
197
  message: string;
198
+ name: string;
198
199
  runtime: {
199
200
  version: string;
200
201
  platform?: string | null | undefined;
@@ -214,18 +215,17 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
214
215
  } | null | undefined;
215
216
  framework_extras?: Record<string, unknown> | null | undefined;
216
217
  };
217
- name: string;
218
218
  request: {
219
219
  path: string;
220
+ query: Record<string, unknown>;
220
221
  method: string;
221
222
  headers: Record<string, unknown>;
222
- query: Record<string, unknown>;
223
223
  body?: unknown;
224
224
  };
225
225
  response: {
226
226
  status_code: number;
227
- headers?: Record<string, unknown> | undefined;
228
227
  body?: unknown;
228
+ headers?: Record<string, unknown> | undefined;
229
229
  };
230
230
  stack: string;
231
231
  handled: boolean;
@@ -240,6 +240,7 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
240
240
  } | undefined;
241
241
  }, {
242
242
  message: string;
243
+ name: string;
243
244
  runtime: {
244
245
  version: string;
245
246
  platform?: string | null | undefined;
@@ -259,18 +260,17 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
259
260
  } | null | undefined;
260
261
  framework_extras?: Record<string, unknown> | null | undefined;
261
262
  };
262
- name: string;
263
263
  request: {
264
264
  path: string;
265
+ query: Record<string, unknown>;
265
266
  method: string;
266
267
  headers: Record<string, unknown>;
267
- query: Record<string, unknown>;
268
268
  body?: unknown;
269
269
  };
270
270
  response: {
271
271
  status_code: number;
272
- headers?: Record<string, unknown> | undefined;
273
272
  body?: unknown;
273
+ headers?: Record<string, unknown> | undefined;
274
274
  };
275
275
  stack: string;
276
276
  handled: boolean;
@@ -286,19 +286,20 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
286
286
  }>;
287
287
  }, "strict", z.ZodTypeAny, {
288
288
  event_id: string;
289
- event_type: "backend_exception";
289
+ occurred_at: string;
290
290
  service: {
291
- name: string;
292
291
  environment: string;
292
+ name: string;
293
293
  runtime?: string | null | undefined;
294
294
  framework?: string | null | undefined;
295
295
  };
296
296
  schema_version: string;
297
+ event_type: "backend_exception";
297
298
  sdk_name: string;
298
299
  sdk_version: string;
299
- occurred_at: string;
300
300
  payload: {
301
301
  message: string;
302
+ name: string;
302
303
  runtime: {
303
304
  version: string;
304
305
  platform?: string | null | undefined;
@@ -318,18 +319,17 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
318
319
  } | null | undefined;
319
320
  framework_extras?: Record<string, unknown> | null | undefined;
320
321
  };
321
- name: string;
322
322
  request: {
323
323
  path: string;
324
+ query: Record<string, unknown>;
324
325
  method: string;
325
326
  headers: Record<string, unknown>;
326
- query: Record<string, unknown>;
327
327
  body?: unknown;
328
328
  };
329
329
  response: {
330
330
  status_code: number;
331
- headers?: Record<string, unknown> | undefined;
332
331
  body?: unknown;
332
+ headers?: Record<string, unknown> | undefined;
333
333
  };
334
334
  stack: string;
335
335
  handled: boolean;
@@ -344,7 +344,6 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
344
344
  } | undefined;
345
345
  };
346
346
  project_id?: string | null | undefined;
347
- context?: Record<string, unknown> | undefined;
348
347
  project_token?: string | undefined;
349
348
  correlation?: {
350
349
  request_id: string | null;
@@ -352,21 +351,23 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
352
351
  session_id: string | null;
353
352
  user_id_hash: string | null;
354
353
  } | undefined;
354
+ context?: Record<string, unknown> | undefined;
355
355
  }, {
356
356
  event_id: string;
357
- event_type: "backend_exception";
357
+ occurred_at: string;
358
358
  service: {
359
- name: string;
360
359
  environment: string;
360
+ name: string;
361
361
  runtime?: string | null | undefined;
362
362
  framework?: string | null | undefined;
363
363
  };
364
364
  schema_version: string;
365
+ event_type: "backend_exception";
365
366
  sdk_name: string;
366
367
  sdk_version: string;
367
- occurred_at: string;
368
368
  payload: {
369
369
  message: string;
370
+ name: string;
370
371
  runtime: {
371
372
  version: string;
372
373
  platform?: string | null | undefined;
@@ -386,18 +387,17 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
386
387
  } | null | undefined;
387
388
  framework_extras?: Record<string, unknown> | null | undefined;
388
389
  };
389
- name: string;
390
390
  request: {
391
391
  path: string;
392
+ query: Record<string, unknown>;
392
393
  method: string;
393
394
  headers: Record<string, unknown>;
394
- query: Record<string, unknown>;
395
395
  body?: unknown;
396
396
  };
397
397
  response: {
398
398
  status_code: number;
399
- headers?: Record<string, unknown> | undefined;
400
399
  body?: unknown;
400
+ headers?: Record<string, unknown> | undefined;
401
401
  };
402
402
  stack: string;
403
403
  handled: boolean;
@@ -412,14 +412,14 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
412
412
  } | undefined;
413
413
  };
414
414
  project_id?: string | null | undefined;
415
- context?: Record<string, unknown> | undefined;
416
415
  project_token?: string | undefined;
417
416
  correlation?: {
418
- request_id?: string | null | undefined;
419
417
  trace_id?: string | null | undefined;
420
418
  session_id?: string | null | undefined;
421
419
  user_id_hash?: string | null | undefined;
420
+ request_id?: string | null | undefined;
422
421
  } | undefined;
422
+ context?: Record<string, unknown> | undefined;
423
423
  }>, z.ZodObject<{
424
424
  schema_version: z.ZodString;
425
425
  event_id: z.ZodString;
@@ -433,13 +433,13 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
433
433
  framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
434
434
  environment: z.ZodString;
435
435
  }, "strip", z.ZodTypeAny, {
436
- name: string;
437
436
  environment: string;
437
+ name: string;
438
438
  runtime?: string | null | undefined;
439
439
  framework?: string | null | undefined;
440
440
  }, {
441
- name: string;
442
441
  environment: string;
442
+ name: string;
443
443
  runtime?: string | null | undefined;
444
444
  framework?: string | null | undefined;
445
445
  }>;
@@ -450,25 +450,25 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
450
450
  session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
451
451
  user_id_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
452
452
  }, "strict", z.ZodTypeAny, {
453
- request_id?: string | null | undefined;
454
453
  trace_id?: string | null | undefined;
455
454
  session_id?: string | null | undefined;
456
455
  user_id_hash?: string | null | undefined;
457
- }, {
458
456
  request_id?: string | null | undefined;
457
+ }, {
459
458
  trace_id?: string | null | undefined;
460
459
  session_id?: string | null | undefined;
461
460
  user_id_hash?: string | null | undefined;
461
+ request_id?: string | null | undefined;
462
462
  }>, {
463
463
  request_id: string | null;
464
464
  trace_id: string | null;
465
465
  session_id: string | null;
466
466
  user_id_hash: string | null;
467
467
  }, {
468
- request_id?: string | null | undefined;
469
468
  trace_id?: string | null | undefined;
470
469
  session_id?: string | null | undefined;
471
470
  user_id_hash?: string | null | undefined;
471
+ request_id?: string | null | undefined;
472
472
  }>>;
473
473
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
474
474
  } & {
@@ -486,22 +486,22 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
486
486
  response_body: z.ZodOptional<z.ZodUnknown>;
487
487
  }, "strict", z.ZodTypeAny, {
488
488
  path: string;
489
+ duration_ms: number;
490
+ query: Record<string, unknown>;
489
491
  response_status: number;
490
492
  method: string;
491
493
  headers: Record<string, unknown>;
492
- query: Record<string, unknown>;
493
- duration_ms: number;
494
494
  body?: unknown;
495
495
  route_template?: string | null | undefined;
496
496
  response_headers?: Record<string, unknown> | undefined;
497
497
  response_body?: unknown;
498
498
  }, {
499
499
  path: string;
500
+ duration_ms: number;
501
+ query: Record<string, unknown>;
500
502
  response_status: number;
501
503
  method: string;
502
504
  headers: Record<string, unknown>;
503
- query: Record<string, unknown>;
504
- duration_ms: number;
505
505
  body?: unknown;
506
506
  route_template?: string | null | undefined;
507
507
  response_headers?: Record<string, unknown> | undefined;
@@ -509,31 +509,30 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
509
509
  }>;
510
510
  }, "strict", z.ZodTypeAny, {
511
511
  event_id: string;
512
- event_type: "request_event";
512
+ occurred_at: string;
513
513
  service: {
514
- name: string;
515
514
  environment: string;
515
+ name: string;
516
516
  runtime?: string | null | undefined;
517
517
  framework?: string | null | undefined;
518
518
  };
519
519
  schema_version: string;
520
+ event_type: "request_event";
520
521
  sdk_name: string;
521
522
  sdk_version: string;
522
- occurred_at: string;
523
523
  payload: {
524
524
  path: string;
525
+ duration_ms: number;
526
+ query: Record<string, unknown>;
525
527
  response_status: number;
526
528
  method: string;
527
529
  headers: Record<string, unknown>;
528
- query: Record<string, unknown>;
529
- duration_ms: number;
530
530
  body?: unknown;
531
531
  route_template?: string | null | undefined;
532
532
  response_headers?: Record<string, unknown> | undefined;
533
533
  response_body?: unknown;
534
534
  };
535
535
  project_id?: string | null | undefined;
536
- context?: Record<string, unknown> | undefined;
537
536
  project_token?: string | undefined;
538
537
  correlation?: {
539
538
  request_id: string | null;
@@ -541,40 +540,41 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
541
540
  session_id: string | null;
542
541
  user_id_hash: string | null;
543
542
  } | undefined;
543
+ context?: Record<string, unknown> | undefined;
544
544
  }, {
545
545
  event_id: string;
546
- event_type: "request_event";
546
+ occurred_at: string;
547
547
  service: {
548
- name: string;
549
548
  environment: string;
549
+ name: string;
550
550
  runtime?: string | null | undefined;
551
551
  framework?: string | null | undefined;
552
552
  };
553
553
  schema_version: string;
554
+ event_type: "request_event";
554
555
  sdk_name: string;
555
556
  sdk_version: string;
556
- occurred_at: string;
557
557
  payload: {
558
558
  path: string;
559
+ duration_ms: number;
560
+ query: Record<string, unknown>;
559
561
  response_status: number;
560
562
  method: string;
561
563
  headers: Record<string, unknown>;
562
- query: Record<string, unknown>;
563
- duration_ms: number;
564
564
  body?: unknown;
565
565
  route_template?: string | null | undefined;
566
566
  response_headers?: Record<string, unknown> | undefined;
567
567
  response_body?: unknown;
568
568
  };
569
569
  project_id?: string | null | undefined;
570
- context?: Record<string, unknown> | undefined;
571
570
  project_token?: string | undefined;
572
571
  correlation?: {
573
- request_id?: string | null | undefined;
574
572
  trace_id?: string | null | undefined;
575
573
  session_id?: string | null | undefined;
576
574
  user_id_hash?: string | null | undefined;
575
+ request_id?: string | null | undefined;
577
576
  } | undefined;
577
+ context?: Record<string, unknown> | undefined;
578
578
  }>, z.ZodObject<{
579
579
  schema_version: z.ZodString;
580
580
  event_id: z.ZodString;
@@ -588,13 +588,13 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
588
588
  framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
589
589
  environment: z.ZodString;
590
590
  }, "strip", z.ZodTypeAny, {
591
- name: string;
592
591
  environment: string;
592
+ name: string;
593
593
  runtime?: string | null | undefined;
594
594
  framework?: string | null | undefined;
595
595
  }, {
596
- name: string;
597
596
  environment: string;
597
+ name: string;
598
598
  runtime?: string | null | undefined;
599
599
  framework?: string | null | undefined;
600
600
  }>;
@@ -605,25 +605,25 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
605
605
  session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
606
606
  user_id_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
607
607
  }, "strict", z.ZodTypeAny, {
608
- request_id?: string | null | undefined;
609
608
  trace_id?: string | null | undefined;
610
609
  session_id?: string | null | undefined;
611
610
  user_id_hash?: string | null | undefined;
612
- }, {
613
611
  request_id?: string | null | undefined;
612
+ }, {
614
613
  trace_id?: string | null | undefined;
615
614
  session_id?: string | null | undefined;
616
615
  user_id_hash?: string | null | undefined;
616
+ request_id?: string | null | undefined;
617
617
  }>, {
618
618
  request_id: string | null;
619
619
  trace_id: string | null;
620
620
  session_id: string | null;
621
621
  user_id_hash: string | null;
622
622
  }, {
623
- request_id?: string | null | undefined;
624
623
  trace_id?: string | null | undefined;
625
624
  session_id?: string | null | undefined;
626
625
  user_id_hash?: string | null | undefined;
626
+ request_id?: string | null | undefined;
627
627
  }>>;
628
628
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
629
629
  } & {
@@ -643,24 +643,23 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
643
643
  }>;
644
644
  }, "strict", z.ZodTypeAny, {
645
645
  event_id: string;
646
- event_type: "log_event";
646
+ occurred_at: string;
647
647
  service: {
648
- name: string;
649
648
  environment: string;
649
+ name: string;
650
650
  runtime?: string | null | undefined;
651
651
  framework?: string | null | undefined;
652
652
  };
653
653
  schema_version: string;
654
+ event_type: "log_event";
654
655
  sdk_name: string;
655
656
  sdk_version: string;
656
- occurred_at: string;
657
657
  payload: {
658
658
  message: string;
659
659
  level: string;
660
660
  attributes: Record<string, unknown>;
661
661
  };
662
662
  project_id?: string | null | undefined;
663
- context?: Record<string, unknown> | undefined;
664
663
  project_token?: string | undefined;
665
664
  correlation?: {
666
665
  request_id: string | null;
@@ -668,33 +667,34 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
668
667
  session_id: string | null;
669
668
  user_id_hash: string | null;
670
669
  } | undefined;
670
+ context?: Record<string, unknown> | undefined;
671
671
  }, {
672
672
  event_id: string;
673
- event_type: "log_event";
673
+ occurred_at: string;
674
674
  service: {
675
- name: string;
676
675
  environment: string;
676
+ name: string;
677
677
  runtime?: string | null | undefined;
678
678
  framework?: string | null | undefined;
679
679
  };
680
680
  schema_version: string;
681
+ event_type: "log_event";
681
682
  sdk_name: string;
682
683
  sdk_version: string;
683
- occurred_at: string;
684
684
  payload: {
685
685
  message: string;
686
686
  level: string;
687
687
  attributes: Record<string, unknown>;
688
688
  };
689
689
  project_id?: string | null | undefined;
690
- context?: Record<string, unknown> | undefined;
691
690
  project_token?: string | undefined;
692
691
  correlation?: {
693
- request_id?: string | null | undefined;
694
692
  trace_id?: string | null | undefined;
695
693
  session_id?: string | null | undefined;
696
694
  user_id_hash?: string | null | undefined;
695
+ request_id?: string | null | undefined;
697
696
  } | undefined;
697
+ context?: Record<string, unknown> | undefined;
698
698
  }>, z.ZodObject<{
699
699
  schema_version: z.ZodString;
700
700
  event_id: z.ZodString;
@@ -708,13 +708,13 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
708
708
  framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
709
709
  environment: z.ZodString;
710
710
  }, "strip", z.ZodTypeAny, {
711
- name: string;
712
711
  environment: string;
712
+ name: string;
713
713
  runtime?: string | null | undefined;
714
714
  framework?: string | null | undefined;
715
715
  }, {
716
- name: string;
717
716
  environment: string;
717
+ name: string;
718
718
  runtime?: string | null | undefined;
719
719
  framework?: string | null | undefined;
720
720
  }>;
@@ -725,25 +725,25 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
725
725
  session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
726
726
  user_id_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
727
727
  }, "strict", z.ZodTypeAny, {
728
- request_id?: string | null | undefined;
729
728
  trace_id?: string | null | undefined;
730
729
  session_id?: string | null | undefined;
731
730
  user_id_hash?: string | null | undefined;
732
- }, {
733
731
  request_id?: string | null | undefined;
732
+ }, {
734
733
  trace_id?: string | null | undefined;
735
734
  session_id?: string | null | undefined;
736
735
  user_id_hash?: string | null | undefined;
736
+ request_id?: string | null | undefined;
737
737
  }>, {
738
738
  request_id: string | null;
739
739
  trace_id: string | null;
740
740
  session_id: string | null;
741
741
  user_id_hash: string | null;
742
742
  }, {
743
- request_id?: string | null | undefined;
744
743
  trace_id?: string | null | undefined;
745
744
  session_id?: string | null | undefined;
746
745
  user_id_hash?: string | null | undefined;
746
+ request_id?: string | null | undefined;
747
747
  }>>;
748
748
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
749
749
  } & {
@@ -753,34 +753,33 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
753
753
  route: z.ZodOptional<z.ZodNullable<z.ZodString>>;
754
754
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
755
755
  }, "strict", z.ZodTypeAny, {
756
- breadcrumb_type: "network_request" | "route_change" | "click" | "form_submit" | "console_log";
756
+ breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
757
757
  data: Record<string, unknown>;
758
758
  route?: string | null | undefined;
759
759
  }, {
760
- breadcrumb_type: "network_request" | "route_change" | "click" | "form_submit" | "console_log";
760
+ breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
761
761
  data: Record<string, unknown>;
762
762
  route?: string | null | undefined;
763
763
  }>;
764
764
  }, "strict", z.ZodTypeAny, {
765
765
  event_id: string;
766
- event_type: "frontend_breadcrumb";
766
+ occurred_at: string;
767
767
  service: {
768
- name: string;
769
768
  environment: string;
769
+ name: string;
770
770
  runtime?: string | null | undefined;
771
771
  framework?: string | null | undefined;
772
772
  };
773
773
  schema_version: string;
774
+ event_type: "frontend_breadcrumb";
774
775
  sdk_name: string;
775
776
  sdk_version: string;
776
- occurred_at: string;
777
777
  payload: {
778
- breadcrumb_type: "network_request" | "route_change" | "click" | "form_submit" | "console_log";
778
+ breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
779
779
  data: Record<string, unknown>;
780
780
  route?: string | null | undefined;
781
781
  };
782
782
  project_id?: string | null | undefined;
783
- context?: Record<string, unknown> | undefined;
784
783
  project_token?: string | undefined;
785
784
  correlation?: {
786
785
  request_id: string | null;
@@ -788,33 +787,34 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
788
787
  session_id: string | null;
789
788
  user_id_hash: string | null;
790
789
  } | undefined;
790
+ context?: Record<string, unknown> | undefined;
791
791
  }, {
792
792
  event_id: string;
793
- event_type: "frontend_breadcrumb";
793
+ occurred_at: string;
794
794
  service: {
795
- name: string;
796
795
  environment: string;
796
+ name: string;
797
797
  runtime?: string | null | undefined;
798
798
  framework?: string | null | undefined;
799
799
  };
800
800
  schema_version: string;
801
+ event_type: "frontend_breadcrumb";
801
802
  sdk_name: string;
802
803
  sdk_version: string;
803
- occurred_at: string;
804
804
  payload: {
805
- breadcrumb_type: "network_request" | "route_change" | "click" | "form_submit" | "console_log";
805
+ breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
806
806
  data: Record<string, unknown>;
807
807
  route?: string | null | undefined;
808
808
  };
809
809
  project_id?: string | null | undefined;
810
- context?: Record<string, unknown> | undefined;
811
810
  project_token?: string | undefined;
812
811
  correlation?: {
813
- request_id?: string | null | undefined;
814
812
  trace_id?: string | null | undefined;
815
813
  session_id?: string | null | undefined;
816
814
  user_id_hash?: string | null | undefined;
815
+ request_id?: string | null | undefined;
817
816
  } | undefined;
817
+ context?: Record<string, unknown> | undefined;
818
818
  }>, z.ZodObject<{
819
819
  schema_version: z.ZodString;
820
820
  event_id: z.ZodString;
@@ -828,13 +828,13 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
828
828
  framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
829
829
  environment: z.ZodString;
830
830
  }, "strip", z.ZodTypeAny, {
831
- name: string;
832
831
  environment: string;
832
+ name: string;
833
833
  runtime?: string | null | undefined;
834
834
  framework?: string | null | undefined;
835
835
  }, {
836
- name: string;
837
836
  environment: string;
837
+ name: string;
838
838
  runtime?: string | null | undefined;
839
839
  framework?: string | null | undefined;
840
840
  }>;
@@ -845,25 +845,25 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
845
845
  session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
846
846
  user_id_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
847
847
  }, "strict", z.ZodTypeAny, {
848
- request_id?: string | null | undefined;
849
848
  trace_id?: string | null | undefined;
850
849
  session_id?: string | null | undefined;
851
850
  user_id_hash?: string | null | undefined;
852
- }, {
853
851
  request_id?: string | null | undefined;
852
+ }, {
854
853
  trace_id?: string | null | undefined;
855
854
  session_id?: string | null | undefined;
856
855
  user_id_hash?: string | null | undefined;
856
+ request_id?: string | null | undefined;
857
857
  }>, {
858
858
  request_id: string | null;
859
859
  trace_id: string | null;
860
860
  session_id: string | null;
861
861
  user_id_hash: string | null;
862
862
  }, {
863
- request_id?: string | null | undefined;
864
863
  trace_id?: string | null | undefined;
865
864
  session_id?: string | null | undefined;
866
865
  user_id_hash?: string | null | undefined;
866
+ request_id?: string | null | undefined;
867
867
  }>>;
868
868
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
869
869
  } & {
@@ -877,11 +877,11 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
877
877
  name: z.ZodString;
878
878
  version: z.ZodString;
879
879
  }, "strip", z.ZodTypeAny, {
880
- version: string;
881
880
  name: string;
882
- }, {
883
881
  version: string;
882
+ }, {
884
883
  name: string;
884
+ version: string;
885
885
  }>;
886
886
  breadcrumbs: z.ZodOptional<z.ZodArray<z.ZodObject<{
887
887
  breadcrumb_type: z.ZodEnum<["route_change", "click", "form_submit", "console_log", "network_request"]>;
@@ -890,12 +890,12 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
890
890
  } & {
891
891
  ts: z.ZodString;
892
892
  }, "strict", z.ZodTypeAny, {
893
- breadcrumb_type: "network_request" | "route_change" | "click" | "form_submit" | "console_log";
893
+ breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
894
894
  data: Record<string, unknown>;
895
895
  ts: string;
896
896
  route?: string | null | undefined;
897
897
  }, {
898
- breadcrumb_type: "network_request" | "route_change" | "click" | "form_submit" | "console_log";
898
+ breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
899
899
  data: Record<string, unknown>;
900
900
  ts: string;
901
901
  route?: string | null | undefined;
@@ -906,11 +906,11 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
906
906
  name: z.ZodNullable<z.ZodString>;
907
907
  version: z.ZodNullable<z.ZodString>;
908
908
  }, "strip", z.ZodTypeAny, {
909
- version: string | null;
910
909
  name: string | null;
911
- }, {
912
910
  version: string | null;
911
+ }, {
913
912
  name: string | null;
913
+ version: string | null;
914
914
  }>;
915
915
  device_type: z.ZodEnum<["desktop", "mobile", "tablet", "unknown"]>;
916
916
  screen: z.ZodObject<{
@@ -939,12 +939,13 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
939
939
  connection_type: z.ZodNullable<z.ZodString>;
940
940
  color_scheme_preference: z.ZodNullable<z.ZodEnum<["light", "dark", "no-preference"]>>;
941
941
  }, "strict", z.ZodTypeAny, {
942
- user_agent: string | null;
942
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
943
+ language: string | null;
943
944
  os: {
944
- version: string | null;
945
945
  name: string | null;
946
+ version: string | null;
946
947
  };
947
- device_type: "unknown" | "desktop" | "mobile" | "tablet";
948
+ user_agent: string | null;
948
949
  screen: {
949
950
  width: number;
950
951
  height: number;
@@ -955,16 +956,16 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
955
956
  };
956
957
  device_pixel_ratio: number | null;
957
958
  touch_capable: boolean | null;
958
- language: string | null;
959
959
  connection_type: string | null;
960
960
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
961
961
  }, {
962
- user_agent: string | null;
962
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
963
+ language: string | null;
963
964
  os: {
964
- version: string | null;
965
965
  name: string | null;
966
+ version: string | null;
966
967
  };
967
- device_type: "unknown" | "desktop" | "mobile" | "tablet";
968
+ user_agent: string | null;
968
969
  screen: {
969
970
  width: number;
970
971
  height: number;
@@ -975,7 +976,6 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
975
976
  };
976
977
  device_pixel_ratio: number | null;
977
978
  touch_capable: boolean | null;
978
- language: string | null;
979
979
  connection_type: string | null;
980
980
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
981
981
  }>>>;
@@ -1062,6 +1062,7 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1062
1062
  opaque: z.ZodBoolean;
1063
1063
  }, "strict", z.ZodTypeAny, {
1064
1064
  message: string | null;
1065
+ kind: "window_error" | "resource_error";
1065
1066
  target: {
1066
1067
  source_url: string | null;
1067
1068
  tag_name: string | null;
@@ -1076,7 +1077,6 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1076
1077
  integrity_present?: boolean | undefined;
1077
1078
  } | undefined;
1078
1079
  } | null;
1079
- kind: "window_error" | "resource_error";
1080
1080
  file_name: string | null;
1081
1081
  opaque: boolean;
1082
1082
  line_number: number | null;
@@ -1089,6 +1089,7 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1089
1089
  } | undefined;
1090
1090
  }, {
1091
1091
  message: string | null;
1092
+ kind: "window_error" | "resource_error";
1092
1093
  target: {
1093
1094
  source_url: string | null;
1094
1095
  tag_name: string | null;
@@ -1103,7 +1104,6 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1103
1104
  integrity_present?: boolean | undefined;
1104
1105
  } | undefined;
1105
1106
  } | null;
1106
- kind: "window_error" | "resource_error";
1107
1107
  file_name: string | null;
1108
1108
  opaque: boolean;
1109
1109
  line_number: number | null;
@@ -1121,15 +1121,15 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1121
1121
  message: z.ZodOptional<z.ZodString>;
1122
1122
  preview: z.ZodOptional<z.ZodString>;
1123
1123
  }, "strict", z.ZodTypeAny, {
1124
- kind: "string" | "undefined" | "object" | "error" | "null" | "unknown";
1124
+ kind: "string" | "undefined" | "object" | "null" | "unknown" | "error";
1125
1125
  message?: string | undefined;
1126
- preview?: string | undefined;
1127
1126
  name?: string | undefined;
1127
+ preview?: string | undefined;
1128
1128
  }, {
1129
- kind: "string" | "undefined" | "object" | "error" | "null" | "unknown";
1129
+ kind: "string" | "undefined" | "object" | "null" | "unknown" | "error";
1130
1130
  message?: string | undefined;
1131
- preview?: string | undefined;
1132
1131
  name?: string | undefined;
1132
+ preview?: string | undefined;
1133
1133
  }>>;
1134
1134
  dom_context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1135
1135
  mode: z.ZodLiteral<"lightweight">;
@@ -1178,19 +1178,21 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1178
1178
  }>>;
1179
1179
  }, "strict", z.ZodTypeAny, {
1180
1180
  message: string;
1181
+ name: string;
1181
1182
  browser: {
1182
- version: string;
1183
1183
  name: string;
1184
+ version: string;
1184
1185
  };
1185
- name: string;
1186
1186
  stack: string;
1187
+ route?: string | null | undefined;
1187
1188
  device?: {
1188
- user_agent: string | null;
1189
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
1190
+ language: string | null;
1189
1191
  os: {
1190
- version: string | null;
1191
1192
  name: string | null;
1193
+ version: string | null;
1192
1194
  };
1193
- device_type: "unknown" | "desktop" | "mobile" | "tablet";
1195
+ user_agent: string | null;
1194
1196
  screen: {
1195
1197
  width: number;
1196
1198
  height: number;
@@ -1201,12 +1203,12 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1201
1203
  };
1202
1204
  device_pixel_ratio: number | null;
1203
1205
  touch_capable: boolean | null;
1204
- language: string | null;
1205
1206
  connection_type: string | null;
1206
1207
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
1207
1208
  } | null | undefined;
1208
1209
  browser_event?: {
1209
1210
  message: string | null;
1211
+ kind: "window_error" | "resource_error";
1210
1212
  target: {
1211
1213
  source_url: string | null;
1212
1214
  tag_name: string | null;
@@ -1221,7 +1223,6 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1221
1223
  integrity_present?: boolean | undefined;
1222
1224
  } | undefined;
1223
1225
  } | null;
1224
- kind: "window_error" | "resource_error";
1225
1226
  file_name: string | null;
1226
1227
  opaque: boolean;
1227
1228
  line_number: number | null;
@@ -1242,18 +1243,17 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1242
1243
  activation_id: string | null;
1243
1244
  }[];
1244
1245
  } | undefined;
1245
- route?: string | null | undefined;
1246
1246
  breadcrumbs?: {
1247
- breadcrumb_type: "network_request" | "route_change" | "click" | "form_submit" | "console_log";
1247
+ breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
1248
1248
  data: Record<string, unknown>;
1249
1249
  ts: string;
1250
1250
  route?: string | null | undefined;
1251
1251
  }[] | undefined;
1252
1252
  rejection_reason?: {
1253
- kind: "string" | "undefined" | "object" | "error" | "null" | "unknown";
1253
+ kind: "string" | "undefined" | "object" | "null" | "unknown" | "error";
1254
1254
  message?: string | undefined;
1255
- preview?: string | undefined;
1256
1255
  name?: string | undefined;
1256
+ preview?: string | undefined;
1257
1257
  } | undefined;
1258
1258
  dom_context?: {
1259
1259
  mode: "lightweight";
@@ -1261,19 +1261,21 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1261
1261
  } | null | undefined;
1262
1262
  }, {
1263
1263
  message: string;
1264
+ name: string;
1264
1265
  browser: {
1265
- version: string;
1266
1266
  name: string;
1267
+ version: string;
1267
1268
  };
1268
- name: string;
1269
1269
  stack: string;
1270
+ route?: string | null | undefined;
1270
1271
  device?: {
1271
- user_agent: string | null;
1272
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
1273
+ language: string | null;
1272
1274
  os: {
1273
- version: string | null;
1274
1275
  name: string | null;
1276
+ version: string | null;
1275
1277
  };
1276
- device_type: "unknown" | "desktop" | "mobile" | "tablet";
1278
+ user_agent: string | null;
1277
1279
  screen: {
1278
1280
  width: number;
1279
1281
  height: number;
@@ -1284,12 +1286,12 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1284
1286
  };
1285
1287
  device_pixel_ratio: number | null;
1286
1288
  touch_capable: boolean | null;
1287
- language: string | null;
1288
1289
  connection_type: string | null;
1289
1290
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
1290
1291
  } | null | undefined;
1291
1292
  browser_event?: {
1292
1293
  message: string | null;
1294
+ kind: "window_error" | "resource_error";
1293
1295
  target: {
1294
1296
  source_url: string | null;
1295
1297
  tag_name: string | null;
@@ -1304,7 +1306,6 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1304
1306
  integrity_present?: boolean | undefined;
1305
1307
  } | undefined;
1306
1308
  } | null;
1307
- kind: "window_error" | "resource_error";
1308
1309
  file_name: string | null;
1309
1310
  opaque: boolean;
1310
1311
  line_number: number | null;
@@ -1325,18 +1326,17 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1325
1326
  activation_id: string | null;
1326
1327
  }[];
1327
1328
  } | undefined;
1328
- route?: string | null | undefined;
1329
1329
  breadcrumbs?: {
1330
- breadcrumb_type: "network_request" | "route_change" | "click" | "form_submit" | "console_log";
1330
+ breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
1331
1331
  data: Record<string, unknown>;
1332
1332
  ts: string;
1333
1333
  route?: string | null | undefined;
1334
1334
  }[] | undefined;
1335
1335
  rejection_reason?: {
1336
- kind: "string" | "undefined" | "object" | "error" | "null" | "unknown";
1336
+ kind: "string" | "undefined" | "object" | "null" | "unknown" | "error";
1337
1337
  message?: string | undefined;
1338
- preview?: string | undefined;
1339
1338
  name?: string | undefined;
1339
+ preview?: string | undefined;
1340
1340
  } | undefined;
1341
1341
  dom_context?: {
1342
1342
  mode: "lightweight";
@@ -1345,32 +1345,34 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1345
1345
  }>;
1346
1346
  }, "strict", z.ZodTypeAny, {
1347
1347
  event_id: string;
1348
- event_type: "frontend_exception";
1348
+ occurred_at: string;
1349
1349
  service: {
1350
- name: string;
1351
1350
  environment: string;
1351
+ name: string;
1352
1352
  runtime?: string | null | undefined;
1353
1353
  framework?: string | null | undefined;
1354
1354
  };
1355
1355
  schema_version: string;
1356
+ event_type: "frontend_exception";
1356
1357
  sdk_name: string;
1357
1358
  sdk_version: string;
1358
- occurred_at: string;
1359
1359
  payload: {
1360
1360
  message: string;
1361
+ name: string;
1361
1362
  browser: {
1362
- version: string;
1363
1363
  name: string;
1364
+ version: string;
1364
1365
  };
1365
- name: string;
1366
1366
  stack: string;
1367
+ route?: string | null | undefined;
1367
1368
  device?: {
1368
- user_agent: string | null;
1369
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
1370
+ language: string | null;
1369
1371
  os: {
1370
- version: string | null;
1371
1372
  name: string | null;
1373
+ version: string | null;
1372
1374
  };
1373
- device_type: "unknown" | "desktop" | "mobile" | "tablet";
1375
+ user_agent: string | null;
1374
1376
  screen: {
1375
1377
  width: number;
1376
1378
  height: number;
@@ -1381,12 +1383,12 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1381
1383
  };
1382
1384
  device_pixel_ratio: number | null;
1383
1385
  touch_capable: boolean | null;
1384
- language: string | null;
1385
1386
  connection_type: string | null;
1386
1387
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
1387
1388
  } | null | undefined;
1388
1389
  browser_event?: {
1389
1390
  message: string | null;
1391
+ kind: "window_error" | "resource_error";
1390
1392
  target: {
1391
1393
  source_url: string | null;
1392
1394
  tag_name: string | null;
@@ -1401,7 +1403,6 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1401
1403
  integrity_present?: boolean | undefined;
1402
1404
  } | undefined;
1403
1405
  } | null;
1404
- kind: "window_error" | "resource_error";
1405
1406
  file_name: string | null;
1406
1407
  opaque: boolean;
1407
1408
  line_number: number | null;
@@ -1422,18 +1423,17 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1422
1423
  activation_id: string | null;
1423
1424
  }[];
1424
1425
  } | undefined;
1425
- route?: string | null | undefined;
1426
1426
  breadcrumbs?: {
1427
- breadcrumb_type: "network_request" | "route_change" | "click" | "form_submit" | "console_log";
1427
+ breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
1428
1428
  data: Record<string, unknown>;
1429
1429
  ts: string;
1430
1430
  route?: string | null | undefined;
1431
1431
  }[] | undefined;
1432
1432
  rejection_reason?: {
1433
- kind: "string" | "undefined" | "object" | "error" | "null" | "unknown";
1433
+ kind: "string" | "undefined" | "object" | "null" | "unknown" | "error";
1434
1434
  message?: string | undefined;
1435
- preview?: string | undefined;
1436
1435
  name?: string | undefined;
1436
+ preview?: string | undefined;
1437
1437
  } | undefined;
1438
1438
  dom_context?: {
1439
1439
  mode: "lightweight";
@@ -1441,7 +1441,6 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1441
1441
  } | null | undefined;
1442
1442
  };
1443
1443
  project_id?: string | null | undefined;
1444
- context?: Record<string, unknown> | undefined;
1445
1444
  project_token?: string | undefined;
1446
1445
  correlation?: {
1447
1446
  request_id: string | null;
@@ -1449,34 +1448,37 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1449
1448
  session_id: string | null;
1450
1449
  user_id_hash: string | null;
1451
1450
  } | undefined;
1451
+ context?: Record<string, unknown> | undefined;
1452
1452
  }, {
1453
1453
  event_id: string;
1454
- event_type: "frontend_exception";
1454
+ occurred_at: string;
1455
1455
  service: {
1456
- name: string;
1457
1456
  environment: string;
1457
+ name: string;
1458
1458
  runtime?: string | null | undefined;
1459
1459
  framework?: string | null | undefined;
1460
1460
  };
1461
1461
  schema_version: string;
1462
+ event_type: "frontend_exception";
1462
1463
  sdk_name: string;
1463
1464
  sdk_version: string;
1464
- occurred_at: string;
1465
1465
  payload: {
1466
1466
  message: string;
1467
+ name: string;
1467
1468
  browser: {
1468
- version: string;
1469
1469
  name: string;
1470
+ version: string;
1470
1471
  };
1471
- name: string;
1472
1472
  stack: string;
1473
+ route?: string | null | undefined;
1473
1474
  device?: {
1474
- user_agent: string | null;
1475
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
1476
+ language: string | null;
1475
1477
  os: {
1476
- version: string | null;
1477
1478
  name: string | null;
1479
+ version: string | null;
1478
1480
  };
1479
- device_type: "unknown" | "desktop" | "mobile" | "tablet";
1481
+ user_agent: string | null;
1480
1482
  screen: {
1481
1483
  width: number;
1482
1484
  height: number;
@@ -1487,12 +1489,12 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1487
1489
  };
1488
1490
  device_pixel_ratio: number | null;
1489
1491
  touch_capable: boolean | null;
1490
- language: string | null;
1491
1492
  connection_type: string | null;
1492
1493
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
1493
1494
  } | null | undefined;
1494
1495
  browser_event?: {
1495
1496
  message: string | null;
1497
+ kind: "window_error" | "resource_error";
1496
1498
  target: {
1497
1499
  source_url: string | null;
1498
1500
  tag_name: string | null;
@@ -1507,7 +1509,6 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1507
1509
  integrity_present?: boolean | undefined;
1508
1510
  } | undefined;
1509
1511
  } | null;
1510
- kind: "window_error" | "resource_error";
1511
1512
  file_name: string | null;
1512
1513
  opaque: boolean;
1513
1514
  line_number: number | null;
@@ -1528,18 +1529,17 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1528
1529
  activation_id: string | null;
1529
1530
  }[];
1530
1531
  } | undefined;
1531
- route?: string | null | undefined;
1532
1532
  breadcrumbs?: {
1533
- breadcrumb_type: "network_request" | "route_change" | "click" | "form_submit" | "console_log";
1533
+ breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
1534
1534
  data: Record<string, unknown>;
1535
1535
  ts: string;
1536
1536
  route?: string | null | undefined;
1537
1537
  }[] | undefined;
1538
1538
  rejection_reason?: {
1539
- kind: "string" | "undefined" | "object" | "error" | "null" | "unknown";
1539
+ kind: "string" | "undefined" | "object" | "null" | "unknown" | "error";
1540
1540
  message?: string | undefined;
1541
- preview?: string | undefined;
1542
1541
  name?: string | undefined;
1542
+ preview?: string | undefined;
1543
1543
  } | undefined;
1544
1544
  dom_context?: {
1545
1545
  mode: "lightweight";
@@ -1547,14 +1547,14 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1547
1547
  } | null | undefined;
1548
1548
  };
1549
1549
  project_id?: string | null | undefined;
1550
- context?: Record<string, unknown> | undefined;
1551
1550
  project_token?: string | undefined;
1552
1551
  correlation?: {
1553
- request_id?: string | null | undefined;
1554
1552
  trace_id?: string | null | undefined;
1555
1553
  session_id?: string | null | undefined;
1556
1554
  user_id_hash?: string | null | undefined;
1555
+ request_id?: string | null | undefined;
1557
1556
  } | undefined;
1557
+ context?: Record<string, unknown> | undefined;
1558
1558
  }>, z.ZodObject<{
1559
1559
  schema_version: z.ZodString;
1560
1560
  event_id: z.ZodString;
@@ -1568,13 +1568,13 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1568
1568
  framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1569
1569
  environment: z.ZodString;
1570
1570
  }, "strip", z.ZodTypeAny, {
1571
- name: string;
1572
1571
  environment: string;
1572
+ name: string;
1573
1573
  runtime?: string | null | undefined;
1574
1574
  framework?: string | null | undefined;
1575
1575
  }, {
1576
- name: string;
1577
1576
  environment: string;
1577
+ name: string;
1578
1578
  runtime?: string | null | undefined;
1579
1579
  framework?: string | null | undefined;
1580
1580
  }>;
@@ -1585,25 +1585,25 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1585
1585
  session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1586
1586
  user_id_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1587
1587
  }, "strict", z.ZodTypeAny, {
1588
- request_id?: string | null | undefined;
1589
1588
  trace_id?: string | null | undefined;
1590
1589
  session_id?: string | null | undefined;
1591
1590
  user_id_hash?: string | null | undefined;
1592
- }, {
1593
1591
  request_id?: string | null | undefined;
1592
+ }, {
1594
1593
  trace_id?: string | null | undefined;
1595
1594
  session_id?: string | null | undefined;
1596
1595
  user_id_hash?: string | null | undefined;
1596
+ request_id?: string | null | undefined;
1597
1597
  }>, {
1598
1598
  request_id: string | null;
1599
1599
  trace_id: string | null;
1600
1600
  session_id: string | null;
1601
1601
  user_id_hash: string | null;
1602
1602
  }, {
1603
- request_id?: string | null | undefined;
1604
1603
  trace_id?: string | null | undefined;
1605
1604
  session_id?: string | null | undefined;
1606
1605
  user_id_hash?: string | null | undefined;
1606
+ request_id?: string | null | undefined;
1607
1607
  }>>;
1608
1608
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1609
1609
  } & {
@@ -1615,40 +1615,39 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1615
1615
  environment: z.ZodString;
1616
1616
  deployed_at: z.ZodString;
1617
1617
  }, "strict", z.ZodTypeAny, {
1618
- version: string;
1619
1618
  environment: string;
1619
+ version: string;
1620
1620
  commit_sha: string;
1621
1621
  branch: string;
1622
1622
  deployed_at: string;
1623
1623
  }, {
1624
- version: string;
1625
1624
  environment: string;
1625
+ version: string;
1626
1626
  commit_sha: string;
1627
1627
  branch: string;
1628
1628
  deployed_at: string;
1629
1629
  }>;
1630
1630
  }, "strict", z.ZodTypeAny, {
1631
1631
  event_id: string;
1632
- event_type: "deploy_metadata";
1632
+ occurred_at: string;
1633
1633
  service: {
1634
- name: string;
1635
1634
  environment: string;
1635
+ name: string;
1636
1636
  runtime?: string | null | undefined;
1637
1637
  framework?: string | null | undefined;
1638
1638
  };
1639
1639
  schema_version: string;
1640
+ event_type: "deploy_metadata";
1640
1641
  sdk_name: string;
1641
1642
  sdk_version: string;
1642
- occurred_at: string;
1643
1643
  payload: {
1644
- version: string;
1645
1644
  environment: string;
1645
+ version: string;
1646
1646
  commit_sha: string;
1647
1647
  branch: string;
1648
1648
  deployed_at: string;
1649
1649
  };
1650
1650
  project_id?: string | null | undefined;
1651
- context?: Record<string, unknown> | undefined;
1652
1651
  project_token?: string | undefined;
1653
1652
  correlation?: {
1654
1653
  request_id: string | null;
@@ -1656,35 +1655,36 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1656
1655
  session_id: string | null;
1657
1656
  user_id_hash: string | null;
1658
1657
  } | undefined;
1658
+ context?: Record<string, unknown> | undefined;
1659
1659
  }, {
1660
1660
  event_id: string;
1661
- event_type: "deploy_metadata";
1661
+ occurred_at: string;
1662
1662
  service: {
1663
- name: string;
1664
1663
  environment: string;
1664
+ name: string;
1665
1665
  runtime?: string | null | undefined;
1666
1666
  framework?: string | null | undefined;
1667
1667
  };
1668
1668
  schema_version: string;
1669
+ event_type: "deploy_metadata";
1669
1670
  sdk_name: string;
1670
1671
  sdk_version: string;
1671
- occurred_at: string;
1672
1672
  payload: {
1673
- version: string;
1674
1673
  environment: string;
1674
+ version: string;
1675
1675
  commit_sha: string;
1676
1676
  branch: string;
1677
1677
  deployed_at: string;
1678
1678
  };
1679
1679
  project_id?: string | null | undefined;
1680
- context?: Record<string, unknown> | undefined;
1681
1680
  project_token?: string | undefined;
1682
1681
  correlation?: {
1683
- request_id?: string | null | undefined;
1684
1682
  trace_id?: string | null | undefined;
1685
1683
  session_id?: string | null | undefined;
1686
1684
  user_id_hash?: string | null | undefined;
1685
+ request_id?: string | null | undefined;
1687
1686
  } | undefined;
1687
+ context?: Record<string, unknown> | undefined;
1688
1688
  }>, z.ZodObject<{
1689
1689
  schema_version: z.ZodString;
1690
1690
  event_id: z.ZodString;
@@ -1698,13 +1698,13 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1698
1698
  framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1699
1699
  environment: z.ZodString;
1700
1700
  }, "strip", z.ZodTypeAny, {
1701
- name: string;
1702
1701
  environment: string;
1702
+ name: string;
1703
1703
  runtime?: string | null | undefined;
1704
1704
  framework?: string | null | undefined;
1705
1705
  }, {
1706
- name: string;
1707
1706
  environment: string;
1707
+ name: string;
1708
1708
  runtime?: string | null | undefined;
1709
1709
  framework?: string | null | undefined;
1710
1710
  }>;
@@ -1715,25 +1715,25 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1715
1715
  session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1716
1716
  user_id_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1717
1717
  }, "strict", z.ZodTypeAny, {
1718
- request_id?: string | null | undefined;
1719
1718
  trace_id?: string | null | undefined;
1720
1719
  session_id?: string | null | undefined;
1721
1720
  user_id_hash?: string | null | undefined;
1722
- }, {
1723
1721
  request_id?: string | null | undefined;
1722
+ }, {
1724
1723
  trace_id?: string | null | undefined;
1725
1724
  session_id?: string | null | undefined;
1726
1725
  user_id_hash?: string | null | undefined;
1726
+ request_id?: string | null | undefined;
1727
1727
  }>, {
1728
1728
  request_id: string | null;
1729
1729
  trace_id: string | null;
1730
1730
  session_id: string | null;
1731
1731
  user_id_hash: string | null;
1732
1732
  }, {
1733
- request_id?: string | null | undefined;
1734
1733
  trace_id?: string | null | undefined;
1735
1734
  session_id?: string | null | undefined;
1736
1735
  user_id_hash?: string | null | undefined;
1736
+ request_id?: string | null | undefined;
1737
1737
  }>>;
1738
1738
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1739
1739
  } & {
@@ -1759,17 +1759,17 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1759
1759
  }>;
1760
1760
  }, "strict", z.ZodTypeAny, {
1761
1761
  event_id: string;
1762
- event_type: "error_suppressed";
1762
+ occurred_at: string;
1763
1763
  service: {
1764
- name: string;
1765
1764
  environment: string;
1765
+ name: string;
1766
1766
  runtime?: string | null | undefined;
1767
1767
  framework?: string | null | undefined;
1768
1768
  };
1769
1769
  schema_version: string;
1770
+ event_type: "error_suppressed";
1770
1771
  sdk_name: string;
1771
1772
  sdk_version: string;
1772
- occurred_at: string;
1773
1773
  payload: {
1774
1774
  fingerprint: string;
1775
1775
  suppressed_count: number;
@@ -1778,7 +1778,6 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1778
1778
  last_seen: string;
1779
1779
  };
1780
1780
  project_id?: string | null | undefined;
1781
- context?: Record<string, unknown> | undefined;
1782
1781
  project_token?: string | undefined;
1783
1782
  correlation?: {
1784
1783
  request_id: string | null;
@@ -1786,19 +1785,20 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1786
1785
  session_id: string | null;
1787
1786
  user_id_hash: string | null;
1788
1787
  } | undefined;
1788
+ context?: Record<string, unknown> | undefined;
1789
1789
  }, {
1790
1790
  event_id: string;
1791
- event_type: "error_suppressed";
1791
+ occurred_at: string;
1792
1792
  service: {
1793
- name: string;
1794
1793
  environment: string;
1794
+ name: string;
1795
1795
  runtime?: string | null | undefined;
1796
1796
  framework?: string | null | undefined;
1797
1797
  };
1798
1798
  schema_version: string;
1799
+ event_type: "error_suppressed";
1799
1800
  sdk_name: string;
1800
1801
  sdk_version: string;
1801
- occurred_at: string;
1802
1802
  payload: {
1803
1803
  fingerprint: string;
1804
1804
  suppressed_count: number;
@@ -1807,14 +1807,14 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1807
1807
  last_seen: string;
1808
1808
  };
1809
1809
  project_id?: string | null | undefined;
1810
- context?: Record<string, unknown> | undefined;
1811
1810
  project_token?: string | undefined;
1812
1811
  correlation?: {
1813
- request_id?: string | null | undefined;
1814
1812
  trace_id?: string | null | undefined;
1815
1813
  session_id?: string | null | undefined;
1816
1814
  user_id_hash?: string | null | undefined;
1815
+ request_id?: string | null | undefined;
1817
1816
  } | undefined;
1817
+ context?: Record<string, unknown> | undefined;
1818
1818
  }>, z.ZodObject<{
1819
1819
  schema_version: z.ZodString;
1820
1820
  event_id: z.ZodString;
@@ -1828,13 +1828,13 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1828
1828
  framework: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1829
1829
  environment: z.ZodString;
1830
1830
  }, "strip", z.ZodTypeAny, {
1831
- name: string;
1832
1831
  environment: string;
1832
+ name: string;
1833
1833
  runtime?: string | null | undefined;
1834
1834
  framework?: string | null | undefined;
1835
1835
  }, {
1836
- name: string;
1837
1836
  environment: string;
1837
+ name: string;
1838
1838
  runtime?: string | null | undefined;
1839
1839
  framework?: string | null | undefined;
1840
1840
  }>;
@@ -1845,25 +1845,25 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1845
1845
  session_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1846
1846
  user_id_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1847
1847
  }, "strict", z.ZodTypeAny, {
1848
- request_id?: string | null | undefined;
1849
1848
  trace_id?: string | null | undefined;
1850
1849
  session_id?: string | null | undefined;
1851
1850
  user_id_hash?: string | null | undefined;
1852
- }, {
1853
1851
  request_id?: string | null | undefined;
1852
+ }, {
1854
1853
  trace_id?: string | null | undefined;
1855
1854
  session_id?: string | null | undefined;
1856
1855
  user_id_hash?: string | null | undefined;
1856
+ request_id?: string | null | undefined;
1857
1857
  }>, {
1858
1858
  request_id: string | null;
1859
1859
  trace_id: string | null;
1860
1860
  session_id: string | null;
1861
1861
  user_id_hash: string | null;
1862
1862
  }, {
1863
- request_id?: string | null | undefined;
1864
1863
  trace_id?: string | null | undefined;
1865
1864
  session_id?: string | null | undefined;
1866
1865
  user_id_hash?: string | null | undefined;
1866
+ request_id?: string | null | undefined;
1867
1867
  }>>;
1868
1868
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1869
1869
  } & {
@@ -1886,17 +1886,17 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1886
1886
  }>;
1887
1887
  }, "strict", z.ZodTypeAny, {
1888
1888
  event_id: string;
1889
- event_type: "probe_event";
1889
+ occurred_at: string;
1890
1890
  service: {
1891
- name: string;
1892
1891
  environment: string;
1892
+ name: string;
1893
1893
  runtime?: string | null | undefined;
1894
1894
  framework?: string | null | undefined;
1895
1895
  };
1896
1896
  schema_version: string;
1897
+ event_type: "probe_event";
1897
1898
  sdk_name: string;
1898
1899
  sdk_version: string;
1899
- occurred_at: string;
1900
1900
  payload: {
1901
1901
  data: Record<string, unknown>;
1902
1902
  label: string;
@@ -1904,7 +1904,6 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1904
1904
  probe_label_pattern: string;
1905
1905
  };
1906
1906
  project_id?: string | null | undefined;
1907
- context?: Record<string, unknown> | undefined;
1908
1907
  project_token?: string | undefined;
1909
1908
  correlation?: {
1910
1909
  request_id: string | null;
@@ -1912,19 +1911,20 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1912
1911
  session_id: string | null;
1913
1912
  user_id_hash: string | null;
1914
1913
  } | undefined;
1914
+ context?: Record<string, unknown> | undefined;
1915
1915
  }, {
1916
1916
  event_id: string;
1917
- event_type: "probe_event";
1917
+ occurred_at: string;
1918
1918
  service: {
1919
- name: string;
1920
1919
  environment: string;
1920
+ name: string;
1921
1921
  runtime?: string | null | undefined;
1922
1922
  framework?: string | null | undefined;
1923
1923
  };
1924
1924
  schema_version: string;
1925
+ event_type: "probe_event";
1925
1926
  sdk_name: string;
1926
1927
  sdk_version: string;
1927
- occurred_at: string;
1928
1928
  payload: {
1929
1929
  data: Record<string, unknown>;
1930
1930
  label: string;
@@ -1932,14 +1932,14 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1932
1932
  probe_label_pattern: string;
1933
1933
  };
1934
1934
  project_id?: string | null | undefined;
1935
- context?: Record<string, unknown> | undefined;
1936
1935
  project_token?: string | undefined;
1937
1936
  correlation?: {
1938
- request_id?: string | null | undefined;
1939
1937
  trace_id?: string | null | undefined;
1940
1938
  session_id?: string | null | undefined;
1941
1939
  user_id_hash?: string | null | undefined;
1940
+ request_id?: string | null | undefined;
1942
1941
  } | undefined;
1942
+ context?: Record<string, unknown> | undefined;
1943
1943
  }>]>;
1944
1944
  export type EventEnvelope = z.infer<typeof EventEnvelopeSchema>;
1945
1945
  type CorrelationInput = {
@@ -1961,23 +1961,23 @@ export declare const BundleV1Schema: z.ZodObject<{
1961
1961
  name: z.ZodString;
1962
1962
  version: z.ZodString;
1963
1963
  }, "strip", z.ZodTypeAny, {
1964
- version: string;
1965
1964
  name: string;
1966
- }, {
1967
1965
  version: string;
1966
+ }, {
1968
1967
  name: string;
1968
+ version: string;
1969
1969
  }>;
1970
1970
  project: z.ZodObject<{
1971
1971
  id: z.ZodString;
1972
1972
  slug: z.ZodString;
1973
1973
  environment: z.ZodString;
1974
1974
  }, "strip", z.ZodTypeAny, {
1975
- id: string;
1976
1975
  environment: string;
1976
+ id: string;
1977
1977
  slug: string;
1978
1978
  }, {
1979
- id: string;
1980
1979
  environment: string;
1980
+ id: string;
1981
1981
  slug: string;
1982
1982
  }>;
1983
1983
  service: z.ZodObject<{
@@ -1988,18 +1988,18 @@ export declare const BundleV1Schema: z.ZodObject<{
1988
1988
  version: z.ZodNullable<z.ZodString>;
1989
1989
  region: z.ZodNullable<z.ZodString>;
1990
1990
  }, "strip", z.ZodTypeAny, {
1991
- version: string | null;
1992
- runtime: string | null;
1993
1991
  name: string;
1994
- id: string;
1992
+ runtime: string | null;
1995
1993
  framework: string | null;
1994
+ version: string | null;
1995
+ id: string;
1996
1996
  region: string | null;
1997
1997
  }, {
1998
- version: string | null;
1999
- runtime: string | null;
2000
1998
  name: string;
2001
- id: string;
1999
+ runtime: string | null;
2002
2000
  framework: string | null;
2001
+ version: string | null;
2002
+ id: string;
2003
2003
  region: string | null;
2004
2004
  }>;
2005
2005
  signal: z.ZodObject<{
@@ -2012,21 +2012,21 @@ export declare const BundleV1Schema: z.ZodObject<{
2012
2012
  occurrence_count: z.ZodNumber;
2013
2013
  source_event_types: z.ZodArray<z.ZodString, "many">;
2014
2014
  }, "strip", z.ZodTypeAny, {
2015
+ first_seen_at: string;
2016
+ last_seen_at: string;
2017
+ severity: "medium" | "low" | "high" | "critical";
2015
2018
  fingerprint: string;
2016
2019
  signal_id: string;
2017
2020
  signal_type: "warning" | "frontend_exception" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
2018
- severity: "critical" | "high" | "medium" | "low";
2019
- first_seen_at: string;
2020
- last_seen_at: string;
2021
2021
  occurrence_count: number;
2022
2022
  source_event_types: string[];
2023
2023
  }, {
2024
+ first_seen_at: string;
2025
+ last_seen_at: string;
2026
+ severity: "medium" | "low" | "high" | "critical";
2024
2027
  fingerprint: string;
2025
2028
  signal_id: string;
2026
2029
  signal_type: "warning" | "frontend_exception" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
2027
- severity: "critical" | "high" | "medium" | "low";
2028
- first_seen_at: string;
2029
- last_seen_at: string;
2030
2030
  occurrence_count: number;
2031
2031
  source_event_types: string[];
2032
2032
  }>;
@@ -2067,11 +2067,11 @@ export declare const BundleV1Schema: z.ZodObject<{
2067
2067
  customer_visible: boolean;
2068
2068
  }>;
2069
2069
  }, "strip", z.ZodTypeAny, {
2070
+ title: string;
2071
+ severity: "medium" | "low" | "high" | "critical";
2072
+ confidence: number;
2070
2073
  description: string;
2071
2074
  recommended_action: string | null;
2072
- confidence: number;
2073
- severity: "critical" | "high" | "medium" | "low";
2074
- title: string;
2075
2075
  likely_cause: string | null;
2076
2076
  error_type: string | null;
2077
2077
  error_message: string | null;
@@ -2087,11 +2087,11 @@ export declare const BundleV1Schema: z.ZodObject<{
2087
2087
  customer_visible: boolean;
2088
2088
  };
2089
2089
  }, {
2090
+ title: string;
2091
+ severity: "medium" | "low" | "high" | "critical";
2092
+ confidence: number;
2090
2093
  description: string;
2091
2094
  recommended_action: string | null;
2092
- confidence: number;
2093
- severity: "critical" | "high" | "medium" | "low";
2094
- title: string;
2095
2095
  likely_cause: string | null;
2096
2096
  error_type: string | null;
2097
2097
  error_message: string | null;
@@ -2118,13 +2118,13 @@ export declare const BundleV1Schema: z.ZodObject<{
2118
2118
  customer_visible: boolean;
2119
2119
  affected_users_estimate: number | null;
2120
2120
  affected_requests_estimate: number | null;
2121
- business_criticality: "critical" | "high" | "medium" | "low";
2121
+ business_criticality: "medium" | "low" | "high" | "critical";
2122
2122
  }, {
2123
2123
  regression_suspected: boolean;
2124
2124
  customer_visible: boolean;
2125
2125
  affected_users_estimate: number | null;
2126
2126
  affected_requests_estimate: number | null;
2127
- business_criticality: "critical" | "high" | "medium" | "low";
2127
+ business_criticality: "medium" | "low" | "high" | "critical";
2128
2128
  }>;
2129
2129
  context: z.ZodObject<{
2130
2130
  error: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodObject<{
@@ -2136,15 +2136,15 @@ export declare const BundleV1Schema: z.ZodObject<{
2136
2136
  top_frames: z.ZodArray<z.ZodString, "many">;
2137
2137
  }, "strip", z.ZodTypeAny, {
2138
2138
  message: string;
2139
- version: 1;
2140
2139
  name: string;
2140
+ version: 1;
2141
2141
  stack: string;
2142
2142
  handled: boolean;
2143
2143
  top_frames: string[];
2144
2144
  }, {
2145
2145
  message: string;
2146
- version: 1;
2147
2146
  name: string;
2147
+ version: 1;
2148
2148
  stack: string;
2149
2149
  handled: boolean;
2150
2150
  top_frames: string[];
@@ -2160,20 +2160,20 @@ export declare const BundleV1Schema: z.ZodObject<{
2160
2160
  request_id: z.ZodNullable<z.ZodString>;
2161
2161
  }, "strip", z.ZodTypeAny, {
2162
2162
  path: string;
2163
+ query: Record<string, unknown>;
2163
2164
  method: string;
2164
2165
  version: 1;
2165
2166
  headers: Record<string, unknown>;
2166
2167
  request_id: string | null;
2167
- query: Record<string, unknown>;
2168
2168
  route_template: string | null;
2169
2169
  body?: unknown;
2170
2170
  }, {
2171
2171
  path: string;
2172
+ query: Record<string, unknown>;
2172
2173
  method: string;
2173
2174
  version: 1;
2174
2175
  headers: Record<string, unknown>;
2175
2176
  request_id: string | null;
2176
- query: Record<string, unknown>;
2177
2177
  route_template: string | null;
2178
2178
  body?: unknown;
2179
2179
  }>>>;
@@ -2184,17 +2184,17 @@ export declare const BundleV1Schema: z.ZodObject<{
2184
2184
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2185
2185
  body: z.ZodOptional<z.ZodUnknown>;
2186
2186
  }, "strip", z.ZodTypeAny, {
2187
+ duration_ms: number | null;
2187
2188
  status_code: number;
2188
2189
  version: 1;
2189
- duration_ms: number | null;
2190
- headers?: Record<string, unknown> | undefined;
2191
2190
  body?: unknown;
2191
+ headers?: Record<string, unknown> | undefined;
2192
2192
  }, {
2193
+ duration_ms: number | null;
2193
2194
  status_code: number;
2194
2195
  version: 1;
2195
- duration_ms: number | null;
2196
- headers?: Record<string, unknown> | undefined;
2197
2196
  body?: unknown;
2197
+ headers?: Record<string, unknown> | undefined;
2198
2198
  }>>>;
2199
2199
  logs: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2200
2200
  version: z.ZodLiteral<1>;
@@ -2238,13 +2238,13 @@ export declare const BundleV1Schema: z.ZodObject<{
2238
2238
  to: z.ZodString;
2239
2239
  ts: z.ZodString;
2240
2240
  }, "strip", z.ZodTypeAny, {
2241
- ts: string;
2242
2241
  from: string;
2243
2242
  to: string;
2244
- }, {
2245
2243
  ts: string;
2244
+ }, {
2246
2245
  from: string;
2247
2246
  to: string;
2247
+ ts: string;
2248
2248
  }>, "many">;
2249
2249
  clicks: z.ZodArray<z.ZodObject<{
2250
2250
  selector: z.ZodString;
@@ -2286,8 +2286,8 @@ export declare const BundleV1Schema: z.ZodObject<{
2286
2286
  response_content_length: z.ZodOptional<z.ZodNumber>;
2287
2287
  }, "strip", z.ZodTypeAny, {
2288
2288
  status: number;
2289
- method: string;
2290
2289
  url: string;
2290
+ method: string;
2291
2291
  ts: string;
2292
2292
  duration_ms?: number | undefined;
2293
2293
  response_headers?: Record<string, string> | undefined;
@@ -2297,8 +2297,8 @@ export declare const BundleV1Schema: z.ZodObject<{
2297
2297
  response_content_length?: number | undefined;
2298
2298
  }, {
2299
2299
  status: number;
2300
- method: string;
2301
2300
  url: string;
2301
+ method: string;
2302
2302
  ts: string;
2303
2303
  duration_ms?: number | undefined;
2304
2304
  response_headers?: Record<string, string> | undefined;
@@ -2325,9 +2325,9 @@ export declare const BundleV1Schema: z.ZodObject<{
2325
2325
  html_excerpt: string;
2326
2326
  } | null;
2327
2327
  route_changes: {
2328
- ts: string;
2329
2328
  from: string;
2330
2329
  to: string;
2330
+ ts: string;
2331
2331
  }[];
2332
2332
  clicks: {
2333
2333
  label: string;
@@ -2342,8 +2342,8 @@ export declare const BundleV1Schema: z.ZodObject<{
2342
2342
  console_logs: unknown[];
2343
2343
  network_requests: {
2344
2344
  status: number;
2345
- method: string;
2346
2345
  url: string;
2346
+ method: string;
2347
2347
  ts: string;
2348
2348
  duration_ms?: number | undefined;
2349
2349
  response_headers?: Record<string, string> | undefined;
@@ -2360,9 +2360,9 @@ export declare const BundleV1Schema: z.ZodObject<{
2360
2360
  html_excerpt: string;
2361
2361
  } | null;
2362
2362
  route_changes: {
2363
- ts: string;
2364
2363
  from: string;
2365
2364
  to: string;
2365
+ ts: string;
2366
2366
  }[];
2367
2367
  clicks: {
2368
2368
  label: string;
@@ -2377,8 +2377,8 @@ export declare const BundleV1Schema: z.ZodObject<{
2377
2377
  console_logs: unknown[];
2378
2378
  network_requests: {
2379
2379
  status: number;
2380
- method: string;
2381
2380
  url: string;
2381
+ method: string;
2382
2382
  ts: string;
2383
2383
  duration_ms?: number | undefined;
2384
2384
  response_headers?: Record<string, string> | undefined;
@@ -2395,14 +2395,14 @@ export declare const BundleV1Schema: z.ZodObject<{
2395
2395
  host: z.ZodNullable<z.ZodString>;
2396
2396
  container_id: z.ZodNullable<z.ZodString>;
2397
2397
  }, "strip", z.ZodTypeAny, {
2398
+ os: string | null;
2398
2399
  host: string | null;
2399
2400
  version: 1;
2400
- os: string | null;
2401
2401
  container_id: string | null;
2402
2402
  }, {
2403
+ os: string | null;
2403
2404
  host: string | null;
2404
2405
  version: 1;
2405
- os: string | null;
2406
2406
  container_id: string | null;
2407
2407
  }>>>;
2408
2408
  deploy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -2461,9 +2461,9 @@ export declare const BundleV1Schema: z.ZodObject<{
2461
2461
  }>>;
2462
2462
  framework_extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2463
2463
  }, "strip", z.ZodTypeAny, {
2464
- version: 1;
2465
2464
  name: string;
2466
2465
  framework: string | null;
2466
+ version: 1;
2467
2467
  platform: string | null;
2468
2468
  arch: string | null;
2469
2469
  pid: number | null;
@@ -2482,9 +2482,9 @@ export declare const BundleV1Schema: z.ZodObject<{
2482
2482
  runtime_version: string | null;
2483
2483
  framework_extras?: Record<string, unknown> | null | undefined;
2484
2484
  }, {
2485
- version: 1;
2486
2485
  name: string;
2487
2486
  framework: string | null;
2487
+ version: 1;
2488
2488
  platform: string | null;
2489
2489
  arch: string | null;
2490
2490
  pid: number | null;
@@ -2600,21 +2600,21 @@ export declare const BundleV1Schema: z.ZodObject<{
2600
2600
  name: z.ZodNullable<z.ZodString>;
2601
2601
  version: z.ZodNullable<z.ZodString>;
2602
2602
  }, "strip", z.ZodTypeAny, {
2603
- version: string | null;
2604
2603
  name: string | null;
2605
- }, {
2606
2604
  version: string | null;
2605
+ }, {
2607
2606
  name: string | null;
2607
+ version: string | null;
2608
2608
  }>;
2609
2609
  os: z.ZodObject<{
2610
2610
  name: z.ZodNullable<z.ZodString>;
2611
2611
  version: z.ZodNullable<z.ZodString>;
2612
2612
  }, "strip", z.ZodTypeAny, {
2613
- version: string | null;
2614
2613
  name: string | null;
2615
- }, {
2616
2614
  version: string | null;
2615
+ }, {
2617
2616
  name: string | null;
2617
+ version: string | null;
2618
2618
  }>;
2619
2619
  device_type: z.ZodEnum<["desktop", "mobile", "tablet", "unknown"]>;
2620
2620
  screen: z.ZodObject<{
@@ -2643,17 +2643,18 @@ export declare const BundleV1Schema: z.ZodObject<{
2643
2643
  connection_type: z.ZodNullable<z.ZodString>;
2644
2644
  color_scheme_preference: z.ZodNullable<z.ZodEnum<["light", "dark", "no-preference"]>>;
2645
2645
  }, "strip", z.ZodTypeAny, {
2646
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
2647
+ language: string | null;
2646
2648
  browser: {
2647
- version: string | null;
2648
2649
  name: string | null;
2650
+ version: string | null;
2649
2651
  };
2650
- version: 1;
2651
- user_agent: string | null;
2652
2652
  os: {
2653
- version: string | null;
2654
2653
  name: string | null;
2654
+ version: string | null;
2655
2655
  };
2656
- device_type: "unknown" | "desktop" | "mobile" | "tablet";
2656
+ version: 1;
2657
+ user_agent: string | null;
2657
2658
  screen: {
2658
2659
  width: number;
2659
2660
  height: number;
@@ -2664,21 +2665,21 @@ export declare const BundleV1Schema: z.ZodObject<{
2664
2665
  };
2665
2666
  device_pixel_ratio: number | null;
2666
2667
  touch_capable: boolean | null;
2667
- language: string | null;
2668
2668
  connection_type: string | null;
2669
2669
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
2670
2670
  }, {
2671
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
2672
+ language: string | null;
2671
2673
  browser: {
2672
- version: string | null;
2673
2674
  name: string | null;
2675
+ version: string | null;
2674
2676
  };
2675
- version: 1;
2676
- user_agent: string | null;
2677
2677
  os: {
2678
- version: string | null;
2679
2678
  name: string | null;
2679
+ version: string | null;
2680
2680
  };
2681
- device_type: "unknown" | "desktop" | "mobile" | "tablet";
2681
+ version: 1;
2682
+ user_agent: string | null;
2682
2683
  screen: {
2683
2684
  width: number;
2684
2685
  height: number;
@@ -2689,23 +2690,20 @@ export declare const BundleV1Schema: z.ZodObject<{
2689
2690
  };
2690
2691
  device_pixel_ratio: number | null;
2691
2692
  touch_capable: boolean | null;
2692
- language: string | null;
2693
2693
  connection_type: string | null;
2694
2694
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
2695
2695
  }>>>;
2696
2696
  }, "strip", z.ZodTypeAny, {
2697
- error?: {
2698
- message: string;
2697
+ environment?: {
2698
+ os: string | null;
2699
+ host: string | null;
2699
2700
  version: 1;
2700
- name: string;
2701
- stack: string;
2702
- handled: boolean;
2703
- top_frames: string[];
2701
+ container_id: string | null;
2704
2702
  } | null | undefined;
2705
2703
  runtime?: {
2706
- version: 1;
2707
2704
  name: string;
2708
2705
  framework: string | null;
2706
+ version: 1;
2709
2707
  platform: string | null;
2710
2708
  arch: string | null;
2711
2709
  pid: number | null;
@@ -2724,24 +2722,27 @@ export declare const BundleV1Schema: z.ZodObject<{
2724
2722
  runtime_version: string | null;
2725
2723
  framework_extras?: Record<string, unknown> | null | undefined;
2726
2724
  } | null | undefined;
2727
- environment?: {
2728
- host: string | null;
2725
+ error?: {
2726
+ message: string;
2727
+ name: string;
2729
2728
  version: 1;
2730
- os: string | null;
2731
- container_id: string | null;
2732
- } | null | undefined;
2729
+ stack: string;
2730
+ handled: boolean;
2731
+ top_frames: string[];
2732
+ } | null | undefined;
2733
2733
  device?: {
2734
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
2735
+ language: string | null;
2734
2736
  browser: {
2735
- version: string | null;
2736
2737
  name: string | null;
2738
+ version: string | null;
2737
2739
  };
2738
- version: 1;
2739
- user_agent: string | null;
2740
2740
  os: {
2741
- version: string | null;
2742
2741
  name: string | null;
2742
+ version: string | null;
2743
2743
  };
2744
- device_type: "unknown" | "desktop" | "mobile" | "tablet";
2744
+ version: 1;
2745
+ user_agent: string | null;
2745
2746
  screen: {
2746
2747
  width: number;
2747
2748
  height: number;
@@ -2752,26 +2753,25 @@ export declare const BundleV1Schema: z.ZodObject<{
2752
2753
  };
2753
2754
  device_pixel_ratio: number | null;
2754
2755
  touch_capable: boolean | null;
2755
- language: string | null;
2756
2756
  connection_type: string | null;
2757
2757
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
2758
2758
  } | null | undefined;
2759
2759
  request?: {
2760
2760
  path: string;
2761
+ query: Record<string, unknown>;
2761
2762
  method: string;
2762
2763
  version: 1;
2763
2764
  headers: Record<string, unknown>;
2764
2765
  request_id: string | null;
2765
- query: Record<string, unknown>;
2766
2766
  route_template: string | null;
2767
2767
  body?: unknown;
2768
2768
  } | null | undefined;
2769
2769
  response?: {
2770
+ duration_ms: number | null;
2770
2771
  status_code: number;
2771
2772
  version: 1;
2772
- duration_ms: number | null;
2773
- headers?: Record<string, unknown> | undefined;
2774
2773
  body?: unknown;
2774
+ headers?: Record<string, unknown> | undefined;
2775
2775
  } | null | undefined;
2776
2776
  probe_data?: {
2777
2777
  version: 1;
@@ -2798,9 +2798,9 @@ export declare const BundleV1Schema: z.ZodObject<{
2798
2798
  html_excerpt: string;
2799
2799
  } | null;
2800
2800
  route_changes: {
2801
- ts: string;
2802
2801
  from: string;
2803
2802
  to: string;
2803
+ ts: string;
2804
2804
  }[];
2805
2805
  clicks: {
2806
2806
  label: string;
@@ -2815,8 +2815,8 @@ export declare const BundleV1Schema: z.ZodObject<{
2815
2815
  console_logs: unknown[];
2816
2816
  network_requests: {
2817
2817
  status: number;
2818
- method: string;
2819
2818
  url: string;
2819
+ method: string;
2820
2820
  ts: string;
2821
2821
  duration_ms?: number | undefined;
2822
2822
  response_headers?: Record<string, string> | undefined;
@@ -2853,18 +2853,16 @@ export declare const BundleV1Schema: z.ZodObject<{
2853
2853
  }[];
2854
2854
  } | null | undefined;
2855
2855
  }, {
2856
- error?: {
2857
- message: string;
2856
+ environment?: {
2857
+ os: string | null;
2858
+ host: string | null;
2858
2859
  version: 1;
2859
- name: string;
2860
- stack: string;
2861
- handled: boolean;
2862
- top_frames: string[];
2860
+ container_id: string | null;
2863
2861
  } | null | undefined;
2864
2862
  runtime?: {
2865
- version: 1;
2866
2863
  name: string;
2867
2864
  framework: string | null;
2865
+ version: 1;
2868
2866
  platform: string | null;
2869
2867
  arch: string | null;
2870
2868
  pid: number | null;
@@ -2883,24 +2881,27 @@ export declare const BundleV1Schema: z.ZodObject<{
2883
2881
  runtime_version: string | null;
2884
2882
  framework_extras?: Record<string, unknown> | null | undefined;
2885
2883
  } | null | undefined;
2886
- environment?: {
2887
- host: string | null;
2884
+ error?: {
2885
+ message: string;
2886
+ name: string;
2888
2887
  version: 1;
2889
- os: string | null;
2890
- container_id: string | null;
2888
+ stack: string;
2889
+ handled: boolean;
2890
+ top_frames: string[];
2891
2891
  } | null | undefined;
2892
2892
  device?: {
2893
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
2894
+ language: string | null;
2893
2895
  browser: {
2894
- version: string | null;
2895
2896
  name: string | null;
2897
+ version: string | null;
2896
2898
  };
2897
- version: 1;
2898
- user_agent: string | null;
2899
2899
  os: {
2900
- version: string | null;
2901
2900
  name: string | null;
2901
+ version: string | null;
2902
2902
  };
2903
- device_type: "unknown" | "desktop" | "mobile" | "tablet";
2903
+ version: 1;
2904
+ user_agent: string | null;
2904
2905
  screen: {
2905
2906
  width: number;
2906
2907
  height: number;
@@ -2911,26 +2912,25 @@ export declare const BundleV1Schema: z.ZodObject<{
2911
2912
  };
2912
2913
  device_pixel_ratio: number | null;
2913
2914
  touch_capable: boolean | null;
2914
- language: string | null;
2915
2915
  connection_type: string | null;
2916
2916
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
2917
2917
  } | null | undefined;
2918
2918
  request?: {
2919
2919
  path: string;
2920
+ query: Record<string, unknown>;
2920
2921
  method: string;
2921
2922
  version: 1;
2922
2923
  headers: Record<string, unknown>;
2923
2924
  request_id: string | null;
2924
- query: Record<string, unknown>;
2925
2925
  route_template: string | null;
2926
2926
  body?: unknown;
2927
2927
  } | null | undefined;
2928
2928
  response?: {
2929
+ duration_ms: number | null;
2929
2930
  status_code: number;
2930
2931
  version: 1;
2931
- duration_ms: number | null;
2932
- headers?: Record<string, unknown> | undefined;
2933
2932
  body?: unknown;
2933
+ headers?: Record<string, unknown> | undefined;
2934
2934
  } | null | undefined;
2935
2935
  probe_data?: {
2936
2936
  version: 1;
@@ -2957,9 +2957,9 @@ export declare const BundleV1Schema: z.ZodObject<{
2957
2957
  html_excerpt: string;
2958
2958
  } | null;
2959
2959
  route_changes: {
2960
- ts: string;
2961
2960
  from: string;
2962
2961
  to: string;
2962
+ ts: string;
2963
2963
  }[];
2964
2964
  clicks: {
2965
2965
  label: string;
@@ -2974,8 +2974,8 @@ export declare const BundleV1Schema: z.ZodObject<{
2974
2974
  console_logs: unknown[];
2975
2975
  network_requests: {
2976
2976
  status: number;
2977
- method: string;
2978
2977
  url: string;
2978
+ method: string;
2979
2979
  ts: string;
2980
2980
  duration_ms?: number | undefined;
2981
2981
  response_headers?: Record<string, string> | undefined;
@@ -3026,15 +3026,15 @@ export declare const BundleV1Schema: z.ZodObject<{
3026
3026
  query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3027
3027
  body: z.ZodNullable<z.ZodUnknown>;
3028
3028
  }, "strip", z.ZodTypeAny, {
3029
+ url: string;
3029
3030
  method: string;
3030
3031
  headers: Record<string, unknown>;
3031
- url: string;
3032
3032
  query?: Record<string, unknown> | undefined;
3033
3033
  body?: unknown;
3034
3034
  }, {
3035
+ url: string;
3035
3036
  method: string;
3036
3037
  headers: Record<string, unknown>;
3037
- url: string;
3038
3038
  query?: Record<string, unknown> | undefined;
3039
3039
  body?: unknown;
3040
3040
  }>>;
@@ -3042,9 +3042,9 @@ export declare const BundleV1Schema: z.ZodObject<{
3042
3042
  curl: string | null;
3043
3043
  httpie: string | null;
3044
3044
  json_spec: {
3045
+ url: string;
3045
3046
  method: string;
3046
3047
  headers: Record<string, unknown>;
3047
- url: string;
3048
3048
  query?: Record<string, unknown> | undefined;
3049
3049
  body?: unknown;
3050
3050
  } | null;
@@ -3052,9 +3052,9 @@ export declare const BundleV1Schema: z.ZodObject<{
3052
3052
  curl: string | null;
3053
3053
  httpie: string | null;
3054
3054
  json_spec: {
3055
+ url: string;
3055
3056
  method: string;
3056
3057
  headers: Record<string, unknown>;
3057
- url: string;
3058
3058
  query?: Record<string, unknown> | undefined;
3059
3059
  body?: unknown;
3060
3060
  } | null;
@@ -3086,9 +3086,9 @@ export declare const BundleV1Schema: z.ZodObject<{
3086
3086
  curl: string | null;
3087
3087
  httpie: string | null;
3088
3088
  json_spec: {
3089
+ url: string;
3089
3090
  method: string;
3090
3091
  headers: Record<string, unknown>;
3091
- url: string;
3092
3092
  query?: Record<string, unknown> | undefined;
3093
3093
  body?: unknown;
3094
3094
  } | null;
@@ -3108,9 +3108,9 @@ export declare const BundleV1Schema: z.ZodObject<{
3108
3108
  curl: string | null;
3109
3109
  httpie: string | null;
3110
3110
  json_spec: {
3111
+ url: string;
3111
3112
  method: string;
3112
3113
  headers: Record<string, unknown>;
3113
- url: string;
3114
3114
  query?: Record<string, unknown> | undefined;
3115
3115
  body?: unknown;
3116
3116
  } | null;
@@ -3146,16 +3146,16 @@ export declare const BundleV1Schema: z.ZodObject<{
3146
3146
  project: z.ZodNullable<z.ZodString>;
3147
3147
  docs: z.ZodNullable<z.ZodString>;
3148
3148
  }, "strip", z.ZodTypeAny, {
3149
+ project: string | null;
3149
3150
  self: string | null;
3150
3151
  reproduction: string | null;
3151
3152
  incident: string | null;
3152
- project: string | null;
3153
3153
  docs: string | null;
3154
3154
  }, {
3155
+ project: string | null;
3155
3156
  self: string | null;
3156
3157
  reproduction: string | null;
3157
3158
  incident: string | null;
3158
- project: string | null;
3159
3159
  docs: string | null;
3160
3160
  }>;
3161
3161
  redaction: z.ZodObject<{
@@ -3177,30 +3177,84 @@ export declare const BundleV1Schema: z.ZodObject<{
3177
3177
  generator_version: z.ZodString;
3178
3178
  generation_number: z.ZodNumber;
3179
3179
  }, "strip", z.ZodTypeAny, {
3180
- updated_at: string;
3181
3180
  created_at: string;
3181
+ updated_at: string;
3182
3182
  generator_version: string;
3183
3183
  generation_number: number;
3184
3184
  }, {
3185
- updated_at: string;
3186
3185
  created_at: string;
3186
+ updated_at: string;
3187
3187
  generator_version: string;
3188
3188
  generation_number: number;
3189
3189
  }>;
3190
3190
  }, "strip", z.ZodTypeAny, {
3191
+ signal: {
3192
+ first_seen_at: string;
3193
+ last_seen_at: string;
3194
+ severity: "medium" | "low" | "high" | "critical";
3195
+ fingerprint: string;
3196
+ signal_id: string;
3197
+ signal_type: "warning" | "frontend_exception" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
3198
+ occurrence_count: number;
3199
+ source_event_types: string[];
3200
+ };
3201
+ service: {
3202
+ name: string;
3203
+ runtime: string | null;
3204
+ framework: string | null;
3205
+ version: string | null;
3206
+ id: string;
3207
+ region: string | null;
3208
+ };
3209
+ summary: {
3210
+ title: string;
3211
+ severity: "medium" | "low" | "high" | "critical";
3212
+ confidence: number;
3213
+ description: string;
3214
+ recommended_action: string | null;
3215
+ likely_cause: string | null;
3216
+ error_type: string | null;
3217
+ error_message: string | null;
3218
+ first_application_frame: {
3219
+ function: string | null;
3220
+ file: string | null;
3221
+ line: number | null;
3222
+ } | null;
3223
+ primary_signal: string | null;
3224
+ signals: {
3225
+ new_deploy: boolean;
3226
+ regression_suspected: boolean;
3227
+ customer_visible: boolean;
3228
+ };
3229
+ };
3230
+ bundle_type: "failure" | "improvement";
3231
+ project: {
3232
+ environment: string;
3233
+ id: string;
3234
+ slug: string;
3235
+ };
3236
+ redaction: {
3237
+ fields: string[];
3238
+ notes: string | null;
3239
+ redacted: boolean;
3240
+ };
3241
+ metadata: {
3242
+ created_at: string;
3243
+ updated_at: string;
3244
+ generator_version: string;
3245
+ generation_number: number;
3246
+ };
3191
3247
  context: {
3192
- error?: {
3193
- message: string;
3248
+ environment?: {
3249
+ os: string | null;
3250
+ host: string | null;
3194
3251
  version: 1;
3195
- name: string;
3196
- stack: string;
3197
- handled: boolean;
3198
- top_frames: string[];
3252
+ container_id: string | null;
3199
3253
  } | null | undefined;
3200
3254
  runtime?: {
3201
- version: 1;
3202
3255
  name: string;
3203
3256
  framework: string | null;
3257
+ version: 1;
3204
3258
  platform: string | null;
3205
3259
  arch: string | null;
3206
3260
  pid: number | null;
@@ -3219,24 +3273,27 @@ export declare const BundleV1Schema: z.ZodObject<{
3219
3273
  runtime_version: string | null;
3220
3274
  framework_extras?: Record<string, unknown> | null | undefined;
3221
3275
  } | null | undefined;
3222
- environment?: {
3223
- host: string | null;
3276
+ error?: {
3277
+ message: string;
3278
+ name: string;
3224
3279
  version: 1;
3225
- os: string | null;
3226
- container_id: string | null;
3280
+ stack: string;
3281
+ handled: boolean;
3282
+ top_frames: string[];
3227
3283
  } | null | undefined;
3228
3284
  device?: {
3285
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
3286
+ language: string | null;
3229
3287
  browser: {
3230
- version: string | null;
3231
3288
  name: string | null;
3289
+ version: string | null;
3232
3290
  };
3233
- version: 1;
3234
- user_agent: string | null;
3235
3291
  os: {
3236
- version: string | null;
3237
3292
  name: string | null;
3293
+ version: string | null;
3238
3294
  };
3239
- device_type: "unknown" | "desktop" | "mobile" | "tablet";
3295
+ version: 1;
3296
+ user_agent: string | null;
3240
3297
  screen: {
3241
3298
  width: number;
3242
3299
  height: number;
@@ -3247,26 +3304,25 @@ export declare const BundleV1Schema: z.ZodObject<{
3247
3304
  };
3248
3305
  device_pixel_ratio: number | null;
3249
3306
  touch_capable: boolean | null;
3250
- language: string | null;
3251
3307
  connection_type: string | null;
3252
3308
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
3253
3309
  } | null | undefined;
3254
3310
  request?: {
3255
3311
  path: string;
3312
+ query: Record<string, unknown>;
3256
3313
  method: string;
3257
3314
  version: 1;
3258
3315
  headers: Record<string, unknown>;
3259
3316
  request_id: string | null;
3260
- query: Record<string, unknown>;
3261
3317
  route_template: string | null;
3262
3318
  body?: unknown;
3263
3319
  } | null | undefined;
3264
3320
  response?: {
3321
+ duration_ms: number | null;
3265
3322
  status_code: number;
3266
3323
  version: 1;
3267
- duration_ms: number | null;
3268
- headers?: Record<string, unknown> | undefined;
3269
3324
  body?: unknown;
3325
+ headers?: Record<string, unknown> | undefined;
3270
3326
  } | null | undefined;
3271
3327
  probe_data?: {
3272
3328
  version: 1;
@@ -3293,9 +3349,9 @@ export declare const BundleV1Schema: z.ZodObject<{
3293
3349
  html_excerpt: string;
3294
3350
  } | null;
3295
3351
  route_changes: {
3296
- ts: string;
3297
3352
  from: string;
3298
3353
  to: string;
3354
+ ts: string;
3299
3355
  }[];
3300
3356
  clicks: {
3301
3357
  label: string;
@@ -3310,8 +3366,8 @@ export declare const BundleV1Schema: z.ZodObject<{
3310
3366
  console_logs: unknown[];
3311
3367
  network_requests: {
3312
3368
  status: number;
3313
- method: string;
3314
3369
  url: string;
3370
+ method: string;
3315
3371
  ts: string;
3316
3372
  duration_ms?: number | undefined;
3317
3373
  response_headers?: Record<string, string> | undefined;
@@ -3348,14 +3404,6 @@ export declare const BundleV1Schema: z.ZodObject<{
3348
3404
  }[];
3349
3405
  } | null | undefined;
3350
3406
  };
3351
- service: {
3352
- version: string | null;
3353
- runtime: string | null;
3354
- name: string;
3355
- id: string;
3356
- framework: string | null;
3357
- region: string | null;
3358
- };
3359
3407
  reproduction: {
3360
3408
  confidence: number;
3361
3409
  reason: string;
@@ -3364,9 +3412,9 @@ export declare const BundleV1Schema: z.ZodObject<{
3364
3412
  curl: string | null;
3365
3413
  httpie: string | null;
3366
3414
  json_spec: {
3415
+ url: string;
3367
3416
  method: string;
3368
3417
  headers: Record<string, unknown>;
3369
- url: string;
3370
3418
  query?: Record<string, unknown> | undefined;
3371
3419
  body?: unknown;
3372
3420
  } | null;
@@ -3379,35 +3427,58 @@ export declare const BundleV1Schema: z.ZodObject<{
3379
3427
  external_outage_timing: string;
3380
3428
  } | null | undefined;
3381
3429
  };
3382
- project: {
3383
- id: string;
3384
- environment: string;
3385
- slug: string;
3386
- };
3387
3430
  bundle_version: 1;
3388
3431
  bundle_id: string;
3389
- bundle_type: "failure" | "improvement";
3390
3432
  captured_at: string;
3391
3433
  sdk: {
3392
- version: string;
3393
3434
  name: string;
3435
+ version: string;
3394
3436
  };
3437
+ impact: {
3438
+ regression_suspected: boolean;
3439
+ customer_visible: boolean;
3440
+ affected_users_estimate: number | null;
3441
+ affected_requests_estimate: number | null;
3442
+ business_criticality: "medium" | "low" | "high" | "critical";
3443
+ };
3444
+ verification: {
3445
+ verification_type: string | null;
3446
+ synthetic: boolean;
3447
+ local_verified: boolean;
3448
+ production_verified: boolean;
3449
+ };
3450
+ links: {
3451
+ project: string | null;
3452
+ self: string | null;
3453
+ reproduction: string | null;
3454
+ incident: string | null;
3455
+ docs: string | null;
3456
+ };
3457
+ }, {
3395
3458
  signal: {
3459
+ first_seen_at: string;
3460
+ last_seen_at: string;
3461
+ severity: "medium" | "low" | "high" | "critical";
3396
3462
  fingerprint: string;
3397
3463
  signal_id: string;
3398
3464
  signal_type: "warning" | "frontend_exception" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
3399
- severity: "critical" | "high" | "medium" | "low";
3400
- first_seen_at: string;
3401
- last_seen_at: string;
3402
3465
  occurrence_count: number;
3403
3466
  source_event_types: string[];
3404
3467
  };
3468
+ service: {
3469
+ name: string;
3470
+ runtime: string | null;
3471
+ framework: string | null;
3472
+ version: string | null;
3473
+ id: string;
3474
+ region: string | null;
3475
+ };
3405
3476
  summary: {
3477
+ title: string;
3478
+ severity: "medium" | "low" | "high" | "critical";
3479
+ confidence: number;
3406
3480
  description: string;
3407
3481
  recommended_action: string | null;
3408
- confidence: number;
3409
- severity: "critical" | "high" | "medium" | "low";
3410
- title: string;
3411
3482
  likely_cause: string | null;
3412
3483
  error_type: string | null;
3413
3484
  error_message: string | null;
@@ -3423,25 +3494,11 @@ export declare const BundleV1Schema: z.ZodObject<{
3423
3494
  customer_visible: boolean;
3424
3495
  };
3425
3496
  };
3426
- impact: {
3427
- regression_suspected: boolean;
3428
- customer_visible: boolean;
3429
- affected_users_estimate: number | null;
3430
- affected_requests_estimate: number | null;
3431
- business_criticality: "critical" | "high" | "medium" | "low";
3432
- };
3433
- verification: {
3434
- verification_type: string | null;
3435
- synthetic: boolean;
3436
- local_verified: boolean;
3437
- production_verified: boolean;
3438
- };
3439
- links: {
3440
- self: string | null;
3441
- reproduction: string | null;
3442
- incident: string | null;
3443
- project: string | null;
3444
- docs: string | null;
3497
+ bundle_type: "failure" | "improvement";
3498
+ project: {
3499
+ environment: string;
3500
+ id: string;
3501
+ slug: string;
3445
3502
  };
3446
3503
  redaction: {
3447
3504
  fields: string[];
@@ -3449,25 +3506,22 @@ export declare const BundleV1Schema: z.ZodObject<{
3449
3506
  redacted: boolean;
3450
3507
  };
3451
3508
  metadata: {
3452
- updated_at: string;
3453
3509
  created_at: string;
3510
+ updated_at: string;
3454
3511
  generator_version: string;
3455
3512
  generation_number: number;
3456
3513
  };
3457
- }, {
3458
3514
  context: {
3459
- error?: {
3460
- message: string;
3515
+ environment?: {
3516
+ os: string | null;
3517
+ host: string | null;
3461
3518
  version: 1;
3462
- name: string;
3463
- stack: string;
3464
- handled: boolean;
3465
- top_frames: string[];
3519
+ container_id: string | null;
3466
3520
  } | null | undefined;
3467
3521
  runtime?: {
3468
- version: 1;
3469
3522
  name: string;
3470
3523
  framework: string | null;
3524
+ version: 1;
3471
3525
  platform: string | null;
3472
3526
  arch: string | null;
3473
3527
  pid: number | null;
@@ -3486,24 +3540,27 @@ export declare const BundleV1Schema: z.ZodObject<{
3486
3540
  runtime_version: string | null;
3487
3541
  framework_extras?: Record<string, unknown> | null | undefined;
3488
3542
  } | null | undefined;
3489
- environment?: {
3490
- host: string | null;
3543
+ error?: {
3544
+ message: string;
3545
+ name: string;
3491
3546
  version: 1;
3492
- os: string | null;
3493
- container_id: string | null;
3547
+ stack: string;
3548
+ handled: boolean;
3549
+ top_frames: string[];
3494
3550
  } | null | undefined;
3495
3551
  device?: {
3552
+ device_type: "unknown" | "desktop" | "mobile" | "tablet";
3553
+ language: string | null;
3496
3554
  browser: {
3497
- version: string | null;
3498
3555
  name: string | null;
3556
+ version: string | null;
3499
3557
  };
3500
- version: 1;
3501
- user_agent: string | null;
3502
3558
  os: {
3503
- version: string | null;
3504
3559
  name: string | null;
3560
+ version: string | null;
3505
3561
  };
3506
- device_type: "unknown" | "desktop" | "mobile" | "tablet";
3562
+ version: 1;
3563
+ user_agent: string | null;
3507
3564
  screen: {
3508
3565
  width: number;
3509
3566
  height: number;
@@ -3514,26 +3571,25 @@ export declare const BundleV1Schema: z.ZodObject<{
3514
3571
  };
3515
3572
  device_pixel_ratio: number | null;
3516
3573
  touch_capable: boolean | null;
3517
- language: string | null;
3518
3574
  connection_type: string | null;
3519
3575
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
3520
3576
  } | null | undefined;
3521
3577
  request?: {
3522
3578
  path: string;
3579
+ query: Record<string, unknown>;
3523
3580
  method: string;
3524
3581
  version: 1;
3525
3582
  headers: Record<string, unknown>;
3526
3583
  request_id: string | null;
3527
- query: Record<string, unknown>;
3528
3584
  route_template: string | null;
3529
3585
  body?: unknown;
3530
3586
  } | null | undefined;
3531
3587
  response?: {
3588
+ duration_ms: number | null;
3532
3589
  status_code: number;
3533
3590
  version: 1;
3534
- duration_ms: number | null;
3535
- headers?: Record<string, unknown> | undefined;
3536
3591
  body?: unknown;
3592
+ headers?: Record<string, unknown> | undefined;
3537
3593
  } | null | undefined;
3538
3594
  probe_data?: {
3539
3595
  version: 1;
@@ -3560,9 +3616,9 @@ export declare const BundleV1Schema: z.ZodObject<{
3560
3616
  html_excerpt: string;
3561
3617
  } | null;
3562
3618
  route_changes: {
3563
- ts: string;
3564
3619
  from: string;
3565
3620
  to: string;
3621
+ ts: string;
3566
3622
  }[];
3567
3623
  clicks: {
3568
3624
  label: string;
@@ -3577,8 +3633,8 @@ export declare const BundleV1Schema: z.ZodObject<{
3577
3633
  console_logs: unknown[];
3578
3634
  network_requests: {
3579
3635
  status: number;
3580
- method: string;
3581
3636
  url: string;
3637
+ method: string;
3582
3638
  ts: string;
3583
3639
  duration_ms?: number | undefined;
3584
3640
  response_headers?: Record<string, string> | undefined;
@@ -3615,14 +3671,6 @@ export declare const BundleV1Schema: z.ZodObject<{
3615
3671
  }[];
3616
3672
  } | null | undefined;
3617
3673
  };
3618
- service: {
3619
- version: string | null;
3620
- runtime: string | null;
3621
- name: string;
3622
- id: string;
3623
- framework: string | null;
3624
- region: string | null;
3625
- };
3626
3674
  reproduction: {
3627
3675
  confidence: number;
3628
3676
  reason: string;
@@ -3631,9 +3679,9 @@ export declare const BundleV1Schema: z.ZodObject<{
3631
3679
  curl: string | null;
3632
3680
  httpie: string | null;
3633
3681
  json_spec: {
3682
+ url: string;
3634
3683
  method: string;
3635
3684
  headers: Record<string, unknown>;
3636
- url: string;
3637
3685
  query?: Record<string, unknown> | undefined;
3638
3686
  body?: unknown;
3639
3687
  } | null;
@@ -3646,56 +3694,19 @@ export declare const BundleV1Schema: z.ZodObject<{
3646
3694
  external_outage_timing: string;
3647
3695
  } | null | undefined;
3648
3696
  };
3649
- project: {
3650
- id: string;
3651
- environment: string;
3652
- slug: string;
3653
- };
3654
3697
  bundle_version: 1;
3655
3698
  bundle_id: string;
3656
- bundle_type: "failure" | "improvement";
3657
3699
  captured_at: string;
3658
3700
  sdk: {
3659
- version: string;
3660
3701
  name: string;
3661
- };
3662
- signal: {
3663
- fingerprint: string;
3664
- signal_id: string;
3665
- signal_type: "warning" | "frontend_exception" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
3666
- severity: "critical" | "high" | "medium" | "low";
3667
- first_seen_at: string;
3668
- last_seen_at: string;
3669
- occurrence_count: number;
3670
- source_event_types: string[];
3671
- };
3672
- summary: {
3673
- description: string;
3674
- recommended_action: string | null;
3675
- confidence: number;
3676
- severity: "critical" | "high" | "medium" | "low";
3677
- title: string;
3678
- likely_cause: string | null;
3679
- error_type: string | null;
3680
- error_message: string | null;
3681
- first_application_frame: {
3682
- function: string | null;
3683
- file: string | null;
3684
- line: number | null;
3685
- } | null;
3686
- primary_signal: string | null;
3687
- signals: {
3688
- new_deploy: boolean;
3689
- regression_suspected: boolean;
3690
- customer_visible: boolean;
3691
- };
3702
+ version: string;
3692
3703
  };
3693
3704
  impact: {
3694
3705
  regression_suspected: boolean;
3695
3706
  customer_visible: boolean;
3696
3707
  affected_users_estimate: number | null;
3697
3708
  affected_requests_estimate: number | null;
3698
- business_criticality: "critical" | "high" | "medium" | "low";
3709
+ business_criticality: "medium" | "low" | "high" | "critical";
3699
3710
  };
3700
3711
  verification: {
3701
3712
  verification_type: string | null;
@@ -3704,23 +3715,12 @@ export declare const BundleV1Schema: z.ZodObject<{
3704
3715
  production_verified: boolean;
3705
3716
  };
3706
3717
  links: {
3718
+ project: string | null;
3707
3719
  self: string | null;
3708
3720
  reproduction: string | null;
3709
3721
  incident: string | null;
3710
- project: string | null;
3711
3722
  docs: string | null;
3712
3723
  };
3713
- redaction: {
3714
- fields: string[];
3715
- notes: string | null;
3716
- redacted: boolean;
3717
- };
3718
- metadata: {
3719
- updated_at: string;
3720
- created_at: string;
3721
- generator_version: string;
3722
- generation_number: number;
3723
- };
3724
3724
  }>;
3725
3725
  export type BundleV1 = z.infer<typeof BundleV1Schema>;
3726
3726
  export { MAX_BILLING_ADDITIONAL_CAPACITY_UNITS, TIER_CAPABILITIES, getTierCapabilities, isSelfHostMode, type TierName, type TierCapabilities } from "./tier-capabilities.js";
@@ -3729,5 +3729,9 @@ export { isLowValueExternalProbeRequestFailure404 } from "./request-failure-nois
3729
3729
  export { CaptureRuleActionValues, CaptureRuleActionSchema, type CaptureRuleAction, CaptureRuleSampleEventClassValues, CaptureRuleSampleEventClassSchema, type CaptureRuleSampleEventClass, CaptureRuleRuntimeSchema, type CaptureRuleRuntime, CaptureRuleEventTypeSchema, type CaptureRuleEventType, BrowserEventKindSchema, type BrowserEventKind, CaptureRuleClientKindSchema, type CaptureRuleClientKind, CaptureRuleMatcherSchema, type CaptureRuleMatcher, CaptureRuleSchema, type CaptureRule, CaptureRuleResponseSchema, type CaptureRuleResponse, CaptureRulesResponseSchema, type CaptureRulesResponse, CaptureRuleCreateSchema, type CaptureRuleCreate, CaptureRuleUpdateSchema, type CaptureRuleUpdate, CaptureRulesFileSchema, type CaptureRulesFile, CaptureRuleEvaluationContextSchema, type CaptureRuleEvaluationContext, type CaptureRuleEvaluationResult, type CaptureRuleEvaluableEvent, buildCaptureRuleEvaluationContext, applyCaptureRuleEventClass, matchesCaptureRule, isCaptureRuleActive, getCaptureRuleSpecificityScore, shouldSampleCaptureRuleEvent, classifyCaptureRuleClientFromUserAgent, evaluateCaptureRules, } from "./capture-rules.js";
3730
3730
  export { CaptureRuleSuggestionConfidenceSchema, type CaptureRuleSuggestionConfidence, CaptureRuleSuggestionSchema, type CaptureRuleSuggestion, CaptureRuleSuggestionsResponseSchema, type CaptureRuleSuggestionsResponse, CreateCaptureRuleFromSuggestionSchema, type CreateCaptureRuleFromSuggestion, type CaptureRuleSuggestionIncident, type CaptureRuleSuggestionBundle, buildCaptureRuleSuggestions } from "./capture-rule-suggestions.js";
3731
3731
  export { ImprovementBundleSensitivityValues, ImprovementBundleSensitivitySchema, type ImprovementBundleSensitivity, ImprovementSettingsSchema, type ImprovementSettings, ImprovementSettingsResponseSchema, type ImprovementSettingsResponse, ImprovementSettingsUpdateSchema, type ImprovementSettingsUpdate } from "./improvement-settings.js";
3732
+ export * from "./analytics.js";
3733
+ export * from "./analytics-product.js";
3734
+ export * from "./analytics-journey-samples.js";
3735
+ export * from "./analytics-saved-funnels.js";
3732
3736
  export { PROJECT_COLOR_TAG_VALUES, ProjectColorTagSchema, type ProjectColorTag } from "./project-color-tags.js";
3733
3737
  //# sourceMappingURL=index.d.ts.map