@debugbundle/shared-types 2.0.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/README.md +1 -0
  2. package/dist/alert-notification-policy.d.ts +71 -0
  3. package/dist/alert-notification-policy.d.ts.map +1 -0
  4. package/dist/alert-notification-policy.js +54 -0
  5. package/dist/alert-notification-policy.js.map +1 -0
  6. package/dist/analytics-flows.d.ts +691 -0
  7. package/dist/analytics-flows.d.ts.map +1 -0
  8. package/dist/analytics-flows.js +99 -0
  9. package/dist/analytics-flows.js.map +1 -0
  10. package/dist/analytics-journey-samples.d.ts +58 -58
  11. package/dist/analytics-product.d.ts +26 -26
  12. package/dist/analytics-saved-funnels.d.ts +97 -97
  13. package/dist/analytics.d.ts +144 -144
  14. package/dist/browser-recovery.d.ts +13 -0
  15. package/dist/browser-recovery.d.ts.map +1 -0
  16. package/dist/browser-recovery.js +42 -0
  17. package/dist/browser-recovery.js.map +1 -0
  18. package/dist/browser-resource-context.d.ts +72 -6
  19. package/dist/browser-resource-context.d.ts.map +1 -1
  20. package/dist/browser-resource-context.js +20 -1
  21. package/dist/browser-resource-context.js.map +1 -1
  22. package/dist/browser-resource-routes.d.ts +2 -2
  23. package/dist/browser-resource-suggestions.d.ts.map +1 -1
  24. package/dist/browser-resource-suggestions.js +51 -1
  25. package/dist/browser-resource-suggestions.js.map +1 -1
  26. package/dist/browser-resource.d.ts +8 -0
  27. package/dist/browser-resource.d.ts.map +1 -1
  28. package/dist/browser-resource.js +24 -0
  29. package/dist/browser-resource.js.map +1 -1
  30. package/dist/capture-policy.d.ts +16 -16
  31. package/dist/capture-rule-evaluation.d.ts +73 -14
  32. package/dist/capture-rule-evaluation.d.ts.map +1 -1
  33. package/dist/capture-rule-evaluation.js +98 -3
  34. package/dist/capture-rule-evaluation.js.map +1 -1
  35. package/dist/capture-rule-schemas.d.ts +1124 -254
  36. package/dist/capture-rule-schemas.d.ts.map +1 -1
  37. package/dist/capture-rule-schemas.js +56 -0
  38. package/dist/capture-rule-schemas.js.map +1 -1
  39. package/dist/capture-rule-suggestions.d.ts +398 -97
  40. package/dist/capture-rule-suggestions.d.ts.map +1 -1
  41. package/dist/event-envelope.d.ts +396 -396
  42. package/dist/frontend-severity.d.ts.map +1 -1
  43. package/dist/frontend-severity.js +3 -0
  44. package/dist/frontend-severity.js.map +1 -1
  45. package/dist/index.d.ts +450 -327
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +2 -1
  48. package/dist/index.js.map +1 -1
  49. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -9,23 +9,23 @@ export declare const BundleV1Schema: z.ZodObject<{
9
9
  name: z.ZodString;
10
10
  version: z.ZodString;
11
11
  }, "strip", z.ZodTypeAny, {
12
- name: string;
13
12
  version: string;
14
- }, {
15
13
  name: string;
14
+ }, {
16
15
  version: string;
16
+ name: string;
17
17
  }>;
18
18
  project: z.ZodObject<{
19
19
  id: z.ZodString;
20
20
  slug: z.ZodString;
21
21
  environment: z.ZodString;
22
22
  }, "strip", z.ZodTypeAny, {
23
- environment: string;
24
23
  id: string;
24
+ environment: string;
25
25
  slug: string;
26
26
  }, {
27
- environment: string;
28
27
  id: string;
28
+ environment: string;
29
29
  slug: string;
30
30
  }>;
