@debugbundle/shared-types 1.7.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/browser-resource-context.d.ts +90 -0
  2. package/dist/browser-resource-context.d.ts.map +1 -0
  3. package/dist/browser-resource-context.js +23 -0
  4. package/dist/browser-resource-context.js.map +1 -0
  5. package/dist/browser-resource-routes.d.ts +40 -0
  6. package/dist/browser-resource-routes.d.ts.map +1 -0
  7. package/dist/browser-resource-routes.js +64 -0
  8. package/dist/browser-resource-routes.js.map +1 -0
  9. package/dist/browser-resource-suggestions.d.ts +8 -0
  10. package/dist/browser-resource-suggestions.d.ts.map +1 -0
  11. package/dist/browser-resource-suggestions.js +46 -0
  12. package/dist/browser-resource-suggestions.js.map +1 -0
  13. package/dist/browser-resource.d.ts +20 -0
  14. package/dist/browser-resource.d.ts.map +1 -0
  15. package/dist/browser-resource.js +116 -0
  16. package/dist/browser-resource.js.map +1 -0
  17. package/dist/capture-rule-evaluation.d.ts +6 -6
  18. package/dist/capture-rule-evaluation.d.ts.map +1 -1
  19. package/dist/capture-rule-evaluation.js +6 -2
  20. package/dist/capture-rule-evaluation.js.map +1 -1
  21. package/dist/capture-rule-schemas.d.ts +132 -132
  22. package/dist/capture-rule-suggestions.d.ts +60 -51
  23. package/dist/capture-rule-suggestions.d.ts.map +1 -1
  24. package/dist/capture-rule-suggestions.js +47 -115
  25. package/dist/capture-rule-suggestions.js.map +1 -1
  26. package/dist/event-envelope.d.ts +56 -56
  27. package/dist/frontend-severity.d.ts +6 -0
  28. package/dist/frontend-severity.d.ts.map +1 -0
  29. package/dist/frontend-severity.js +8 -0
  30. package/dist/frontend-severity.js.map +1 -0
  31. package/dist/index.d.ts +265 -86
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +5 -0
  34. package/dist/index.js.map +1 -1
  35. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -65,7 +65,7 @@ export declare const BundleV1Schema: z.ZodObject<{
65
65
  severity: "medium" | "low" | "high" | "critical";
66
66
  fingerprint: string;
67
67
  signal_id: string;
68
- signal_type: "warning" | "frontend_exception" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
68
+ signal_type: "frontend_exception" | "warning" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
69
69
  occurrence_count: number;
70
70
  source_event_types: string[];
71
71
  }, {
@@ -74,7 +74,7 @@ export declare const BundleV1Schema: z.ZodObject<{
74
74
  severity: "medium" | "low" | "high" | "critical";
75
75
  fingerprint: string;
76
76
  signal_id: string;
77
- signal_type: "warning" | "frontend_exception" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
77
+ signal_type: "frontend_exception" | "warning" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
78
78
  occurrence_count: number;
79
79
  source_event_types: string[];
80
80
  }>;
@@ -175,6 +175,94 @@ export declare const BundleV1Schema: z.ZodObject<{
175
175
  business_criticality: "medium" | "low" | "high" | "critical";
176
176
  }>;
177
177
  context: z.ZodObject<{
178
+ resource_failure: z.ZodOptional<z.ZodObject<{
179
+ version: z.ZodLiteral<1>;
180
+ host: z.ZodNullable<z.ZodString>;
181
+ path: z.ZodString;
182
+ type: z.ZodNullable<z.ZodString>;
183
+ first_party: z.ZodNullable<z.ZodBoolean>;
184
+ role: z.ZodEnum<["analytics", "advertising", "tag_manager", "authentication", "application_asset", "unknown"]>;
185
+ provider: z.ZodNullable<z.ZodString>;
186
+ title: z.ZodString;
187
+ optional_candidate: z.ZodBoolean;
188
+ diagnosis: z.ZodString;
189
+ routes: z.ZodObject<{
190
+ items: z.ZodArray<z.ZodObject<{
191
+ route: z.ZodString;
192
+ occurrences: z.ZodNumber;
193
+ }, "strip", z.ZodTypeAny, {
194
+ route: string;
195
+ occurrences: number;
196
+ }, {
197
+ route: string;
198
+ occurrences: number;
199
+ }>, "many">;
200
+ recorded_occurrences: z.ZodNumber;
201
+ unattributed_occurrences: z.ZodNumber;
202
+ omitted_routes: z.ZodNumber;
203
+ coverage: z.ZodEnum<["occurrence_metadata", "retained_samples"]>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ items: {
206
+ route: string;
207
+ occurrences: number;
208
+ }[];
209
+ recorded_occurrences: number;
210
+ unattributed_occurrences: number;
211
+ omitted_routes: number;
212
+ coverage: "occurrence_metadata" | "retained_samples";
213
+ }, {
214
+ items: {
215
+ route: string;
216
+ occurrences: number;
217
+ }[];
218
+ recorded_occurrences: number;
219
+ unattributed_occurrences: number;
220
+ omitted_routes: number;
221
+ coverage: "occurrence_metadata" | "retained_samples";
222
+ }>;
223
+ }, "strip", z.ZodTypeAny, {
224
+ path: string;
225
+ type: string | null;
226
+ title: string;
227
+ routes: {
228
+ items: {
229
+ route: string;
230
+ occurrences: number;
231
+ }[];
232
+ recorded_occurrences: number;
233
+ unattributed_occurrences: number;
234
+ omitted_routes: number;
235
+ coverage: "occurrence_metadata" | "retained_samples";
236
+ };
237
+ version: 1;
238
+ host: string | null;
239
+ first_party: boolean | null;
240
+ role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
241
+ provider: string | null;
242
+ optional_candidate: boolean;
243
+ diagnosis: string;
244
+ }, {
245
+ path: string;
246
+ type: string | null;
247
+ title: string;
248
+ routes: {
249
+ items: {
250
+ route: string;
251
+ occurrences: number;
252
+ }[];
253
+ recorded_occurrences: number;
254
+ unattributed_occurrences: number;
255
+ omitted_routes: number;
256
+ coverage: "occurrence_metadata" | "retained_samples";
257
+ };
258
+ version: 1;
259
+ host: string | null;
260
+ first_party: boolean | null;
261
+ role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
262
+ provider: string | null;
263
+ optional_candidate: boolean;
264
+ diagnosis: string;
265
+ }>>;
178
266
  error: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodObject<{
179
267
  version: z.ZodLiteral<1>;
180
268
  name: z.ZodString;
@@ -209,18 +297,18 @@ export declare const BundleV1Schema: z.ZodObject<{
209
297
  }, "strip", z.ZodTypeAny, {
210
298
  path: string;
211
299
  query: Record<string, unknown>;
212
- method: string;
213
300
  version: 1;
214
301
  headers: Record<string, unknown>;
302
+ method: string;
215
303
  request_id: string | null;
216
304
  route_template: string | null;
217
305
  body?: unknown;
218
306
  }, {
219
307
  path: string;
220
308
  query: Record<string, unknown>;
221
- method: string;
222
309
  version: 1;
223
310
  headers: Record<string, unknown>;
311
+ method: string;
224
312
  request_id: string | null;
225
313
  route_template: string | null;
226
314
  body?: unknown;
@@ -233,14 +321,14 @@ export declare const BundleV1Schema: z.ZodObject<{
233
321
  body: z.ZodOptional<z.ZodUnknown>;
234
322
  }, "strip", z.ZodTypeAny, {
235
323
  duration_ms: number | null;
236
- status_code: number;
237
324
  version: 1;
325
+ status_code: number;
238
326
  body?: unknown;
239
327
  headers?: Record<string, unknown> | undefined;
240
328
  }, {
241
329
  duration_ms: number | null;
242
- status_code: number;
243
330
  version: 1;
331
+ status_code: number;
244
332
  body?: unknown;
245
333
  headers?: Record<string, unknown> | undefined;
246
334
  }>>>;
@@ -263,21 +351,21 @@ export declare const BundleV1Schema: z.ZodObject<{
263
351
  attributes: Record<string, unknown>;
264
352
  }>, "many">;
265
353
  }, "strip", z.ZodTypeAny, {
266
- version: 1;
267
354
  items: {
268
355
  message: string;
269
356
  level: string;
270
357
  timestamp: string;
271
358
  attributes: Record<string, unknown>;
272
359
  }[];
273
- }, {
274
360
  version: 1;
361
+ }, {
275
362
  items: {
276
363
  message: string;
277
364
  level: string;
278
365
  timestamp: string;
279
366
  attributes: Record<string, unknown>;
280
367
  }[];
368
+ version: 1;
281
369
  }>>>;
282
370
  frontend: z.ZodOptional<z.ZodNullable<z.ZodObject<{
283
371
  version: z.ZodLiteral<1>;
@@ -444,13 +532,13 @@ export declare const BundleV1Schema: z.ZodObject<{
444
532
  container_id: z.ZodNullable<z.ZodString>;
445
533
  }, "strip", z.ZodTypeAny, {
446
534
  os: string | null;
447
- host: string | null;
448
535
  version: 1;
536
+ host: string | null;
449
537
  container_id: string | null;
450
538
  }, {
451
539
  os: string | null;
452
- host: string | null;
453
540
  version: 1;
541
+ host: string | null;
454
542
  container_id: string | null;
455
543
  }>>>;
456
544
  deploy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -562,19 +650,19 @@ export declare const BundleV1Schema: z.ZodObject<{
562
650
  }, "strip", z.ZodTypeAny, {
563
651
  dirty: boolean;
564
652
  version: 1;
653
+ source: "unknown" | "config" | "env" | "local";
565
654
  branch: string | null;
566
655
  commit: string | null;
567
656
  commit_short: string | null;
568
657
  repo: string | null;
569
- source: "unknown" | "config" | "env" | "local";
570
658
  }, {
571
659
  dirty: boolean;
572
660
  version: 1;
661
+ source: "unknown" | "config" | "env" | "local";
573
662
  branch: string | null;
574
663
  commit: string | null;
575
664
  commit_short: string | null;
576
665
  repo: string | null;
577
- source: "unknown" | "config" | "env" | "local";
578
666
  }>>>;
579
667
  dependencies: z.ZodOptional<z.ZodNullable<z.ZodObject<{
580
668
  version: z.ZodLiteral<1>;
@@ -592,19 +680,19 @@ export declare const BundleV1Schema: z.ZodObject<{
592
680
  notes: string | null;
593
681
  }>, "many">;
594
682
  }, "strip", z.ZodTypeAny, {
595
- version: 1;
596
683
  items: {
597
684
  status: "unknown" | "failed" | "ok" | "degraded";
598
685
  name: string;
599
686
  notes: string | null;
600
687
  }[];
601
- }, {
602
688
  version: 1;
689
+ }, {
603
690
  items: {
604
691
  status: "unknown" | "failed" | "ok" | "degraded";
605
692
  name: string;
606
693
  notes: string | null;
607
694
  }[];
695
+ version: 1;
608
696
  }>>>;
609
697
  probe_data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
610
698
  version: z.ZodLiteral<1>;
@@ -625,21 +713,21 @@ export declare const BundleV1Schema: z.ZodObject<{
625
713
  activation_id: string | null;
626
714
  }>, "many">;
627
715
  }, "strip", z.ZodTypeAny, {
628
- version: 1;
629
716
  items: {
630
717
  data: Record<string, unknown>;
631
718
  label: string;
632
719
  timestamp: string;
633
720
  activation_id: string | null;
634
721
  }[];
635
- }, {
636
722
  version: 1;
723
+ }, {
637
724
  items: {
638
725
  data: Record<string, unknown>;
639
726
  label: string;
640
727
  timestamp: string;
641
728
  activation_id: string | null;
642
729
  }[];
730
+ version: 1;
643
731
  }>>>;
644
732
  device: z.ZodOptional<z.ZodNullable<z.ZodObject<{
645
733
  version: z.ZodLiteral<1>;
@@ -744,8 +832,8 @@ export declare const BundleV1Schema: z.ZodObject<{
744
832
  }, "strip", z.ZodTypeAny, {
745
833
  environment?: {
746
834
  os: string | null;
747
- host: string | null;
748
835
  version: 1;
836
+ host: string | null;
749
837
  container_id: string | null;
750
838
  } | null | undefined;
751
839
  runtime?: {
@@ -770,14 +858,6 @@ export declare const BundleV1Schema: z.ZodObject<{
770
858
  runtime_version: string | null;
771
859
  framework_extras?: Record<string, unknown> | null | undefined;
772
860
  } | null | undefined;
773
- error?: {
774
- message: string;
775
- name: string;
776
- version: 1;
777
- stack: string;
778
- handled: boolean;
779
- top_frames: string[];
780
- } | null | undefined;
781
861
  device?: {
782
862
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
783
863
  language: string | null;
@@ -807,37 +887,67 @@ export declare const BundleV1Schema: z.ZodObject<{
807
887
  request?: {
808
888
  path: string;
809
889
  query: Record<string, unknown>;
810
- method: string;
811
890
  version: 1;
812
891
  headers: Record<string, unknown>;
892
+ method: string;
813
893
  request_id: string | null;
814
894
  route_template: string | null;
815
895
  body?: unknown;
816
896
  } | null | undefined;
817
897
  response?: {
818
898
  duration_ms: number | null;
819
- status_code: number;
820
899
  version: 1;
900
+ status_code: number;
821
901
  body?: unknown;
822
902
  headers?: Record<string, unknown> | undefined;
823
903
  } | null | undefined;
824
- probe_data?: {
904
+ error?: {
905
+ message: string;
906
+ name: string;
825
907
  version: 1;
908
+ stack: string;
909
+ handled: boolean;
910
+ top_frames: string[];
911
+ } | null | undefined;
912
+ probe_data?: {
826
913
  items: {
827
914
  data: Record<string, unknown>;
828
915
  label: string;
829
916
  timestamp: string;
830
917
  activation_id: string | null;
831
918
  }[];
919
+ version: 1;
832
920
  } | null | undefined;
833
- logs?: {
921
+ resource_failure?: {
922
+ path: string;
923
+ type: string | null;
924
+ title: string;
925
+ routes: {
926
+ items: {
927
+ route: string;
928
+ occurrences: number;
929
+ }[];
930
+ recorded_occurrences: number;
931
+ unattributed_occurrences: number;
932
+ omitted_routes: number;
933
+ coverage: "occurrence_metadata" | "retained_samples";
934
+ };
834
935
  version: 1;
936
+ host: string | null;
937
+ first_party: boolean | null;
938
+ role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
939
+ provider: string | null;
940
+ optional_candidate: boolean;
941
+ diagnosis: string;
942
+ } | undefined;
943
+ logs?: {
835
944
  items: {
836
945
  message: string;
837
946
  level: string;
838
947
  timestamp: string;
839
948
  attributes: Record<string, unknown>;
840
949
  }[];
950
+ version: 1;
841
951
  } | null | undefined;
842
952
  frontend?: {
843
953
  version: 1;
@@ -886,25 +996,25 @@ export declare const BundleV1Schema: z.ZodObject<{
886
996
  git?: {
887
997
  dirty: boolean;
888
998
  version: 1;
999
+ source: "unknown" | "config" | "env" | "local";
889
1000
  branch: string | null;
890
1001
  commit: string | null;
891
1002
  commit_short: string | null;
892
1003
  repo: string | null;
893
- source: "unknown" | "config" | "env" | "local";
894
1004
  } | null | undefined;
895
1005
  dependencies?: {
896
- version: 1;
897
1006
  items: {
898
1007
  status: "unknown" | "failed" | "ok" | "degraded";
899
1008
  name: string;
900
1009
  notes: string | null;
901
1010
  }[];
1011
+ version: 1;
902
1012
  } | null | undefined;
903
1013
  }, {
904
1014
  environment?: {
905
1015
  os: string | null;
906
- host: string | null;
907
1016
  version: 1;
1017
+ host: string | null;
908
1018
  container_id: string | null;
909
1019
  } | null | undefined;
910
1020
  runtime?: {
@@ -929,14 +1039,6 @@ export declare const BundleV1Schema: z.ZodObject<{
929
1039
  runtime_version: string | null;
930
1040
  framework_extras?: Record<string, unknown> | null | undefined;
931
1041
  } | null | undefined;
932
- error?: {
933
- message: string;
934
- name: string;
935
- version: 1;
936
- stack: string;
937
- handled: boolean;
938
- top_frames: string[];
939
- } | null | undefined;
940
1042
  device?: {
941
1043
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
942
1044
  language: string | null;
@@ -966,37 +1068,67 @@ export declare const BundleV1Schema: z.ZodObject<{
966
1068
  request?: {
967
1069
  path: string;
968
1070
  query: Record<string, unknown>;
969
- method: string;
970
1071
  version: 1;
971
1072
  headers: Record<string, unknown>;
1073
+ method: string;
972
1074
  request_id: string | null;
973
1075
  route_template: string | null;
974
1076
  body?: unknown;
975
1077
  } | null | undefined;
976
1078
  response?: {
977
1079
  duration_ms: number | null;
978
- status_code: number;
979
1080
  version: 1;
1081
+ status_code: number;
980
1082
  body?: unknown;
981
1083
  headers?: Record<string, unknown> | undefined;
982
1084
  } | null | undefined;
983
- probe_data?: {
1085
+ error?: {
1086
+ message: string;
1087
+ name: string;
984
1088
  version: 1;
1089
+ stack: string;
1090
+ handled: boolean;
1091
+ top_frames: string[];
1092
+ } | null | undefined;
1093
+ probe_data?: {
985
1094
  items: {
986
1095
  data: Record<string, unknown>;
987
1096
  label: string;
988
1097
  timestamp: string;
989
1098
  activation_id: string | null;
990
1099
  }[];
1100
+ version: 1;
991
1101
  } | null | undefined;
992
- logs?: {
1102
+ resource_failure?: {
1103
+ path: string;
1104
+ type: string | null;
1105
+ title: string;
1106
+ routes: {
1107
+ items: {
1108
+ route: string;
1109
+ occurrences: number;
1110
+ }[];
1111
+ recorded_occurrences: number;
1112
+ unattributed_occurrences: number;
1113
+ omitted_routes: number;
1114
+ coverage: "occurrence_metadata" | "retained_samples";
1115
+ };
993
1116
  version: 1;
1117
+ host: string | null;
1118
+ first_party: boolean | null;
1119
+ role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
1120
+ provider: string | null;
1121
+ optional_candidate: boolean;
1122
+ diagnosis: string;
1123
+ } | undefined;
1124
+ logs?: {
994
1125
  items: {
995
1126
  message: string;
996
1127
  level: string;
997
1128
  timestamp: string;
998
1129
  attributes: Record<string, unknown>;
999
1130
  }[];
1131
+ version: 1;
1000
1132
  } | null | undefined;
1001
1133
  frontend?: {
1002
1134
  version: 1;
@@ -1045,19 +1177,19 @@ export declare const BundleV1Schema: z.ZodObject<{
1045
1177
  git?: {
1046
1178
  dirty: boolean;
1047
1179
  version: 1;
1180
+ source: "unknown" | "config" | "env" | "local";
1048
1181
  branch: string | null;
1049
1182
  commit: string | null;
1050
1183
  commit_short: string | null;
1051
1184
  repo: string | null;
1052
- source: "unknown" | "config" | "env" | "local";
1053
1185
  } | null | undefined;
1054
1186
  dependencies?: {
1055
- version: 1;
1056
1187
  items: {
1057
1188
  status: "unknown" | "failed" | "ok" | "degraded";
1058
1189
  name: string;
1059
1190
  notes: string | null;
1060
1191
  }[];
1192
+ version: 1;
1061
1193
  } | null | undefined;
1062
1194
  }>;
1063
1195
  reproduction: z.ZodObject<{
@@ -1075,14 +1207,14 @@ export declare const BundleV1Schema: z.ZodObject<{
1075
1207
  body: z.ZodNullable<z.ZodUnknown>;
1076
1208
  }, "strip", z.ZodTypeAny, {
1077
1209
  url: string;
1078
- method: string;
1079
1210
  headers: Record<string, unknown>;
1211
+ method: string;
1080
1212
  query?: Record<string, unknown> | undefined;
1081
1213
  body?: unknown;
1082
1214
  }, {
1083
1215
  url: string;
1084
- method: string;
1085
1216
  headers: Record<string, unknown>;
1217
+ method: string;
1086
1218
  query?: Record<string, unknown> | undefined;
1087
1219
  body?: unknown;
1088
1220
  }>>;
@@ -1091,8 +1223,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1091
1223
  httpie: string | null;
1092
1224
  json_spec: {
1093
1225
  url: string;
1094
- method: string;
1095
1226
  headers: Record<string, unknown>;
1227
+ method: string;
1096
1228
  query?: Record<string, unknown> | undefined;
1097
1229
  body?: unknown;
1098
1230
  } | null;
@@ -1101,8 +1233,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1101
1233
  httpie: string | null;
1102
1234
  json_spec: {
1103
1235
  url: string;
1104
- method: string;
1105
1236
  headers: Record<string, unknown>;
1237
+ method: string;
1106
1238
  query?: Record<string, unknown> | undefined;
1107
1239
  body?: unknown;
1108
1240
  } | null;
@@ -1135,8 +1267,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1135
1267
  httpie: string | null;
1136
1268
  json_spec: {
1137
1269
  url: string;
1138
- method: string;
1139
1270
  headers: Record<string, unknown>;
1271
+ method: string;
1140
1272
  query?: Record<string, unknown> | undefined;
1141
1273
  body?: unknown;
1142
1274
  } | null;
@@ -1157,8 +1289,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1157
1289
  httpie: string | null;
1158
1290
  json_spec: {
1159
1291
  url: string;
1160
- method: string;
1161
1292
  headers: Record<string, unknown>;
1293
+ method: string;
1162
1294
  query?: Record<string, unknown> | undefined;
1163
1295
  body?: unknown;
1164
1296
  } | null;
@@ -1242,7 +1374,7 @@ export declare const BundleV1Schema: z.ZodObject<{
1242
1374
  severity: "medium" | "low" | "high" | "critical";
1243
1375
  fingerprint: string;
1244
1376
  signal_id: string;
1245
- signal_type: "warning" | "frontend_exception" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
1377
+ signal_type: "frontend_exception" | "warning" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
1246
1378
  occurrence_count: number;
1247
1379
  source_event_types: string[];
1248
1380
  };
@@ -1295,8 +1427,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1295
1427
  context: {
1296
1428
  environment?: {
1297
1429
  os: string | null;
1298
- host: string | null;
1299
1430
  version: 1;
1431
+ host: string | null;
1300
1432
  container_id: string | null;
1301
1433
  } | null | undefined;
1302
1434
  runtime?: {
@@ -1321,14 +1453,6 @@ export declare const BundleV1Schema: z.ZodObject<{
1321
1453
  runtime_version: string | null;
1322
1454
  framework_extras?: Record<string, unknown> | null | undefined;
1323
1455
  } | null | undefined;
1324
- error?: {
1325
- message: string;
1326
- name: string;
1327
- version: 1;
1328
- stack: string;
1329
- handled: boolean;
1330
- top_frames: string[];
1331
- } | null | undefined;
1332
1456
  device?: {
1333
1457
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
1334
1458
  language: string | null;
@@ -1358,37 +1482,67 @@ export declare const BundleV1Schema: z.ZodObject<{
1358
1482
  request?: {
1359
1483
  path: string;
1360
1484
  query: Record<string, unknown>;
1361
- method: string;
1362
1485
  version: 1;
1363
1486
  headers: Record<string, unknown>;
1487
+ method: string;
1364
1488
  request_id: string | null;
1365
1489
  route_template: string | null;
1366
1490
  body?: unknown;
1367
1491
  } | null | undefined;
1368
1492
  response?: {
1369
1493
  duration_ms: number | null;
1370
- status_code: number;
1371
1494
  version: 1;
1495
+ status_code: number;
1372
1496
  body?: unknown;
1373
1497
  headers?: Record<string, unknown> | undefined;
1374
1498
  } | null | undefined;
1375
- probe_data?: {
1499
+ error?: {
1500
+ message: string;
1501
+ name: string;
1376
1502
  version: 1;
1503
+ stack: string;
1504
+ handled: boolean;
1505
+ top_frames: string[];
1506
+ } | null | undefined;
1507
+ probe_data?: {
1377
1508
  items: {
1378
1509
  data: Record<string, unknown>;
1379
1510
  label: string;
1380
1511
  timestamp: string;
1381
1512
  activation_id: string | null;
1382
1513
  }[];
1514
+ version: 1;
1383
1515
  } | null | undefined;
1384
- logs?: {
1516
+ resource_failure?: {
1517
+ path: string;
1518
+ type: string | null;
1519
+ title: string;
1520
+ routes: {
1521
+ items: {
1522
+ route: string;
1523
+ occurrences: number;
1524
+ }[];
1525
+ recorded_occurrences: number;
1526
+ unattributed_occurrences: number;
1527
+ omitted_routes: number;
1528
+ coverage: "occurrence_metadata" | "retained_samples";
1529
+ };
1385
1530
  version: 1;
1531
+ host: string | null;
1532
+ first_party: boolean | null;
1533
+ role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
1534
+ provider: string | null;
1535
+ optional_candidate: boolean;
1536
+ diagnosis: string;
1537
+ } | undefined;
1538
+ logs?: {
1386
1539
  items: {
1387
1540
  message: string;
1388
1541
  level: string;
1389
1542
  timestamp: string;
1390
1543
  attributes: Record<string, unknown>;
1391
1544
  }[];
1545
+ version: 1;
1392
1546
  } | null | undefined;
1393
1547
  frontend?: {
1394
1548
  version: 1;
@@ -1437,19 +1591,19 @@ export declare const BundleV1Schema: z.ZodObject<{
1437
1591
  git?: {
1438
1592
  dirty: boolean;
1439
1593
  version: 1;
1594
+ source: "unknown" | "config" | "env" | "local";
1440
1595
  branch: string | null;
1441
1596
  commit: string | null;
1442
1597
  commit_short: string | null;
1443
1598
  repo: string | null;
1444
- source: "unknown" | "config" | "env" | "local";
1445
1599
  } | null | undefined;
1446
1600
  dependencies?: {
1447
- version: 1;
1448
1601
  items: {
1449
1602
  status: "unknown" | "failed" | "ok" | "degraded";
1450
1603
  name: string;
1451
1604
  notes: string | null;
1452
1605
  }[];
1606
+ version: 1;
1453
1607
  } | null | undefined;
1454
1608
  };
1455
1609
  reproduction: {
@@ -1461,8 +1615,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1461
1615
  httpie: string | null;
1462
1616
  json_spec: {
1463
1617
  url: string;
1464
- method: string;
1465
1618
  headers: Record<string, unknown>;
1619
+ method: string;
1466
1620
  query?: Record<string, unknown> | undefined;
1467
1621
  body?: unknown;
1468
1622
  } | null;
@@ -1509,7 +1663,7 @@ export declare const BundleV1Schema: z.ZodObject<{
1509
1663
  severity: "medium" | "low" | "high" | "critical";
1510
1664
  fingerprint: string;
1511
1665
  signal_id: string;
1512
- signal_type: "warning" | "frontend_exception" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
1666
+ signal_type: "frontend_exception" | "warning" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
1513
1667
  occurrence_count: number;
1514
1668
  source_event_types: string[];
1515
1669
  };
@@ -1562,8 +1716,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1562
1716
  context: {
1563
1717
  environment?: {
1564
1718
  os: string | null;
1565
- host: string | null;
1566
1719
  version: 1;
1720
+ host: string | null;
1567
1721
  container_id: string | null;
1568
1722
  } | null | undefined;
1569
1723
  runtime?: {
@@ -1588,14 +1742,6 @@ export declare const BundleV1Schema: z.ZodObject<{
1588
1742
  runtime_version: string | null;
1589
1743
  framework_extras?: Record<string, unknown> | null | undefined;
1590
1744
  } | null | undefined;
1591
- error?: {
1592
- message: string;
1593
- name: string;
1594
- version: 1;
1595
- stack: string;
1596
- handled: boolean;
1597
- top_frames: string[];
1598
- } | null | undefined;
1599
1745
  device?: {
1600
1746
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
1601
1747
  language: string | null;
@@ -1625,37 +1771,67 @@ export declare const BundleV1Schema: z.ZodObject<{
1625
1771
  request?: {
1626
1772
  path: string;
1627
1773
  query: Record<string, unknown>;
1628
- method: string;
1629
1774
  version: 1;
1630
1775
  headers: Record<string, unknown>;
1776
+ method: string;
1631
1777
  request_id: string | null;
1632
1778
  route_template: string | null;
1633
1779
  body?: unknown;
1634
1780
  } | null | undefined;
1635
1781
  response?: {
1636
1782
  duration_ms: number | null;
1637
- status_code: number;
1638
1783
  version: 1;
1784
+ status_code: number;
1639
1785
  body?: unknown;
1640
1786
  headers?: Record<string, unknown> | undefined;
1641
1787
  } | null | undefined;
1642
- probe_data?: {
1788
+ error?: {
1789
+ message: string;
1790
+ name: string;
1643
1791
  version: 1;
1792
+ stack: string;
1793
+ handled: boolean;
1794
+ top_frames: string[];
1795
+ } | null | undefined;
1796
+ probe_data?: {
1644
1797
  items: {
1645
1798
  data: Record<string, unknown>;
1646
1799
  label: string;
1647
1800
  timestamp: string;
1648
1801
  activation_id: string | null;
1649
1802
  }[];
1803
+ version: 1;
1650
1804
  } | null | undefined;
1651
- logs?: {
1805
+ resource_failure?: {
1806
+ path: string;
1807
+ type: string | null;
1808
+ title: string;
1809
+ routes: {
1810
+ items: {
1811
+ route: string;
1812
+ occurrences: number;
1813
+ }[];
1814
+ recorded_occurrences: number;
1815
+ unattributed_occurrences: number;
1816
+ omitted_routes: number;
1817
+ coverage: "occurrence_metadata" | "retained_samples";
1818
+ };
1652
1819
  version: 1;
1820
+ host: string | null;
1821
+ first_party: boolean | null;
1822
+ role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
1823
+ provider: string | null;
1824
+ optional_candidate: boolean;
1825
+ diagnosis: string;
1826
+ } | undefined;
1827
+ logs?: {
1653
1828
  items: {
1654
1829
  message: string;
1655
1830
  level: string;
1656
1831
  timestamp: string;
1657
1832
  attributes: Record<string, unknown>;
1658
1833
  }[];
1834
+ version: 1;
1659
1835
  } | null | undefined;
1660
1836
  frontend?: {
1661
1837
  version: 1;
@@ -1704,19 +1880,19 @@ export declare const BundleV1Schema: z.ZodObject<{
1704
1880
  git?: {
1705
1881
  dirty: boolean;
1706
1882
  version: 1;
1883
+ source: "unknown" | "config" | "env" | "local";
1707
1884
  branch: string | null;
1708
1885
  commit: string | null;
1709
1886
  commit_short: string | null;
1710
1887
  repo: string | null;
1711
- source: "unknown" | "config" | "env" | "local";
1712
1888
  } | null | undefined;
1713
1889
  dependencies?: {
1714
- version: 1;
1715
1890
  items: {
1716
1891
  status: "unknown" | "failed" | "ok" | "degraded";
1717
1892
  name: string;
1718
1893
  notes: string | null;
1719
1894
  }[];
1895
+ version: 1;
1720
1896
  } | null | undefined;
1721
1897
  };
1722
1898
  reproduction: {
@@ -1728,8 +1904,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1728
1904
  httpie: string | null;
1729
1905
  json_spec: {
1730
1906
  url: string;
1731
- method: string;
1732
1907
  headers: Record<string, unknown>;
1908
+ method: string;
1733
1909
  query?: Record<string, unknown> | undefined;
1734
1910
  body?: unknown;
1735
1911
  } | null;
@@ -1778,6 +1954,9 @@ export { CaptureRuleActionValues, CaptureRuleActionSchema, type CaptureRuleActio
1778
1954
  export { CaptureRuleSuggestionConfidenceSchema, type CaptureRuleSuggestionConfidence, CaptureRuleSuggestionSchema, type CaptureRuleSuggestion, CaptureRuleSuggestionsResponseSchema, type CaptureRuleSuggestionsResponse, CreateCaptureRuleFromSuggestionSchema, type CreateCaptureRuleFromSuggestion, type CaptureRuleSuggestionIncident, type CaptureRuleSuggestionBundle, buildCaptureRuleSuggestions } from "./capture-rule-suggestions.js";
1779
1955
  export { ImprovementBundleSensitivityValues, ImprovementBundleSensitivitySchema, type ImprovementBundleSensitivity, ImprovementSettingsSchema, type ImprovementSettings, ImprovementSettingsResponseSchema, type ImprovementSettingsResponse, ImprovementSettingsUpdateSchema, type ImprovementSettingsUpdate } from "./improvement-settings.js";
1780
1956
  export * from "./analytics.js";
1957
+ export * from "./browser-resource.js";
1958
+ export * from "./browser-resource-routes.js";
1959
+ export * from "./frontend-severity.js";
1781
1960
  export * from "./analytics-product.js";
1782
1961
  export * from "./analytics-journey-samples.js";
1783
1962
  export * from "./analytics-saved-funnels.js";