31
31
  service: z.ZodObject<{
@@ -36,18 +36,18 @@ export declare const BundleV1Schema: z.ZodObject<{
36
36
  version: z.ZodNullable<z.ZodString>;
37
37
  region: z.ZodNullable<z.ZodString>;
38
38
  }, "strip", z.ZodTypeAny, {
39
+ id: string;
40
+ version: string | null;
39
41
  name: string;
40
42
  runtime: string | null;
41
43
  framework: string | null;
42
- version: string | null;
43
- id: string;
44
44
  region: string | null;
45
45
  }, {
46
+ id: string;
47
+ version: string | null;
46
48
  name: string;
47
49
  runtime: string | null;
48
50
  framework: string | null;
49
- version: string | null;
50
- id: string;
51
51
  region: string | null;
52
52
  }>;
53
53
  signal: z.ZodObject<{
@@ -202,6 +202,7 @@ export declare const BundleV1Schema: z.ZodObject<{
202
202
  omitted_routes: z.ZodNumber;
203
203
  coverage: z.ZodEnum<["occurrence_metadata", "retained_samples"]>;
204
204
  }, "strip", z.ZodTypeAny, {
205
+ coverage: "occurrence_metadata" | "retained_samples";
205
206
  items: {
206
207
  route: string;
207
208
  occurrences: number;
@@ -209,8 +210,8 @@ export declare const BundleV1Schema: z.ZodObject<{
209
210
  recorded_occurrences: number;
210
211
  unattributed_occurrences: number;
211
212
  omitted_routes: number;
212
- coverage: "occurrence_metadata" | "retained_samples";
213
213
  }, {
214
+ coverage: "occurrence_metadata" | "retained_samples";
214
215
  items: {
215
216
  route: string;
216
217
  occurrences: number;
@@ -218,13 +219,52 @@ export declare const BundleV1Schema: z.ZodObject<{
218
219
  recorded_occurrences: number;
219
220
  unattributed_occurrences: number;
220
221
  omitted_routes: number;
221
- coverage: "occurrence_metadata" | "retained_samples";
222
222
  }>;
223
+ interruption: z.ZodOptional<z.ZodObject<{
224
+ visibility_state: z.ZodEnum<["hidden", "prerender", "unloaded"]>;
225
+ ready_state: z.ZodEnum<["loading", "interactive"]>;
226
+ target_tag_name: z.ZodLiteral<"link">;
227
+ rel: z.ZodEnum<["preload", "modulepreload", "prefetch"]>;
228
+ }, "strip", z.ZodTypeAny, {
229
+ rel: "preload" | "modulepreload" | "prefetch";
230
+ ready_state: "loading" | "interactive";
231
+ visibility_state: "hidden" | "prerender" | "unloaded";
232
+ target_tag_name: "link";
233
+ }, {
234
+ rel: "preload" | "modulepreload" | "prefetch";
235
+ ready_state: "loading" | "interactive";
236
+ visibility_state: "hidden" | "prerender" | "unloaded";
237
+ target_tag_name: "link";
238
+ }>>;
239
+ recovery_failures: z.ZodOptional<z.ZodArray<z.ZodObject<{
240
+ source: z.ZodEnum<["request_event", "frontend_breadcrumb"]>;
241
+ method: z.ZodString;
242
+ path: z.ZodString;
243
+ status_code: z.ZodNumber;
244
+ occurred_at: z.ZodString;
245
+ delay_ms: z.ZodNumber;
246
+ }, "strip", z.ZodTypeAny, {
247
+ path: string;
248
+ source: "request_event" | "frontend_breadcrumb";
249
+ occurred_at: string;
250
+ method: string;
251
+ status_code: number;
252
+ delay_ms: number;
253
+ }, {
254
+ path: string;
255
+ source: "request_event" | "frontend_breadcrumb";
256
+ occurred_at: string;
257
+ method: string;
258
+ status_code: number;
259
+ delay_ms: number;
260
+ }>, "many">>;
223
261
  }, "strip", z.ZodTypeAny, {
224
262
  path: string;
225
263
  type: string | null;
264
+ version: 1;
226
265
  title: string;
227
266
  routes: {
267
+ coverage: "occurrence_metadata" | "retained_samples";
228
268
  items: {
229
269
  route: string;
230
270
  occurrences: number;
@@ -232,20 +272,34 @@ export declare const BundleV1Schema: z.ZodObject<{
232
272
  recorded_occurrences: number;
233
273
  unattributed_occurrences: number;
234
274
  omitted_routes: number;
235
- coverage: "occurrence_metadata" | "retained_samples";
236
275
  };
237
- version: 1;
238
276
  host: string | null;
239
277
  first_party: boolean | null;
240
278
  role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
241
279
  provider: string | null;
242
280
  optional_candidate: boolean;
243
281
  diagnosis: string;
282
+ interruption?: {
283
+ rel: "preload" | "modulepreload" | "prefetch";
284
+ ready_state: "loading" | "interactive";
285
+ visibility_state: "hidden" | "prerender" | "unloaded";
286
+ target_tag_name: "link";
287
+ } | undefined;
288
+ recovery_failures?: {
289
+ path: string;
290
+ source: "request_event" | "frontend_breadcrumb";
291
+ occurred_at: string;
292
+ method: string;
293
+ status_code: number;
294
+ delay_ms: number;
295
+ }[] | undefined;
244
296
  }, {
245
297
  path: string;
246
298
  type: string | null;
299
+ version: 1;
247
300
  title: string;
248
301
  routes: {
302
+ coverage: "occurrence_metadata" | "retained_samples";
249
303
  items: {
250
304
  route: string;
251
305
  occurrences: number;
@@ -253,15 +307,27 @@ export declare const BundleV1Schema: z.ZodObject<{
253
307
  recorded_occurrences: number;
254
308
  unattributed_occurrences: number;
255
309
  omitted_routes: number;
256
- coverage: "occurrence_metadata" | "retained_samples";
257
310
  };
258
- version: 1;
259
311
  host: string | null;
260
312
  first_party: boolean | null;
261
313
  role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
262
314
  provider: string | null;
263
315
  optional_candidate: boolean;
264
316
  diagnosis: string;
317
+ interruption?: {
318
+ rel: "preload" | "modulepreload" | "prefetch";
319
+ ready_state: "loading" | "interactive";
320
+ visibility_state: "hidden" | "prerender" | "unloaded";
321
+ target_tag_name: "link";
322
+ } | undefined;
323
+ recovery_failures?: {
324
+ path: string;
325
+ source: "request_event" | "frontend_breadcrumb";
326
+ occurred_at: string;
327
+ method: string;
328
+ status_code: number;
329
+ delay_ms: number;
330
+ }[] | undefined;
265
331
  }>>;
266
332
  error: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodObject<{
267
333
  version: z.ZodLiteral<1>;
@@ -272,15 +338,15 @@ export declare const BundleV1Schema: z.ZodObject<{
272
338
  top_frames: z.ZodArray<z.ZodString, "many">;
273
339
  }, "strip", z.ZodTypeAny, {
274
340
  message: string;
275
- name: string;
276
341
  version: 1;
342
+ name: string;
277
343
  stack: string;
278
344
  handled: boolean;
279
345
  top_frames: string[];
280
346
  }, {
281
347
  message: string;
282
- name: string;
283
348
  version: 1;
349
+ name: string;
284
350
  stack: string;
285
351
  handled: boolean;
286
352
  top_frames: string[];
@@ -296,20 +362,20 @@ export declare const BundleV1Schema: z.ZodObject<{
296
362
  request_id: z.ZodNullable<z.ZodString>;
297
363
  }, "strip", z.ZodTypeAny, {
298
364
  path: string;
299
- query: Record<string, unknown>;
300
365
  version: 1;
301
- headers: Record<string, unknown>;
302
- method: string;
366
+ query: Record<string, unknown>;
303
367
  request_id: string | null;
368
+ method: string;
369
+ headers: Record<string, unknown>;
304
370
  route_template: string | null;
305
371
  body?: unknown;
306
372
  }, {
307
373
  path: string;
308
- query: Record<string, unknown>;
309
374
  version: 1;
310
- headers: Record<string, unknown>;
311
- method: string;
375
+ query: Record<string, unknown>;
312
376
  request_id: string | null;
377
+ method: string;
378
+ headers: Record<string, unknown>;
313
379
  route_template: string | null;
314
380
  body?: unknown;
315
381
  }>>>;
@@ -320,14 +386,14 @@ export declare const BundleV1Schema: z.ZodObject<{
320
386
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
321
387
  body: z.ZodOptional<z.ZodUnknown>;
322
388
  }, "strip", z.ZodTypeAny, {
323
- duration_ms: number | null;
324
389
  version: 1;
390
+ duration_ms: number | null;
325
391
  status_code: number;
326
392
  body?: unknown;
327
393
  headers?: Record<string, unknown> | undefined;
328
394
  }, {
329
- duration_ms: number | null;
330
395
  version: 1;
396
+ duration_ms: number | null;
331
397
  status_code: number;
332
398
  body?: unknown;
333
399
  headers?: Record<string, unknown> | undefined;
@@ -341,31 +407,31 @@ export declare const BundleV1Schema: z.ZodObject<{
341
407
  attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
342
408
  }, "strip", z.ZodTypeAny, {
343
409
  message: string;
344
- level: string;
345
410
  timestamp: string;
411
+ level: string;
346
412
  attributes: Record<string, unknown>;
347
413
  }, {
348
414
  message: string;
349
- level: string;
350
415
  timestamp: string;
416
+ level: string;
351
417
  attributes: Record<string, unknown>;
352
418
  }>, "many">;
353
419
  }, "strip", z.ZodTypeAny, {
420
+ version: 1;
354
421
  items: {
355
422
  message: string;
356
- level: string;
357
423
  timestamp: string;
424
+ level: string;
358
425
  attributes: Record<string, unknown>;
359
426
  }[];
360
- version: 1;
361
427
  }, {
428
+ version: 1;
362
429
  items: {
363
430
  message: string;
364
- level: string;
365
431
  timestamp: string;
432
+ level: string;
366
433
  attributes: Record<string, unknown>;
367
434
  }[];
368
- version: 1;
369
435
  }>>>;
370
436
  frontend: z.ZodOptional<z.ZodNullable<z.ZodObject<{
371
437
  version: z.ZodLiteral<1>;
@@ -374,12 +440,12 @@ export declare const BundleV1Schema: z.ZodObject<{
374
440
  to: z.ZodString;
375
441
  ts: z.ZodString;
376
442
  }, "strip", z.ZodTypeAny, {
377
- from: string;
378
443
  to: string;
444
+ from: string;
379
445
  ts: string;
380
446
  }, {
381
- from: string;
382
447
  to: string;
448
+ from: string;
383
449
  ts: string;
384
450
  }>, "many">;
385
451
  clicks: z.ZodArray<z.ZodObject<{
@@ -461,8 +527,8 @@ export declare const BundleV1Schema: z.ZodObject<{
461
527
  html_excerpt: string;
462
528
  } | null;
463
529
  route_changes: {
464
- from: string;
465
530
  to: string;
531
+ from: string;
466
532
  ts: string;
467
533
  }[];
468
534
  clicks: {
@@ -496,8 +562,8 @@ export declare const BundleV1Schema: z.ZodObject<{
496
562
  html_excerpt: string;
497
563
  } | null;
498
564
  route_changes: {
499
- from: string;
500
565
  to: string;
566
+ from: string;
501
567
  ts: string;
502
568
  }[];
503
569
  clicks: {
@@ -531,13 +597,13 @@ export declare const BundleV1Schema: z.ZodObject<{
531
597
  host: z.ZodNullable<z.ZodString>;
532
598
  container_id: z.ZodNullable<z.ZodString>;
533
599
  }, "strip", z.ZodTypeAny, {
534
- os: string | null;
535
600
  version: 1;
601
+ os: string | null;
536
602
  host: string | null;
537
603
  container_id: string | null;
538
604
  }, {
539
- os: string | null;
540
605
  version: 1;
606
+ os: string | null;
541
607
  host: string | null;
542
608
  container_id: string | null;
543
609
  }>>>;
@@ -597,9 +663,9 @@ export declare const BundleV1Schema: z.ZodObject<{
597
663
  }>>;
598
664
  framework_extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
599
665
  }, "strip", z.ZodTypeAny, {
666
+ version: 1;
600
667
  name: string;
601
668
  framework: string | null;
602
- version: 1;
603
669
  platform: string | null;
604
670
  arch: string | null;
605
671
  pid: number | null;
@@ -618,9 +684,9 @@ export declare const BundleV1Schema: z.ZodObject<{
618
684
  runtime_version: string | null;
619
685
  framework_extras?: Record<string, unknown> | null | undefined;
620
686
  }, {
687
+ version: 1;
621
688
  name: string;
622
689
  framework: string | null;
623
- version: 1;
624
690
  platform: string | null;
625
691
  arch: string | null;
626
692
  pid: number | null;
@@ -680,19 +746,19 @@ export declare const BundleV1Schema: z.ZodObject<{
680
746
  notes: string | null;
681
747
  }>, "many">;
682
748
  }, "strip", z.ZodTypeAny, {
749
+ version: 1;
683
750
  items: {
684
751
  status: "unknown" | "failed" | "ok" | "degraded";
685
752
  name: string;
686
753
  notes: string | null;
687
754
  }[];
688
- version: 1;
689
755
  }, {
756
+ version: 1;
690
757
  items: {
691
758
  status: "unknown" | "failed" | "ok" | "degraded";
692
759
  name: string;
693
760
  notes: string | null;
694
761
  }[];
695
- version: 1;
696
762
  }>>>;
697
763
  probe_data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
698
764
  version: z.ZodLiteral<1>;
@@ -702,32 +768,32 @@ export declare const BundleV1Schema: z.ZodObject<{
702
768
  timestamp: z.ZodString;
703
769
  activation_id: z.ZodNullable<z.ZodString>;
704
770
  }, "strip", z.ZodTypeAny, {
705
- data: Record<string, unknown>;
706
771
  label: string;
772
+ data: Record<string, unknown>;
707
773
  timestamp: string;
708
774
  activation_id: string | null;
709
775
  }, {
710
- data: Record<string, unknown>;
711
776
  label: string;
777
+ data: Record<string, unknown>;
712
778
  timestamp: string;
713
779
  activation_id: string | null;
714
780
  }>, "many">;
715
781
  }, "strip", z.ZodTypeAny, {
782
+ version: 1;
716
783
  items: {
717
- data: Record<string, unknown>;
718
784
  label: string;
785
+ data: Record<string, unknown>;
719
786
  timestamp: string;
720
787
  activation_id: string | null;
721
788
  }[];
722
- version: 1;
723
789
  }, {
790
+ version: 1;
724
791
  items: {
725
- data: Record<string, unknown>;
726
792
  label: string;
793
+ data: Record<string, unknown>;
727
794
  timestamp: string;
728
795
  activation_id: string | null;
729
796
  }[];
730
- version: 1;
731
797
  }>>>;
732
798
  device: z.ZodOptional<z.ZodNullable<z.ZodObject<{
733
799
  version: z.ZodLiteral<1>;
@@ -736,21 +802,21 @@ export declare const BundleV1Schema: z.ZodObject<{
736
802
  name: z.ZodNullable<z.ZodString>;
737
803
  version: z.ZodNullable<z.ZodString>;
738
804
  }, "strip", z.ZodTypeAny, {
739
- name: string | null;
740
805
  version: string | null;
741
- }, {
742
806
  name: string | null;
807
+ }, {
743
808
  version: string | null;
809
+ name: string | null;
744
810
  }>;
745
811
  os: z.ZodObject<{
746
812
  name: z.ZodNullable<z.ZodString>;
747
813
  version: z.ZodNullable<z.ZodString>;
748
814
  }, "strip", z.ZodTypeAny, {
749
- name: string | null;
750
815
  version: string | null;
751
- }, {
752
816
  name: string | null;
817
+ }, {
753
818
  version: string | null;
819
+ name: string | null;
754
820
  }>;
755
821
  device_type: z.ZodEnum<["desktop", "mobile", "tablet", "unknown"]>;
756
822
  screen: z.ZodObject<{
@@ -779,17 +845,17 @@ export declare const BundleV1Schema: z.ZodObject<{
779
845
  connection_type: z.ZodNullable<z.ZodString>;
780
846
  color_scheme_preference: z.ZodNullable<z.ZodEnum<["light", "dark", "no-preference"]>>;
781
847
  }, "strip", z.ZodTypeAny, {
848
+ version: 1;
782
849
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
783
850
  language: string | null;
784
851
  browser: {
785
- name: string | null;
786
852
  version: string | null;
853
+ name: string | null;
787
854
  };
788
855
  os: {
789
- name: string | null;
790
856
  version: string | null;
857
+ name: string | null;
791
858
  };
792
- version: 1;
793
859
  user_agent: string | null;
794
860
  screen: {
795
861
  width: number;
@@ -804,17 +870,17 @@ export declare const BundleV1Schema: z.ZodObject<{
804
870
  connection_type: string | null;
805
871
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
806
872
  }, {
873
+ version: 1;
807
874
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
808
875
  language: string | null;
809
876
  browser: {
810
- name: string | null;
811
877
  version: string | null;
878
+ name: string | null;
812
879
  };
813
880
  os: {
814
- name: string | null;
815
881
  version: string | null;
882
+ name: string | null;
816
883
  };
817
- version: 1;
818
884
  user_agent: string | null;
819
885
  screen: {
820
886
  width: number;
@@ -831,15 +897,15 @@ export declare const BundleV1Schema: z.ZodObject<{
831
897
  }>>>;
832
898
  }, "strip", z.ZodTypeAny, {
833
899
  environment?: {
834
- os: string | null;
835
900
  version: 1;
901
+ os: string | null;
836
902
  host: string | null;
837
903
  container_id: string | null;
838
904
  } | null | undefined;
839
905
  runtime?: {
906
+ version: 1;
840
907
  name: string;
841
908
  framework: string | null;
842
- version: 1;
843
909
  platform: string | null;
844
910
  arch: string | null;
845
911
  pid: number | null;
@@ -858,18 +924,44 @@ export declare const BundleV1Schema: z.ZodObject<{
858
924
  runtime_version: string | null;
859
925
  framework_extras?: Record<string, unknown> | null | undefined;
860
926
  } | null | undefined;
927
+ request?: {
928
+ path: string;
929
+ version: 1;
930
+ query: Record<string, unknown>;
931
+ request_id: string | null;
932
+ method: string;
933
+ headers: Record<string, unknown>;
934
+ route_template: string | null;
935
+ body?: unknown;
936
+ } | null | undefined;
937
+ response?: {
938
+ version: 1;
939
+ duration_ms: number | null;
940
+ status_code: number;
941
+ body?: unknown;
942
+ headers?: Record<string, unknown> | undefined;
943
+ } | null | undefined;
944
+ probe_data?: {
945
+ version: 1;
946
+ items: {
947
+ label: string;
948
+ data: Record<string, unknown>;
949
+ timestamp: string;
950
+ activation_id: string | null;
951
+ }[];
952
+ } | null | undefined;
861
953
  device?: {
954
+ version: 1;
862
955
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
863
956
  language: string | null;
864
957
  browser: {
865
- name: string | null;
866
958
  version: string | null;
959
+ name: string | null;
867
960
  };
868
961
  os: {
869
- name: string | null;
870
962
  version: string | null;
963
+ name: string | null;
871
964
  };
872
- version: 1;
873
965
  user_agent: string | null;
874
966
  screen: {
875
967
  width: number;
@@ -884,45 +976,21 @@ export declare const BundleV1Schema: z.ZodObject<{
884
976
  connection_type: string | null;
885
977
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
886
978
  } | null | undefined;
887
- request?: {
888
- path: string;
889
- query: Record<string, unknown>;
890
- version: 1;
891
- headers: Record<string, unknown>;
892
- method: string;
893
- request_id: string | null;
894
- route_template: string | null;
895
- body?: unknown;
896
- } | null | undefined;
897
- response?: {
898
- duration_ms: number | null;
899
- version: 1;
900
- status_code: number;
901
- body?: unknown;
902
- headers?: Record<string, unknown> | undefined;
903
- } | null | undefined;
904
979
  error?: {
905
980
  message: string;
906
- name: string;
907
981
  version: 1;
982
+ name: string;
908
983
  stack: string;
909
984
  handled: boolean;
910
985
  top_frames: string[];
911
986
  } | null | undefined;
912
- probe_data?: {
913
- items: {
914
- data: Record<string, unknown>;
915
- label: string;
916
- timestamp: string;
917
- activation_id: string | null;
918
- }[];
919
- version: 1;
920
- } | null | undefined;
921
987
  resource_failure?: {
922
988
  path: string;
923
989
  type: string | null;
990
+ version: 1;
924
991
  title: string;
925
992
  routes: {
993
+ coverage: "occurrence_metadata" | "retained_samples";
926
994
  items: {
927
995
  route: string;
928
996
  occurrences: number;
@@ -930,24 +998,36 @@ export declare const BundleV1Schema: z.ZodObject<{
930
998
  recorded_occurrences: number;
931
999
  unattributed_occurrences: number;
932
1000
  omitted_routes: number;
933
- coverage: "occurrence_metadata" | "retained_samples";
934
1001
  };
935
- version: 1;
936
1002
  host: string | null;
937
1003
  first_party: boolean | null;
938
1004
  role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
939
1005
  provider: string | null;
940
1006
  optional_candidate: boolean;
941
1007
  diagnosis: string;
1008
+ interruption?: {
1009
+ rel: "preload" | "modulepreload" | "prefetch";
1010
+ ready_state: "loading" | "interactive";
1011
+ visibility_state: "hidden" | "prerender" | "unloaded";
1012
+ target_tag_name: "link";
1013
+ } | undefined;
1014
+ recovery_failures?: {
1015
+ path: string;
1016
+ source: "request_event" | "frontend_breadcrumb";
1017
+ occurred_at: string;
1018
+ method: string;
1019
+ status_code: number;
1020
+ delay_ms: number;
1021
+ }[] | undefined;
942
1022
  } | undefined;
943
1023
  logs?: {
1024
+ version: 1;
944
1025
  items: {
945
1026
  message: string;
946
- level: string;
947
1027
  timestamp: string;
1028
+ level: string;
948
1029
  attributes: Record<string, unknown>;
949
1030
  }[];
950
- version: 1;
951
1031
  } | null | undefined;
952
1032
  frontend?: {
953
1033
  version: 1;
@@ -956,8 +1036,8 @@ export declare const BundleV1Schema: z.ZodObject<{
956
1036
  html_excerpt: string;
957
1037
  } | null;
958
1038
  route_changes: {
959
- from: string;
960
1039
  to: string;
1040
+ from: string;
961
1041
  ts: string;
962
1042
  }[];
963
1043
  clicks: {
@@ -1003,24 +1083,24 @@ export declare const BundleV1Schema: z.ZodObject<{
1003
1083
  repo: string | null;
1004
1084
  } | null | undefined;
1005
1085
  dependencies?: {
1086
+ version: 1;
1006
1087
  items: {
1007
1088
  status: "unknown" | "failed" | "ok" | "degraded";
1008
1089
  name: string;
1009
1090
  notes: string | null;
1010
1091
  }[];
1011
- version: 1;
1012
1092
  } | null | undefined;
1013
1093
  }, {
1014
1094
  environment?: {
1015
- os: string | null;
1016
1095
  version: 1;
1096
+ os: string | null;
1017
1097
  host: string | null;
1018
1098
  container_id: string | null;
1019
1099
  } | null | undefined;
1020
1100
  runtime?: {
1101
+ version: 1;
1021
1102
  name: string;
1022
1103
  framework: string | null;
1023
- version: 1;
1024
1104
  platform: string | null;
1025
1105
  arch: string | null;
1026
1106
  pid: number | null;
@@ -1039,18 +1119,44 @@ export declare const BundleV1Schema: z.ZodObject<{
1039
1119
  runtime_version: string | null;
1040
1120
  framework_extras?: Record<string, unknown> | null | undefined;
1041
1121
  } | null | undefined;
1122
+ request?: {
1123
+ path: string;
1124
+ version: 1;
1125
+ query: Record<string, unknown>;
1126
+ request_id: string | null;
1127
+ method: string;
1128
+ headers: Record<string, unknown>;
1129
+ route_template: string | null;
1130
+ body?: unknown;
1131
+ } | null | undefined;
1132
+ response?: {
1133
+ version: 1;
1134
+ duration_ms: number | null;
1135
+ status_code: number;
1136
+ body?: unknown;
1137
+ headers?: Record<string, unknown> | undefined;
1138
+ } | null | undefined;
1139
+ probe_data?: {
1140
+ version: 1;
1141
+ items: {
1142
+ label: string;
1143
+ data: Record<string, unknown>;
1144
+ timestamp: string;
1145
+ activation_id: string | null;
1146
+ }[];
1147
+ } | null | undefined;
1042
1148
  device?: {
1149
+ version: 1;
1043
1150
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
1044
1151
  language: string | null;
1045
1152
  browser: {
1046
- name: string | null;
1047
1153
  version: string | null;
1154
+ name: string | null;
1048
1155
  };
1049
1156
  os: {
1050
- name: string | null;
1051
1157
  version: string | null;
1158
+ name: string | null;
1052
1159
  };
1053
- version: 1;
1054
1160
  user_agent: string | null;
1055
1161
  screen: {
1056
1162
  width: number;
@@ -1065,45 +1171,21 @@ export declare const BundleV1Schema: z.ZodObject<{
1065
1171
  connection_type: string | null;
1066
1172
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
1067
1173
  } | null | undefined;
1068
- request?: {
1069
- path: string;
1070
- query: Record<string, unknown>;
1071
- version: 1;
1072
- headers: Record<string, unknown>;
1073
- method: string;
1074
- request_id: string | null;
1075
- route_template: string | null;
1076
- body?: unknown;
1077
- } | null | undefined;
1078
- response?: {
1079
- duration_ms: number | null;
1080
- version: 1;
1081
- status_code: number;
1082
- body?: unknown;
1083
- headers?: Record<string, unknown> | undefined;
1084
- } | null | undefined;
1085
1174
  error?: {
1086
1175
  message: string;
1087
- name: string;
1088
1176
  version: 1;
1177
+ name: string;
1089
1178
  stack: string;
1090
1179
  handled: boolean;
1091
1180
  top_frames: string[];
1092
1181
  } | null | undefined;
1093
- probe_data?: {
1094
- items: {
1095
- data: Record<string, unknown>;
1096
- label: string;
1097
- timestamp: string;
1098
- activation_id: string | null;
1099
- }[];
1100
- version: 1;
1101
- } | null | undefined;
1102
1182
  resource_failure?: {
1103
1183
  path: string;
1104
1184
  type: string | null;
1185
+ version: 1;
1105
1186
  title: string;
1106
1187
  routes: {
1188
+ coverage: "occurrence_metadata" | "retained_samples";
1107
1189
  items: {
1108
1190
  route: string;
1109
1191
  occurrences: number;
@@ -1111,24 +1193,36 @@ export declare const BundleV1Schema: z.ZodObject<{
1111
1193
  recorded_occurrences: number;
1112
1194
  unattributed_occurrences: number;
1113
1195
  omitted_routes: number;
1114
- coverage: "occurrence_metadata" | "retained_samples";
1115
1196
  };
1116
- version: 1;
1117
1197
  host: string | null;
1118
1198
  first_party: boolean | null;
1119
1199
  role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
1120
1200
  provider: string | null;
1121
1201
  optional_candidate: boolean;
1122
1202
  diagnosis: string;
1203
+ interruption?: {
1204
+ rel: "preload" | "modulepreload" | "prefetch";
1205
+ ready_state: "loading" | "interactive";
1206
+ visibility_state: "hidden" | "prerender" | "unloaded";
1207
+ target_tag_name: "link";
1208
+ } | undefined;
1209
+ recovery_failures?: {
1210
+ path: string;
1211
+ source: "request_event" | "frontend_breadcrumb";
1212
+ occurred_at: string;
1213
+ method: string;
1214
+ status_code: number;
1215
+ delay_ms: number;
1216
+ }[] | undefined;
1123
1217
  } | undefined;
1124
1218
  logs?: {
1219
+ version: 1;
1125
1220
  items: {
1126
1221
  message: string;
1127
- level: string;
1128
1222
  timestamp: string;
1223
+ level: string;
1129
1224
  attributes: Record<string, unknown>;
1130
1225
  }[];
1131
- version: 1;
1132
1226
  } | null | undefined;
1133
1227
  frontend?: {
1134
1228
  version: 1;
@@ -1137,8 +1231,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1137
1231
  html_excerpt: string;
1138
1232
  } | null;
1139
1233
  route_changes: {
1140
- from: string;
1141
1234
  to: string;
1235
+ from: string;
1142
1236
  ts: string;
1143
1237
  }[];
1144
1238
  clicks: {
@@ -1184,12 +1278,12 @@ export declare const BundleV1Schema: z.ZodObject<{
1184
1278
  repo: string | null;
1185
1279
  } | null | undefined;
1186
1280
  dependencies?: {
1281
+ version: 1;
1187
1282
  items: {
1188
1283
  status: "unknown" | "failed" | "ok" | "degraded";
1189
1284
  name: string;
1190
1285
  notes: string | null;
1191
1286
  }[];
1192
- version: 1;
1193
1287
  } | null | undefined;
1194
1288
  }>;
1195
1289
  reproduction: z.ZodObject<{
@@ -1207,14 +1301,14 @@ export declare const BundleV1Schema: z.ZodObject<{
1207
1301
  body: z.ZodNullable<z.ZodUnknown>;
1208
1302
  }, "strip", z.ZodTypeAny, {
1209
1303
  url: string;
1210
- headers: Record<string, unknown>;
1211
1304
  method: string;
1305
+ headers: Record<string, unknown>;
1212
1306
  query?: Record<string, unknown> | undefined;
1213
1307
  body?: unknown;
1214
1308
  }, {
1215
1309
  url: string;
1216
- headers: Record<string, unknown>;
1217
1310
  method: string;
1311
+ headers: Record<string, unknown>;
1218
1312
  query?: Record<string, unknown> | undefined;
1219
1313
  body?: unknown;
1220
1314
  }>>;
@@ -1223,8 +1317,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1223
1317
  httpie: string | null;
1224
1318
  json_spec: {
1225
1319
  url: string;
1226
- headers: Record<string, unknown>;
1227
1320
  method: string;
1321
+ headers: Record<string, unknown>;
1228
1322
  query?: Record<string, unknown> | undefined;
1229
1323
  body?: unknown;
1230
1324
  } | null;
@@ -1233,8 +1327,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1233
1327
  httpie: string | null;
1234
1328
  json_spec: {
1235
1329
  url: string;
1236
- headers: Record<string, unknown>;
1237
1330
  method: string;
1331
+ headers: Record<string, unknown>;
1238
1332
  query?: Record<string, unknown> | undefined;
1239
1333
  body?: unknown;
1240
1334
  } | null;
@@ -1267,8 +1361,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1267
1361
  httpie: string | null;
1268
1362
  json_spec: {
1269
1363
  url: string;
1270
- headers: Record<string, unknown>;
1271
1364
  method: string;
1365
+ headers: Record<string, unknown>;
1272
1366
  query?: Record<string, unknown> | undefined;
1273
1367
  body?: unknown;
1274
1368
  } | null;
@@ -1289,8 +1383,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1289
1383
  httpie: string | null;
1290
1384
  json_spec: {
1291
1385
  url: string;
1292
- headers: Record<string, unknown>;
1293
1386
  method: string;
1387
+ headers: Record<string, unknown>;
1294
1388
  query?: Record<string, unknown> | undefined;
1295
1389
  body?: unknown;
1296
1390
  } | null;
@@ -1326,16 +1420,16 @@ export declare const BundleV1Schema: z.ZodObject<{
1326
1420
  project: z.ZodNullable<z.ZodString>;
1327
1421
  docs: z.ZodNullable<z.ZodString>;
1328
1422
  }, "strip", z.ZodTypeAny, {
1423
+ incident: string | null;
1329
1424
  project: string | null;
1330
1425
  self: string | null;
1331
1426
  reproduction: string | null;
1332
- incident: string | null;
1333
1427
  docs: string | null;
1334
1428
  }, {
1429
+ incident: string | null;
1335
1430
  project: string | null;
1336
1431
  self: string | null;
1337
1432
  reproduction: string | null;
1338
- incident: string | null;
1339
1433
  docs: string | null;
1340
1434
  }>;
1341
1435
  redaction: z.ZodObject<{
@@ -1368,73 +1462,22 @@ export declare const BundleV1Schema: z.ZodObject<{
1368
1462
  generation_number: number;
1369
1463
  }>;
1370
1464
  }, "strip", z.ZodTypeAny, {
1371
- signal: {
1372
- first_seen_at: string;
1373
- last_seen_at: string;
1374
- severity: "medium" | "low" | "high" | "critical";
1375
- fingerprint: string;
1376
- signal_id: string;
1377
- signal_type: "frontend_exception" | "warning" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
1378
- occurrence_count: number;
1379
- source_event_types: string[];
1380
- };
1381
- service: {
1382
- name: string;
1383
- runtime: string | null;
1384
- framework: string | null;
1385
- version: string | null;
1386
- id: string;
1387
- region: string | null;
1388
- };
1389
- summary: {
1390
- title: string;
1391
- severity: "medium" | "low" | "high" | "critical";
1392
- confidence: number;
1393
- description: string;
1394
- recommended_action: string | null;
1395
- likely_cause: string | null;
1396
- error_type: string | null;
1397
- error_message: string | null;
1398
- first_application_frame: {
1399
- function: string | null;
1400
- file: string | null;
1401
- line: number | null;
1402
- } | null;
1403
- primary_signal: string | null;
1404
- signals: {
1405
- new_deploy: boolean;
1406
- regression_suspected: boolean;
1407
- customer_visible: boolean;
1408
- };
1409
- };
1410
- bundle_type: "failure" | "improvement";
1411
1465
  project: {
1412
- environment: string;
1413
1466
  id: string;
1467
+ environment: string;
1414
1468
  slug: string;
1415
1469
  };
1416
- redaction: {
1417
- fields: string[];
1418
- notes: string | null;
1419
- redacted: boolean;
1420
- };
1421
- metadata: {
1422
- created_at: string;
1423
- updated_at: string;
1424
- generator_version: string;
1425
- generation_number: number;
1426
- };
1427
1470
  context: {
1428
1471
  environment?: {
1429
- os: string | null;
1430
1472
  version: 1;
1473
+ os: string | null;
1431
1474
  host: string | null;
1432
1475
  container_id: string | null;
1433
1476
  } | null | undefined;
1434
1477
  runtime?: {
1478
+ version: 1;
1435
1479
  name: string;
1436
1480
  framework: string | null;
1437
- version: 1;
1438
1481
  platform: string | null;
1439
1482
  arch: string | null;
1440
1483
  pid: number | null;
@@ -1453,18 +1496,44 @@ export declare const BundleV1Schema: z.ZodObject<{
1453
1496
  runtime_version: string | null;
1454
1497
  framework_extras?: Record<string, unknown> | null | undefined;
1455
1498
  } | null | undefined;
1499
+ request?: {
1500
+ path: string;
1501
+ version: 1;
1502
+ query: Record<string, unknown>;
1503
+ request_id: string | null;
1504
+ method: string;
1505
+ headers: Record<string, unknown>;
1506
+ route_template: string | null;
1507
+ body?: unknown;
1508
+ } | null | undefined;
1509
+ response?: {
1510
+ version: 1;
1511
+ duration_ms: number | null;
1512
+ status_code: number;
1513
+ body?: unknown;
1514
+ headers?: Record<string, unknown> | undefined;
1515
+ } | null | undefined;
1516
+ probe_data?: {
1517
+ version: 1;
1518
+ items: {
1519
+ label: string;
1520
+ data: Record<string, unknown>;
1521
+ timestamp: string;
1522
+ activation_id: string | null;
1523
+ }[];
1524
+ } | null | undefined;
1456
1525
  device?: {
1526
+ version: 1;
1457
1527
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
1458
1528
  language: string | null;
1459
1529
  browser: {
1460
- name: string | null;
1461
1530
  version: string | null;
1531
+ name: string | null;
1462
1532
  };
1463
1533
  os: {
1464
- name: string | null;
1465
1534
  version: string | null;
1535
+ name: string | null;
1466
1536
  };
1467
- version: 1;
1468
1537
  user_agent: string | null;
1469
1538
  screen: {
1470
1539
  width: number;
@@ -1479,45 +1548,21 @@ export declare const BundleV1Schema: z.ZodObject<{
1479
1548
  connection_type: string | null;
1480
1549
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
1481
1550
  } | null | undefined;
1482
- request?: {
1483
- path: string;
1484
- query: Record<string, unknown>;
1485
- version: 1;
1486
- headers: Record<string, unknown>;
1487
- method: string;
1488
- request_id: string | null;
1489
- route_template: string | null;
1490
- body?: unknown;
1491
- } | null | undefined;
1492
- response?: {
1493
- duration_ms: number | null;
1494
- version: 1;
1495
- status_code: number;
1496
- body?: unknown;
1497
- headers?: Record<string, unknown> | undefined;
1498
- } | null | undefined;
1499
1551
  error?: {
1500
1552
  message: string;
1501
- name: string;
1502
1553
  version: 1;
1554
+ name: string;
1503
1555
  stack: string;
1504
1556
  handled: boolean;
1505
1557
  top_frames: string[];
1506
1558
  } | null | undefined;
1507
- probe_data?: {
1508
- items: {
1509
- data: Record<string, unknown>;
1510
- label: string;
1511
- timestamp: string;
1512
- activation_id: string | null;
1513
- }[];
1514
- version: 1;
1515
- } | null | undefined;
1516
1559
  resource_failure?: {
1517
1560
  path: string;
1518
1561
  type: string | null;
1562
+ version: 1;
1519
1563
  title: string;
1520
1564
  routes: {
1565
+ coverage: "occurrence_metadata" | "retained_samples";
1521
1566
  items: {
1522
1567
  route: string;
1523
1568
  occurrences: number;
@@ -1525,24 +1570,36 @@ export declare const BundleV1Schema: z.ZodObject<{
1525
1570
  recorded_occurrences: number;
1526
1571
  unattributed_occurrences: number;
1527
1572
  omitted_routes: number;
1528
- coverage: "occurrence_metadata" | "retained_samples";
1529
1573
  };
1530
- version: 1;
1531
1574
  host: string | null;
1532
1575
  first_party: boolean | null;
1533
1576
  role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
1534
1577
  provider: string | null;
1535
1578
  optional_candidate: boolean;
1536
1579
  diagnosis: string;
1580
+ interruption?: {
1581
+ rel: "preload" | "modulepreload" | "prefetch";
1582
+ ready_state: "loading" | "interactive";
1583
+ visibility_state: "hidden" | "prerender" | "unloaded";
1584
+ target_tag_name: "link";
1585
+ } | undefined;
1586
+ recovery_failures?: {
1587
+ path: string;
1588
+ source: "request_event" | "frontend_breadcrumb";
1589
+ occurred_at: string;
1590
+ method: string;
1591
+ status_code: number;
1592
+ delay_ms: number;
1593
+ }[] | undefined;
1537
1594
  } | undefined;
1538
1595
  logs?: {
1596
+ version: 1;
1539
1597
  items: {
1540
1598
  message: string;
1541
- level: string;
1542
1599
  timestamp: string;
1600
+ level: string;
1543
1601
  attributes: Record<string, unknown>;
1544
1602
  }[];
1545
- version: 1;
1546
1603
  } | null | undefined;
1547
1604
  frontend?: {
1548
1605
  version: 1;
@@ -1551,8 +1608,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1551
1608
  html_excerpt: string;
1552
1609
  } | null;
1553
1610
  route_changes: {
1554
- from: string;
1555
1611
  to: string;
1612
+ from: string;
1556
1613
  ts: string;
1557
1614
  }[];
1558
1615
  clicks: {
@@ -1598,14 +1655,65 @@ export declare const BundleV1Schema: z.ZodObject<{
1598
1655
  repo: string | null;
1599
1656
  } | null | undefined;
1600
1657
  dependencies?: {
1658
+ version: 1;
1601
1659
  items: {
1602
1660
  status: "unknown" | "failed" | "ok" | "degraded";
1603
1661
  name: string;
1604
1662
  notes: string | null;
1605
1663
  }[];
1606
- version: 1;
1607
1664
  } | null | undefined;
1608
1665
  };
1666
+ signal: {
1667
+ first_seen_at: string;
1668
+ last_seen_at: string;
1669
+ severity: "medium" | "low" | "high" | "critical";
1670
+ fingerprint: string;
1671
+ signal_id: string;
1672
+ signal_type: "frontend_exception" | "warning" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
1673
+ occurrence_count: number;
1674
+ source_event_types: string[];
1675
+ };
1676
+ service: {
1677
+ id: string;
1678
+ version: string | null;
1679
+ name: string;
1680
+ runtime: string | null;
1681
+ framework: string | null;
1682
+ region: string | null;
1683
+ };
1684
+ summary: {
1685
+ title: string;
1686
+ severity: "medium" | "low" | "high" | "critical";
1687
+ confidence: number;
1688
+ description: string;
1689
+ recommended_action: string | null;
1690
+ likely_cause: string | null;
1691
+ error_type: string | null;
1692
+ error_message: string | null;
1693
+ first_application_frame: {
1694
+ function: string | null;
1695
+ file: string | null;
1696
+ line: number | null;
1697
+ } | null;
1698
+ primary_signal: string | null;
1699
+ signals: {
1700
+ new_deploy: boolean;
1701
+ regression_suspected: boolean;
1702
+ customer_visible: boolean;
1703
+ };
1704
+ };
1705
+ bundle_type: "failure" | "improvement";
1706
+ redaction: {
1707
+ fields: string[];
1708
+ notes: string | null;
1709
+ redacted: boolean;
1710
+ };
1711
+ metadata: {
1712
+ created_at: string;
1713
+ updated_at: string;
1714
+ generator_version: string;
1715
+ generation_number: number;
1716
+ };
1609
1717
  reproduction: {
1610
1718
  confidence: number;
1611
1719
  reason: string;
@@ -1615,8 +1723,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1615
1723
  httpie: string | null;
1616
1724
  json_spec: {
1617
1725
  url: string;
1618
- headers: Record<string, unknown>;
1619
1726
  method: string;
1727
+ headers: Record<string, unknown>;
1620
1728
  query?: Record<string, unknown> | undefined;
1621
1729
  body?: unknown;
1622
1730
  } | null;
@@ -1633,8 +1741,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1633
1741
  bundle_id: string;
1634
1742
  captured_at: string;
1635
1743
  sdk: {
1636
- name: string;
1637
1744
  version: string;
1745
+ name: string;
1638
1746
  };
1639
1747
  impact: {
1640
1748
  regression_suspected: boolean;
@@ -1650,80 +1758,29 @@ export declare const BundleV1Schema: z.ZodObject<{
1650
1758
  production_verified: boolean;
1651
1759
  };
1652
1760
  links: {
1761
+ incident: string | null;
1653
1762
  project: string | null;
1654
1763
  self: string | null;
1655
1764
  reproduction: string | null;
1656
- incident: string | null;
1657
1765
  docs: string | null;
1658
1766
  };
1659
1767
  }, {
1660
- signal: {
1661
- first_seen_at: string;
1662
- last_seen_at: string;
1663
- severity: "medium" | "low" | "high" | "critical";
1664
- fingerprint: string;
1665
- signal_id: string;
1666
- signal_type: "frontend_exception" | "warning" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
1667
- occurrence_count: number;
1668
- source_event_types: string[];
1669
- };
1670
- service: {
1671
- name: string;
1672
- runtime: string | null;
1673
- framework: string | null;
1674
- version: string | null;
1675
- id: string;
1676
- region: string | null;
1677
- };
1678
- summary: {
1679
- title: string;
1680
- severity: "medium" | "low" | "high" | "critical";
1681
- confidence: number;
1682
- description: string;
1683
- recommended_action: string | null;
1684
- likely_cause: string | null;
1685
- error_type: string | null;
1686
- error_message: string | null;
1687
- first_application_frame: {
1688
- function: string | null;
1689
- file: string | null;
1690
- line: number | null;
1691
- } | null;
1692
- primary_signal: string | null;
1693
- signals: {
1694
- new_deploy: boolean;
1695
- regression_suspected: boolean;
1696
- customer_visible: boolean;
1697
- };
1698
- };
1699
- bundle_type: "failure" | "improvement";
1700
1768
  project: {
1701
- environment: string;
1702
1769
  id: string;
1770
+ environment: string;
1703
1771
  slug: string;
1704
1772
  };
1705
- redaction: {
1706
- fields: string[];
1707
- notes: string | null;
1708
- redacted: boolean;
1709
- };
1710
- metadata: {
1711
- created_at: string;
1712
- updated_at: string;
1713
- generator_version: string;
1714
- generation_number: number;
1715
- };
1716
1773
  context: {
1717
1774
  environment?: {
1718
- os: string | null;
1719
1775
  version: 1;
1776
+ os: string | null;
1720
1777
  host: string | null;
1721
1778
  container_id: string | null;
1722
1779
  } | null | undefined;
1723
1780
  runtime?: {
1781
+ version: 1;
1724
1782
  name: string;
1725
1783
  framework: string | null;
1726
- version: 1;
1727
1784
  platform: string | null;
1728
1785
  arch: string | null;
1729
1786
  pid: number | null;
@@ -1742,18 +1799,44 @@ export declare const BundleV1Schema: z.ZodObject<{
1742
1799
  runtime_version: string | null;
1743
1800
  framework_extras?: Record<string, unknown> | null | undefined;
1744
1801
  } | null | undefined;
1802
+ request?: {
1803
+ path: string;
1804
+ version: 1;
1805
+ query: Record<string, unknown>;
1806
+ request_id: string | null;
1807
+ method: string;
1808
+ headers: Record<string, unknown>;
1809
+ route_template: string | null;
1810
+ body?: unknown;
1811
+ } | null | undefined;
1812
+ response?: {
1813
+ version: 1;
1814
+ duration_ms: number | null;
1815
+ status_code: number;
1816
+ body?: unknown;
1817
+ headers?: Record<string, unknown> | undefined;
1818
+ } | null | undefined;
1819
+ probe_data?: {
1820
+ version: 1;
1821
+ items: {
1822
+ label: string;
1823
+ data: Record<string, unknown>;
1824
+ timestamp: string;
1825
+ activation_id: string | null;
1826
+ }[];
1827
+ } | null | undefined;
1745
1828
  device?: {
1829
+ version: 1;
1746
1830
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
1747
1831
  language: string | null;
1748
1832
  browser: {
1749
- name: string | null;
1750
1833
  version: string | null;
1834
+ name: string | null;
1751
1835
  };
1752
1836
  os: {
1753
- name: string | null;
1754
1837
  version: string | null;
1838
+ name: string | null;
1755
1839
  };
1756
- version: 1;
1757
1840
  user_agent: string | null;
1758
1841
  screen: {
1759
1842
  width: number;
@@ -1768,45 +1851,21 @@ export declare const BundleV1Schema: z.ZodObject<{
1768
1851
  connection_type: string | null;
1769
1852
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
1770
1853
  } | null | undefined;
1771
- request?: {
1772
- path: string;
1773
- query: Record<string, unknown>;
1774
- version: 1;
1775
- headers: Record<string, unknown>;
1776
- method: string;
1777
- request_id: string | null;
1778
- route_template: string | null;
1779
- body?: unknown;
1780
- } | null | undefined;
1781
- response?: {
1782
- duration_ms: number | null;
1783
- version: 1;
1784
- status_code: number;
1785
- body?: unknown;
1786
- headers?: Record<string, unknown> | undefined;
1787
- } | null | undefined;
1788
1854
  error?: {
1789
1855
  message: string;
1790
- name: string;
1791
1856
  version: 1;
1857
+ name: string;
1792
1858
  stack: string;
1793
1859
  handled: boolean;
1794
1860
  top_frames: string[];
1795
1861
  } | null | undefined;
1796
- probe_data?: {
1797
- items: {
1798
- data: Record<string, unknown>;
1799
- label: string;
1800
- timestamp: string;
1801
- activation_id: string | null;
1802
- }[];
1803
- version: 1;
1804
- } | null | undefined;
1805
1862
  resource_failure?: {
1806
1863
  path: string;
1807
1864
  type: string | null;
1865
+ version: 1;
1808
1866
  title: string;
1809
1867
  routes: {
1868
+ coverage: "occurrence_metadata" | "retained_samples";
1810
1869
  items: {
1811
1870
  route: string;
1812
1871
  occurrences: number;
@@ -1814,24 +1873,36 @@ export declare const BundleV1Schema: z.ZodObject<{
1814
1873
  recorded_occurrences: number;
1815
1874
  unattributed_occurrences: number;
1816
1875
  omitted_routes: number;
1817
- coverage: "occurrence_metadata" | "retained_samples";
1818
1876
  };
1819
- version: 1;
1820
1877
  host: string | null;
1821
1878
  first_party: boolean | null;
1822
1879
  role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
1823
1880
  provider: string | null;
1824
1881
  optional_candidate: boolean;
1825
1882
  diagnosis: string;
1883
+ interruption?: {
1884
+ rel: "preload" | "modulepreload" | "prefetch";
1885
+ ready_state: "loading" | "interactive";
1886
+ visibility_state: "hidden" | "prerender" | "unloaded";
1887
+ target_tag_name: "link";
1888
+ } | undefined;
1889
+ recovery_failures?: {
1890
+ path: string;
1891
+ source: "request_event" | "frontend_breadcrumb";
1892
+ occurred_at: string;
1893
+ method: string;
1894
+ status_code: number;
1895
+ delay_ms: number;
1896
+ }[] | undefined;
1826
1897
  } | undefined;
1827
1898
  logs?: {
1899
+ version: 1;
1828
1900
  items: {
1829
1901
  message: string;
1830
- level: string;
1831
1902
  timestamp: string;
1903
+ level: string;
1832
1904
  attributes: Record<string, unknown>;
1833
1905
  }[];
1834
- version: 1;
1835
1906
  } | null | undefined;
1836
1907
  frontend?: {
1837
1908
  version: 1;
@@ -1840,8 +1911,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1840
1911
  html_excerpt: string;
1841
1912
  } | null;
1842
1913
  route_changes: {
1843
- from: string;
1844
1914
  to: string;
1915
+ from: string;
1845
1916
  ts: string;
1846
1917
  }[];
1847
1918
  clicks: {
@@ -1887,14 +1958,65 @@ export declare const BundleV1Schema: z.ZodObject<{
1887
1958
  repo: string | null;
1888
1959
  } | null | undefined;
1889
1960
  dependencies?: {
1961
+ version: 1;
1890
1962
  items: {
1891
1963
  status: "unknown" | "failed" | "ok" | "degraded";
1892
1964
  name: string;
1893
1965
  notes: string | null;
1894
1966
  }[];
1895
- version: 1;
1896
1967
  } | null | undefined;
1897
1968
  };
1969
+ signal: {
1970
+ first_seen_at: string;
1971
+ last_seen_at: string;
1972
+ severity: "medium" | "low" | "high" | "critical";
1973
+ fingerprint: string;
1974
+ signal_id: string;
1975
+ signal_type: "frontend_exception" | "warning" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
1976
+ occurrence_count: number;
1977
+ source_event_types: string[];
1978
+ };
1979
+ service: {
1980
+ id: string;
1981
+ version: string | null;
1982
+ name: string;
1983
+ runtime: string | null;
1984
+ framework: string | null;
1985
+ region: string | null;
1986
+ };
1987
+ summary: {
1988
+ title: string;
1989
+ severity: "medium" | "low" | "high" | "critical";
1990
+ confidence: number;
1991
+ description: string;
1992
+ recommended_action: string | null;
1993
+ likely_cause: string | null;
1994
+ error_type: string | null;
1995
+ error_message: string | null;
1996
+ first_application_frame: {
1997
+ function: string | null;
1998
+ file: string | null;
1999
+ line: number | null;
2000
+ } | null;
2001
+ primary_signal: string | null;
2002
+ signals: {
2003
+ new_deploy: boolean;
2004
+ regression_suspected: boolean;
2005
+ customer_visible: boolean;
2006
+ };
2007
+ };
2008
+ bundle_type: "failure" | "improvement";
2009
+ redaction: {
2010
+ fields: string[];
2011
+ notes: string | null;
2012
+ redacted: boolean;
2013
+ };
2014
+ metadata: {
2015
+ created_at: string;
2016
+ updated_at: string;
2017
+ generator_version: string;
2018
+ generation_number: number;
2019
+ };
1898
2020
  reproduction: {
1899
2021
  confidence: number;
1900
2022
  reason: string;
@@ -1904,8 +2026,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1904
2026
  httpie: string | null;
1905
2027
  json_spec: {
1906
2028
  url: string;
1907
- headers: Record<string, unknown>;
1908
2029
  method: string;
2030
+ headers: Record<string, unknown>;
1909
2031
  query?: Record<string, unknown> | undefined;
1910
2032
  body?: unknown;
1911
2033
  } | null;
@@ -1922,8 +2044,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1922
2044
  bundle_id: string;
1923
2045
  captured_at: string;
1924
2046
  sdk: {
1925
- name: string;
1926
2047
  version: string;
2048
+ name: string;
1927
2049
  };
1928
2050
  impact: {
1929
2051
  regression_suspected: boolean;
@@ -1939,10 +2061,10 @@ export declare const BundleV1Schema: z.ZodObject<{
1939
2061
  production_verified: boolean;
1940
2062
  };
1941
2063
  links: {
2064
+ incident: string | null;
1942
2065
  project: string | null;
1943
2066
  self: string | null;
1944
2067
  reproduction: string | null;
1945
- incident: string | null;
1946
2068
  docs: string | null;
1947
2069
  };
1948
2070
  }>;
@@ -1950,7 +2072,7 @@ export type BundleV1 = z.infer<typeof BundleV1Schema>;
1950
2072
  export { MAX_BILLING_ADDITIONAL_CAPACITY_UNITS, TIER_CAPABILITIES, getTierCapabilities, isSelfHostMode, type TierName, type TierCapabilities } from "./tier-capabilities.js";
1951
2073
  export { EventClassValues, EventClassSchema, type EventClass, CapturePresetValues, CapturePresetSchema, type CapturePreset, CaptureLogsSchema, CaptureRequestEventsSchema, CaptureBreadcrumbsSchema, CaptureProbeEventsSchema, ImmediateClientErrorStatusesSchema, ImmediateClientErrorPathRuleSchema, ImmediateClientErrorPathRulesSchema, HTTP_METHOD_VALUES, RECOMMENDED_IMMEDIATE_CLIENT_ERROR_STATUSES, type CaptureLogs, type CaptureRequestEvents, type CaptureBreadcrumbs, type CaptureProbeEvents, type HttpMethod, type ImmediateClientErrorPathRule, ResolvedCapturePolicySchema, type ResolvedCapturePolicy, CapturePolicyOverridesSchema, type CapturePolicyOverrides, CapturePolicyResponseSchema, type CapturePolicyResponse, CapturePolicySchema, type CapturePolicyRecord, CapturePolicyUpdateSchema, type CapturePolicyUpdate, PRESET_DEFAULTS, DEFAULT_PRESET_BY_TIER, RequestSignalClassificationValues, RequestSignalClassificationSchema, type RequestSignalClassification, normalizeImmediateClientErrorStatuses, normalizeImmediateClientErrorPathRules, getCapturePolicyOverrides, resolvePolicy, getDefaultPreset, classifyRequestStatus, isImmediateRequestIncident, matchesImmediateClientErrorPathRule, getRequestAnomalyThreshold, shouldCaptureEvent } from "./capture-policy.js";
1952
2074
  export { isLowValueExternalProbeRequestFailure404 } from "./request-failure-noise.js";
1953
- 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";
2075
+ 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, captureRuleRequiresServerEvaluation, evaluateCaptureRules } from "./capture-rules.js";
1954
2076
  export { CaptureRuleSuggestionConfidenceSchema, type CaptureRuleSuggestionConfidence, CaptureRuleSuggestionSchema, type CaptureRuleSuggestion, CaptureRuleSuggestionsResponseSchema, type CaptureRuleSuggestionsResponse, CreateCaptureRuleFromSuggestionSchema, type CreateCaptureRuleFromSuggestion, type CaptureRuleSuggestionIncident, type CaptureRuleSuggestionBundle, buildCaptureRuleSuggestions } from "./capture-rule-suggestions.js";
1955
2077
  export { ImprovementBundleSensitivityValues, ImprovementBundleSensitivitySchema, type ImprovementBundleSensitivity, ImprovementSettingsSchema, type ImprovementSettings, ImprovementSettingsResponseSchema, type ImprovementSettingsResponse, ImprovementSettingsUpdateSchema, type ImprovementSettingsUpdate } from "./improvement-settings.js";
1956
2078
  export * from "./analytics.js";
@@ -1961,4 +2083,5 @@ export * from "./analytics-product.js";
1961
2083
  export * from "./analytics-journey-samples.js";
1962
2084
  export * from "./analytics-saved-funnels.js";
1963
2085
  export { PROJECT_COLOR_TAG_VALUES, ProjectColorTagSchema, type ProjectColorTag } from "./project-color-tags.js";
2086
+ export * from "./analytics-flows.js";
1964
2087
  //# sourceMappingURL=index.d.ts.map