@debugbundle/shared-types 0.1.7 → 0.1.9

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
@@ -56,15 +56,15 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
56
56
  body: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
57
57
  }, "strip", z.ZodTypeAny, {
58
58
  path: string;
59
+ headers: Record<string, unknown>;
59
60
  method: string;
60
61
  query: Record<string, unknown>;
61
- headers: Record<string, unknown>;
62
62
  body?: unknown;
63
63
  }, {
64
64
  path: string;
65
+ headers: Record<string, unknown>;
65
66
  method: string;
66
67
  query: Record<string, unknown>;
67
- headers: Record<string, unknown>;
68
68
  body?: unknown;
69
69
  }>;
70
70
  response: z.ZodObject<{
@@ -155,36 +155,35 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
155
155
  timestamp: z.ZodString;
156
156
  activation_id: z.ZodNullable<z.ZodString>;
157
157
  }, "strict", z.ZodTypeAny, {
158
- label: string;
159
158
  data: Record<string, unknown>;
159
+ label: string;
160
160
  timestamp: string;
161
161
  activation_id: string | null;
162
162
  }, {
163
- label: string;
164
163
  data: Record<string, unknown>;
164
+ label: string;
165
165
  timestamp: string;
166
166
  activation_id: string | null;
167
167
  }>, "many">;
168
168
  }, "strict", z.ZodTypeAny, {
169
169
  version: 1;
170
170
  items: {
171
- label: string;
172
171
  data: Record<string, unknown>;
172
+ label: string;
173
173
  timestamp: string;
174
174
  activation_id: string | null;
175
175
  }[];
176
176
  }, {
177
177
  version: 1;
178
178
  items: {
179
- label: string;
180
179
  data: Record<string, unknown>;
180
+ label: string;
181
181
  timestamp: string;
182
182
  activation_id: string | null;
183
183
  }[];
184
184
  }>>;
185
185
  }, "strict", z.ZodTypeAny, {
186
186
  message: string;
187
- name: string;
188
187
  runtime: {
189
188
  version: string;
190
189
  platform?: string | null | undefined;
@@ -204,13 +203,12 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
204
203
  } | null | undefined;
205
204
  framework_extras?: Record<string, unknown> | null | undefined;
206
205
  };
207
- stack: string;
208
- handled: boolean;
206
+ name: string;
209
207
  request: {
210
208
  path: string;
209
+ headers: Record<string, unknown>;
211
210
  method: string;
212
211
  query: Record<string, unknown>;
213
- headers: Record<string, unknown>;
214
212
  body?: unknown;
215
213
  };
216
214
  response: {
@@ -218,18 +216,19 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
218
216
  headers?: Record<string, unknown> | undefined;
219
217
  body?: unknown;
220
218
  };
219
+ stack: string;
220
+ handled: boolean;
221
221
  probe_data?: {
222
222
  version: 1;
223
223
  items: {
224
- label: string;
225
224
  data: Record<string, unknown>;
225
+ label: string;
226
226
  timestamp: string;
227
227
  activation_id: string | null;
228
228
  }[];
229
229
  } | undefined;
230
230
  }, {
231
231
  message: string;
232
- name: string;
233
232
  runtime: {
234
233
  version: string;
235
234
  platform?: string | null | undefined;
@@ -249,13 +248,12 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
249
248
  } | null | undefined;
250
249
  framework_extras?: Record<string, unknown> | null | undefined;
251
250
  };
252
- stack: string;
253
- handled: boolean;
251
+ name: string;
254
252
  request: {
255
253
  path: string;
254
+ headers: Record<string, unknown>;
256
255
  method: string;
257
256
  query: Record<string, unknown>;
258
- headers: Record<string, unknown>;
259
257
  body?: unknown;
260
258
  };
261
259
  response: {
@@ -263,32 +261,33 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
263
261
  headers?: Record<string, unknown> | undefined;
264
262
  body?: unknown;
265
263
  };
264
+ stack: string;
265
+ handled: boolean;
266
266
  probe_data?: {
267
267
  version: 1;
268
268
  items: {
269
- label: string;
270
269
  data: Record<string, unknown>;
270
+ label: string;
271
271
  timestamp: string;
272
272
  activation_id: string | null;
273
273
  }[];
274
274
  } | undefined;
275
275
  }>;
276
276
  }, "strict", z.ZodTypeAny, {
277
- schema_version: string;
278
277
  event_id: string;
279
278
  event_type: "backend_exception";
280
- sdk_name: string;
281
- sdk_version: string;
282
279
  service: {
283
280
  name: string;
284
281
  environment: string;
285
282
  runtime?: string | null | undefined;
286
283
  framework?: string | null | undefined;
287
284
  };
285
+ schema_version: string;
286
+ sdk_name: string;
287
+ sdk_version: string;
288
288
  occurred_at: string;
289
289
  payload: {
290
290
  message: string;
291
- name: string;
292
291
  runtime: {
293
292
  version: string;
294
293
  platform?: string | null | undefined;
@@ -308,13 +307,12 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
308
307
  } | null | undefined;
309
308
  framework_extras?: Record<string, unknown> | null | undefined;
310
309
  };
311
- stack: string;
312
- handled: boolean;
310
+ name: string;
313
311
  request: {
314
312
  path: string;
313
+ headers: Record<string, unknown>;
315
314
  method: string;
316
315
  query: Record<string, unknown>;
317
- headers: Record<string, unknown>;
318
316
  body?: unknown;
319
317
  };
320
318
  response: {
@@ -322,11 +320,13 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
322
320
  headers?: Record<string, unknown> | undefined;
323
321
  body?: unknown;
324
322
  };
323
+ stack: string;
324
+ handled: boolean;
325
325
  probe_data?: {
326
326
  version: 1;
327
327
  items: {
328
- label: string;
329
328
  data: Record<string, unknown>;
329
+ label: string;
330
330
  timestamp: string;
331
331
  activation_id: string | null;
332
332
  }[];
@@ -341,21 +341,20 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
341
341
  user_id_hash: string | null;
342
342
  } | undefined;
343
343
  }, {
344
- schema_version: string;
345
344
  event_id: string;
346
345
  event_type: "backend_exception";
347
- sdk_name: string;
348
- sdk_version: string;
349
346
  service: {
350
347
  name: string;
351
348
  environment: string;
352
349
  runtime?: string | null | undefined;
353
350
  framework?: string | null | undefined;
354
351
  };
352
+ schema_version: string;
353
+ sdk_name: string;
354
+ sdk_version: string;
355
355
  occurred_at: string;
356
356
  payload: {
357
357
  message: string;
358
- name: string;
359
358
  runtime: {
360
359
  version: string;
361
360
  platform?: string | null | undefined;
@@ -375,13 +374,12 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
375
374
  } | null | undefined;
376
375
  framework_extras?: Record<string, unknown> | null | undefined;
377
376
  };
378
- stack: string;
379
- handled: boolean;
377
+ name: string;
380
378
  request: {
381
379
  path: string;
380
+ headers: Record<string, unknown>;
382
381
  method: string;
383
382
  query: Record<string, unknown>;
384
- headers: Record<string, unknown>;
385
383
  body?: unknown;
386
384
  };
387
385
  response: {
@@ -389,11 +387,13 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
389
387
  headers?: Record<string, unknown> | undefined;
390
388
  body?: unknown;
391
389
  };
390
+ stack: string;
391
+ handled: boolean;
392
392
  probe_data?: {
393
393
  version: 1;
394
394
  items: {
395
- label: string;
396
395
  data: Record<string, unknown>;
396
+ label: string;
397
397
  timestamp: string;
398
398
  activation_id: string | null;
399
399
  }[];
@@ -463,9 +463,9 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
463
463
  }, "strict", z.ZodTypeAny, {
464
464
  path: string;
465
465
  response_status: number;
466
+ headers: Record<string, unknown>;
466
467
  method: string;
467
468
  query: Record<string, unknown>;
468
- headers: Record<string, unknown>;
469
469
  duration_ms: number;
470
470
  body?: unknown;
471
471
  route_template?: string | null | undefined;
@@ -474,9 +474,9 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
474
474
  }, {
475
475
  path: string;
476
476
  response_status: number;
477
+ headers: Record<string, unknown>;
477
478
  method: string;
478
479
  query: Record<string, unknown>;
479
- headers: Record<string, unknown>;
480
480
  duration_ms: number;
481
481
  body?: unknown;
482
482
  route_template?: string | null | undefined;
@@ -484,24 +484,24 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
484
484
  response_body?: unknown;
485
485
  }>;
486
486
  }, "strict", z.ZodTypeAny, {
487
- schema_version: string;
488
487
  event_id: string;
489
488
  event_type: "request_event";
490
- sdk_name: string;
491
- sdk_version: string;
492
489
  service: {
493
490
  name: string;
494
491
  environment: string;
495
492
  runtime?: string | null | undefined;
496
493
  framework?: string | null | undefined;
497
494
  };
495
+ schema_version: string;
496
+ sdk_name: string;
497
+ sdk_version: string;
498
498
  occurred_at: string;
499
499
  payload: {
500
500
  path: string;
501
501
  response_status: number;
502
+ headers: Record<string, unknown>;
502
503
  method: string;
503
504
  query: Record<string, unknown>;
504
- headers: Record<string, unknown>;
505
505
  duration_ms: number;
506
506
  body?: unknown;
507
507
  route_template?: string | null | undefined;
@@ -517,24 +517,24 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
517
517
  user_id_hash: string | null;
518
518
  } | undefined;
519
519
  }, {
520
- schema_version: string;
521
520
  event_id: string;
522
521
  event_type: "request_event";
523
- sdk_name: string;
524
- sdk_version: string;
525
522
  service: {
526
523
  name: string;
527
524
  environment: string;
528
525
  runtime?: string | null | undefined;
529
526
  framework?: string | null | undefined;
530
527
  };
528
+ schema_version: string;
529
+ sdk_name: string;
530
+ sdk_version: string;
531
531
  occurred_at: string;
532
532
  payload: {
533
533
  path: string;
534
534
  response_status: number;
535
+ headers: Record<string, unknown>;
535
536
  method: string;
536
537
  query: Record<string, unknown>;
537
- headers: Record<string, unknown>;
538
538
  duration_ms: number;
539
539
  body?: unknown;
540
540
  route_template?: string | null | undefined;
@@ -605,17 +605,17 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
605
605
  attributes: Record<string, unknown>;
606
606
  }>;
607
607
  }, "strict", z.ZodTypeAny, {
608
- schema_version: string;
609
608
  event_id: string;
610
609
  event_type: "log_event";
611
- sdk_name: string;
612
- sdk_version: string;
613
610
  service: {
614
611
  name: string;
615
612
  environment: string;
616
613
  runtime?: string | null | undefined;
617
614
  framework?: string | null | undefined;
618
615
  };
616
+ schema_version: string;
617
+ sdk_name: string;
618
+ sdk_version: string;
619
619
  occurred_at: string;
620
620
  payload: {
621
621
  message: string;
@@ -631,17 +631,17 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
631
631
  user_id_hash: string | null;
632
632
  } | undefined;
633
633
  }, {
634
- schema_version: string;
635
634
  event_id: string;
636
635
  event_type: "log_event";
637
- sdk_name: string;
638
- sdk_version: string;
639
636
  service: {
640
637
  name: string;
641
638
  environment: string;
642
639
  runtime?: string | null | undefined;
643
640
  framework?: string | null | undefined;
644
641
  };
642
+ schema_version: string;
643
+ sdk_name: string;
644
+ sdk_version: string;
645
645
  occurred_at: string;
646
646
  payload: {
647
647
  message: string;
@@ -703,30 +703,30 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
703
703
  route: z.ZodOptional<z.ZodNullable<z.ZodString>>;
704
704
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
705
705
  }, "strict", z.ZodTypeAny, {
706
+ breadcrumb_type: "network_request" | "route_change" | "click" | "form_submit" | "console_log";
706
707
  data: Record<string, unknown>;
707
- breadcrumb_type: "route_change" | "click" | "form_submit" | "console_log" | "network_request";
708
708
  route?: string | null | undefined;
709
709
  }, {
710
+ breadcrumb_type: "network_request" | "route_change" | "click" | "form_submit" | "console_log";
710
711
  data: Record<string, unknown>;
711
- breadcrumb_type: "route_change" | "click" | "form_submit" | "console_log" | "network_request";
712
712
  route?: string | null | undefined;
713
713
  }>;
714
714
  }, "strict", z.ZodTypeAny, {
715
- schema_version: string;
716
715
  event_id: string;
717
716
  event_type: "frontend_breadcrumb";
718
- sdk_name: string;
719
- sdk_version: string;
720
717
  service: {
721
718
  name: string;
722
719
  environment: string;
723
720
  runtime?: string | null | undefined;
724
721
  framework?: string | null | undefined;
725
722
  };
723
+ schema_version: string;
724
+ sdk_name: string;
725
+ sdk_version: string;
726
726
  occurred_at: string;
727
727
  payload: {
728
+ breadcrumb_type: "network_request" | "route_change" | "click" | "form_submit" | "console_log";
728
729
  data: Record<string, unknown>;
729
- breadcrumb_type: "route_change" | "click" | "form_submit" | "console_log" | "network_request";
730
730
  route?: string | null | undefined;
731
731
  };
732
732
  project_id?: string | null | undefined;
@@ -738,21 +738,21 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
738
738
  user_id_hash: string | null;
739
739
  } | undefined;
740
740
  }, {
741
- schema_version: string;
742
741
  event_id: string;
743
742
  event_type: "frontend_breadcrumb";
744
- sdk_name: string;
745
- sdk_version: string;
746
743
  service: {
747
744
  name: string;
748
745
  environment: string;
749
746
  runtime?: string | null | undefined;
750
747
  framework?: string | null | undefined;
751
748
  };
749
+ schema_version: string;
750
+ sdk_name: string;
751
+ sdk_version: string;
752
752
  occurred_at: string;
753
753
  payload: {
754
+ breadcrumb_type: "network_request" | "route_change" | "click" | "form_submit" | "console_log";
754
755
  data: Record<string, unknown>;
755
- breadcrumb_type: "route_change" | "click" | "form_submit" | "console_log" | "network_request";
756
756
  route?: string | null | undefined;
757
757
  };
758
758
  project_id?: string | null | undefined;
@@ -814,11 +814,11 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
814
814
  name: z.ZodString;
815
815
  version: z.ZodString;
816
816
  }, "strip", z.ZodTypeAny, {
817
- name: string;
818
817
  version: string;
819
- }, {
820
818
  name: string;
819
+ }, {
821
820
  version: string;
821
+ name: string;
822
822
  }>;
823
823
  breadcrumbs: z.ZodOptional<z.ZodArray<z.ZodObject<{
824
824
  breadcrumb_type: z.ZodEnum<["route_change", "click", "form_submit", "console_log", "network_request"]>;
@@ -827,13 +827,13 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
827
827
  } & {
828
828
  ts: z.ZodString;
829
829
  }, "strict", z.ZodTypeAny, {
830
+ breadcrumb_type: "network_request" | "route_change" | "click" | "form_submit" | "console_log";
830
831
  data: Record<string, unknown>;
831
- breadcrumb_type: "route_change" | "click" | "form_submit" | "console_log" | "network_request";
832
832
  ts: string;
833
833
  route?: string | null | undefined;
834
834
  }, {
835
+ breadcrumb_type: "network_request" | "route_change" | "click" | "form_submit" | "console_log";
835
836
  data: Record<string, unknown>;
836
- breadcrumb_type: "route_change" | "click" | "form_submit" | "console_log" | "network_request";
837
837
  ts: string;
838
838
  route?: string | null | undefined;
839
839
  }>, "many">>;
@@ -843,11 +843,11 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
843
843
  name: z.ZodNullable<z.ZodString>;
844
844
  version: z.ZodNullable<z.ZodString>;
845
845
  }, "strip", z.ZodTypeAny, {
846
- name: string | null;
847
846
  version: string | null;
848
- }, {
849
847
  name: string | null;
848
+ }, {
850
849
  version: string | null;
850
+ name: string | null;
851
851
  }>;
852
852
  device_type: z.ZodEnum<["desktop", "mobile", "tablet", "unknown"]>;
853
853
  screen: z.ZodObject<{
@@ -878,8 +878,8 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
878
878
  }, "strict", z.ZodTypeAny, {
879
879
  user_agent: string | null;
880
880
  os: {
881
- name: string | null;
882
881
  version: string | null;
882
+ name: string | null;
883
883
  };
884
884
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
885
885
  screen: {
@@ -898,8 +898,8 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
898
898
  }, {
899
899
  user_agent: string | null;
900
900
  os: {
901
- name: string | null;
902
901
  version: string | null;
902
+ name: string | null;
903
903
  };
904
904
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
905
905
  screen: {
@@ -916,6 +916,46 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
916
916
  connection_type: string | null;
917
917
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
918
918
  }>>>;
919
+ browser_event: z.ZodOptional<z.ZodObject<{
920
+ kind: z.ZodEnum<["window_error", "resource_error"]>;
921
+ message: z.ZodNullable<z.ZodString>;
922
+ file_name: z.ZodNullable<z.ZodString>;
923
+ line_number: z.ZodNullable<z.ZodNumber>;
924
+ column_number: z.ZodNullable<z.ZodNumber>;
925
+ target: z.ZodNullable<z.ZodObject<{
926
+ tag_name: z.ZodNullable<z.ZodString>;
927
+ source_url: z.ZodNullable<z.ZodString>;
928
+ }, "strip", z.ZodTypeAny, {
929
+ source_url: string | null;
930
+ tag_name: string | null;
931
+ }, {
932
+ source_url: string | null;
933
+ tag_name: string | null;
934
+ }>>;
935
+ opaque: z.ZodBoolean;
936
+ }, "strict", z.ZodTypeAny, {
937
+ message: string | null;
938
+ target: {
939
+ source_url: string | null;
940
+ tag_name: string | null;
941
+ } | null;
942
+ kind: "window_error" | "resource_error";
943
+ file_name: string | null;
944
+ line_number: number | null;
945
+ column_number: number | null;
946
+ opaque: boolean;
947
+ }, {
948
+ message: string | null;
949
+ target: {
950
+ source_url: string | null;
951
+ tag_name: string | null;
952
+ } | null;
953
+ kind: "window_error" | "resource_error";
954
+ file_name: string | null;
955
+ line_number: number | null;
956
+ column_number: number | null;
957
+ opaque: boolean;
958
+ }>>;
919
959
  dom_context: z.ZodOptional<z.ZodNullable<z.ZodObject<{
920
960
  mode: z.ZodLiteral<"lightweight">;
921
961
  html_excerpt: z.ZodString;
@@ -934,62 +974,74 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
934
974
  timestamp: z.ZodString;
935
975
  activation_id: z.ZodNullable<z.ZodString>;
936
976
  }, "strict", z.ZodTypeAny, {
937
- label: string;
938
977
  data: Record<string, unknown>;
978
+ label: string;
939
979
  timestamp: string;
940
980
  activation_id: string | null;
941
981
  }, {
942
- label: string;
943
982
  data: Record<string, unknown>;
983
+ label: string;
944
984
  timestamp: string;
945
985
  activation_id: string | null;
946
986
  }>, "many">;
947
987
  }, "strict", z.ZodTypeAny, {
948
988
  version: 1;
949
989
  items: {
950
- label: string;
951
990
  data: Record<string, unknown>;
991
+ label: string;
952
992
  timestamp: string;
953
993
  activation_id: string | null;
954
994
  }[];
955
995
  }, {
956
996
  version: 1;
957
997
  items: {
958
- label: string;
959
998
  data: Record<string, unknown>;
999
+ label: string;
960
1000
  timestamp: string;
961
1001
  activation_id: string | null;
962
1002
  }[];
963
1003
  }>>;
964
1004
  }, "strict", z.ZodTypeAny, {
965
1005
  message: string;
966
- name: string;
967
- stack: string;
968
1006
  browser: {
969
- name: string;
970
1007
  version: string;
1008
+ name: string;
971
1009
  };
1010
+ name: string;
1011
+ stack: string;
1012
+ browser_event?: {
1013
+ message: string | null;
1014
+ target: {
1015
+ source_url: string | null;
1016
+ tag_name: string | null;
1017
+ } | null;
1018
+ kind: "window_error" | "resource_error";
1019
+ file_name: string | null;
1020
+ line_number: number | null;
1021
+ column_number: number | null;
1022
+ opaque: boolean;
1023
+ } | undefined;
972
1024
  probe_data?: {
973
1025
  version: 1;
974
1026
  items: {
975
- label: string;
976
1027
  data: Record<string, unknown>;
1028
+ label: string;
977
1029
  timestamp: string;
978
1030
  activation_id: string | null;
979
1031
  }[];
980
1032
  } | undefined;
981
1033
  route?: string | null | undefined;
982
1034
  breadcrumbs?: {
1035
+ breadcrumb_type: "network_request" | "route_change" | "click" | "form_submit" | "console_log";
983
1036
  data: Record<string, unknown>;
984
- breadcrumb_type: "route_change" | "click" | "form_submit" | "console_log" | "network_request";
985
1037
  ts: string;
986
1038
  route?: string | null | undefined;
987
1039
  }[] | undefined;
988
1040
  device?: {
989
1041
  user_agent: string | null;
990
1042
  os: {
991
- name: string | null;
992
1043
  version: string | null;
1044
+ name: string | null;
993
1045
  };
994
1046
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
995
1047
  screen: {
@@ -1012,33 +1064,45 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1012
1064
  } | null | undefined;
1013
1065
  }, {
1014
1066
  message: string;
1015
- name: string;
1016
- stack: string;
1017
1067
  browser: {
1018
- name: string;
1019
1068
  version: string;
1069
+ name: string;
1020
1070
  };
1071
+ name: string;
1072
+ stack: string;
1073
+ browser_event?: {
1074
+ message: string | null;
1075
+ target: {
1076
+ source_url: string | null;
1077
+ tag_name: string | null;
1078
+ } | null;
1079
+ kind: "window_error" | "resource_error";
1080
+ file_name: string | null;
1081
+ line_number: number | null;
1082
+ column_number: number | null;
1083
+ opaque: boolean;
1084
+ } | undefined;
1021
1085
  probe_data?: {
1022
1086
  version: 1;
1023
1087
  items: {
1024
- label: string;
1025
1088
  data: Record<string, unknown>;
1089
+ label: string;
1026
1090
  timestamp: string;
1027
1091
  activation_id: string | null;
1028
1092
  }[];
1029
1093
  } | undefined;
1030
1094
  route?: string | null | undefined;
1031
1095
  breadcrumbs?: {
1096
+ breadcrumb_type: "network_request" | "route_change" | "click" | "form_submit" | "console_log";
1032
1097
  data: Record<string, unknown>;
1033
- breadcrumb_type: "route_change" | "click" | "form_submit" | "console_log" | "network_request";
1034
1098
  ts: string;
1035
1099
  route?: string | null | undefined;
1036
1100
  }[] | undefined;
1037
1101
  device?: {
1038
1102
  user_agent: string | null;
1039
1103
  os: {
1040
- name: string | null;
1041
1104
  version: string | null;
1105
+ name: string | null;
1042
1106
  };
1043
1107
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
1044
1108
  screen: {
@@ -1061,47 +1125,59 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1061
1125
  } | null | undefined;
1062
1126
  }>;
1063
1127
  }, "strict", z.ZodTypeAny, {
1064
- schema_version: string;
1065
1128
  event_id: string;
1066
1129
  event_type: "frontend_exception";
1067
- sdk_name: string;
1068
- sdk_version: string;
1069
1130
  service: {
1070
1131
  name: string;
1071
1132
  environment: string;
1072
1133
  runtime?: string | null | undefined;
1073
1134
  framework?: string | null | undefined;
1074
1135
  };
1136
+ schema_version: string;
1137
+ sdk_name: string;
1138
+ sdk_version: string;
1075
1139
  occurred_at: string;
1076
1140
  payload: {
1077
1141
  message: string;
1078
- name: string;
1079
- stack: string;
1080
1142
  browser: {
1081
- name: string;
1082
1143
  version: string;
1144
+ name: string;
1083
1145
  };
1146
+ name: string;
1147
+ stack: string;
1148
+ browser_event?: {
1149
+ message: string | null;
1150
+ target: {
1151
+ source_url: string | null;
1152
+ tag_name: string | null;
1153
+ } | null;
1154
+ kind: "window_error" | "resource_error";
1155
+ file_name: string | null;
1156
+ line_number: number | null;
1157
+ column_number: number | null;
1158
+ opaque: boolean;
1159
+ } | undefined;
1084
1160
  probe_data?: {
1085
1161
  version: 1;
1086
1162
  items: {
1087
- label: string;
1088
1163
  data: Record<string, unknown>;
1164
+ label: string;
1089
1165
  timestamp: string;
1090
1166
  activation_id: string | null;
1091
1167
  }[];
1092
1168
  } | undefined;
1093
1169
  route?: string | null | undefined;
1094
1170
  breadcrumbs?: {
1171
+ breadcrumb_type: "network_request" | "route_change" | "click" | "form_submit" | "console_log";
1095
1172
  data: Record<string, unknown>;
1096
- breadcrumb_type: "route_change" | "click" | "form_submit" | "console_log" | "network_request";
1097
1173
  ts: string;
1098
1174
  route?: string | null | undefined;
1099
1175
  }[] | undefined;
1100
1176
  device?: {
1101
1177
  user_agent: string | null;
1102
1178
  os: {
1103
- name: string | null;
1104
1179
  version: string | null;
1180
+ name: string | null;
1105
1181
  };
1106
1182
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
1107
1183
  screen: {
@@ -1132,47 +1208,59 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1132
1208
  user_id_hash: string | null;
1133
1209
  } | undefined;
1134
1210
  }, {
1135
- schema_version: string;
1136
1211
  event_id: string;
1137
1212
  event_type: "frontend_exception";
1138
- sdk_name: string;
1139
- sdk_version: string;
1140
1213
  service: {
1141
1214
  name: string;
1142
1215
  environment: string;
1143
1216
  runtime?: string | null | undefined;
1144
1217
  framework?: string | null | undefined;
1145
1218
  };
1219
+ schema_version: string;
1220
+ sdk_name: string;
1221
+ sdk_version: string;
1146
1222
  occurred_at: string;
1147
1223
  payload: {
1148
1224
  message: string;
1149
- name: string;
1150
- stack: string;
1151
1225
  browser: {
1152
- name: string;
1153
1226
  version: string;
1227
+ name: string;
1154
1228
  };
1229
+ name: string;
1230
+ stack: string;
1231
+ browser_event?: {
1232
+ message: string | null;
1233
+ target: {
1234
+ source_url: string | null;
1235
+ tag_name: string | null;
1236
+ } | null;
1237
+ kind: "window_error" | "resource_error";
1238
+ file_name: string | null;
1239
+ line_number: number | null;
1240
+ column_number: number | null;
1241
+ opaque: boolean;
1242
+ } | undefined;
1155
1243
  probe_data?: {
1156
1244
  version: 1;
1157
1245
  items: {
1158
- label: string;
1159
1246
  data: Record<string, unknown>;
1247
+ label: string;
1160
1248
  timestamp: string;
1161
1249
  activation_id: string | null;
1162
1250
  }[];
1163
1251
  } | undefined;
1164
1252
  route?: string | null | undefined;
1165
1253
  breadcrumbs?: {
1254
+ breadcrumb_type: "network_request" | "route_change" | "click" | "form_submit" | "console_log";
1166
1255
  data: Record<string, unknown>;
1167
- breadcrumb_type: "route_change" | "click" | "form_submit" | "console_log" | "network_request";
1168
1256
  ts: string;
1169
1257
  route?: string | null | undefined;
1170
1258
  }[] | undefined;
1171
1259
  device?: {
1172
1260
  user_agent: string | null;
1173
1261
  os: {
1174
- name: string | null;
1175
1262
  version: string | null;
1263
+ name: string | null;
1176
1264
  };
1177
1265
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
1178
1266
  screen: {
@@ -1251,34 +1339,34 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1251
1339
  environment: z.ZodString;
1252
1340
  deployed_at: z.ZodString;
1253
1341
  }, "strict", z.ZodTypeAny, {
1254
- environment: string;
1255
1342
  version: string;
1343
+ environment: string;
1256
1344
  commit_sha: string;
1257
1345
  branch: string;
1258
1346
  deployed_at: string;
1259
1347
  }, {
1260
- environment: string;
1261
1348
  version: string;
1349
+ environment: string;
1262
1350
  commit_sha: string;
1263
1351
  branch: string;
1264
1352
  deployed_at: string;
1265
1353
  }>;
1266
1354
  }, "strict", z.ZodTypeAny, {
1267
- schema_version: string;
1268
1355
  event_id: string;
1269
1356
  event_type: "deploy_metadata";
1270
- sdk_name: string;
1271
- sdk_version: string;
1272
1357
  service: {
1273
1358
  name: string;
1274
1359
  environment: string;
1275
1360
  runtime?: string | null | undefined;
1276
1361
  framework?: string | null | undefined;
1277
1362
  };
1363
+ schema_version: string;
1364
+ sdk_name: string;
1365
+ sdk_version: string;
1278
1366
  occurred_at: string;
1279
1367
  payload: {
1280
- environment: string;
1281
1368
  version: string;
1369
+ environment: string;
1282
1370
  commit_sha: string;
1283
1371
  branch: string;
1284
1372
  deployed_at: string;
@@ -1292,21 +1380,21 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1292
1380
  user_id_hash: string | null;
1293
1381
  } | undefined;
1294
1382
  }, {
1295
- schema_version: string;
1296
1383
  event_id: string;
1297
1384
  event_type: "deploy_metadata";
1298
- sdk_name: string;
1299
- sdk_version: string;
1300
1385
  service: {
1301
1386
  name: string;
1302
1387
  environment: string;
1303
1388
  runtime?: string | null | undefined;
1304
1389
  framework?: string | null | undefined;
1305
1390
  };
1391
+ schema_version: string;
1392
+ sdk_name: string;
1393
+ sdk_version: string;
1306
1394
  occurred_at: string;
1307
1395
  payload: {
1308
- environment: string;
1309
1396
  version: string;
1397
+ environment: string;
1310
1398
  commit_sha: string;
1311
1399
  branch: string;
1312
1400
  deployed_at: string;
@@ -1381,17 +1469,17 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1381
1469
  last_seen: string;
1382
1470
  }>;
1383
1471
  }, "strict", z.ZodTypeAny, {
1384
- schema_version: string;
1385
1472
  event_id: string;
1386
1473
  event_type: "error_suppressed";
1387
- sdk_name: string;
1388
- sdk_version: string;
1389
1474
  service: {
1390
1475
  name: string;
1391
1476
  environment: string;
1392
1477
  runtime?: string | null | undefined;
1393
1478
  framework?: string | null | undefined;
1394
1479
  };
1480
+ schema_version: string;
1481
+ sdk_name: string;
1482
+ sdk_version: string;
1395
1483
  occurred_at: string;
1396
1484
  payload: {
1397
1485
  fingerprint: string;
@@ -1409,17 +1497,17 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1409
1497
  user_id_hash: string | null;
1410
1498
  } | undefined;
1411
1499
  }, {
1412
- schema_version: string;
1413
1500
  event_id: string;
1414
1501
  event_type: "error_suppressed";
1415
- sdk_name: string;
1416
- sdk_version: string;
1417
1502
  service: {
1418
1503
  name: string;
1419
1504
  environment: string;
1420
1505
  runtime?: string | null | undefined;
1421
1506
  framework?: string | null | undefined;
1422
1507
  };
1508
+ schema_version: string;
1509
+ sdk_name: string;
1510
+ sdk_version: string;
1423
1511
  occurred_at: string;
1424
1512
  payload: {
1425
1513
  fingerprint: string;
@@ -1484,32 +1572,32 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1484
1572
  activation_id: z.ZodNullable<z.ZodString>;
1485
1573
  probe_label_pattern: z.ZodString;
1486
1574
  }, "strict", z.ZodTypeAny, {
1487
- label: string;
1488
1575
  data: Record<string, unknown>;
1576
+ label: string;
1489
1577
  activation_id: string | null;
1490
1578
  probe_label_pattern: string;
1491
1579
  }, {
1492
- label: string;
1493
1580
  data: Record<string, unknown>;
1581
+ label: string;
1494
1582
  activation_id: string | null;
1495
1583
  probe_label_pattern: string;
1496
1584
  }>;
1497
1585
  }, "strict", z.ZodTypeAny, {
1498
- schema_version: string;
1499
1586
  event_id: string;
1500
1587
  event_type: "probe_event";
1501
- sdk_name: string;
1502
- sdk_version: string;
1503
1588
  service: {
1504
1589
  name: string;
1505
1590
  environment: string;
1506
1591
  runtime?: string | null | undefined;
1507
1592
  framework?: string | null | undefined;
1508
1593
  };
1594
+ schema_version: string;
1595
+ sdk_name: string;
1596
+ sdk_version: string;
1509
1597
  occurred_at: string;
1510
1598
  payload: {
1511
- label: string;
1512
1599
  data: Record<string, unknown>;
1600
+ label: string;
1513
1601
  activation_id: string | null;
1514
1602
  probe_label_pattern: string;
1515
1603
  };
@@ -1522,21 +1610,21 @@ export declare const EventEnvelopeSchema: z.ZodDiscriminatedUnion<"event_type",
1522
1610
  user_id_hash: string | null;
1523
1611
  } | undefined;
1524
1612
  }, {
1525
- schema_version: string;
1526
1613
  event_id: string;
1527
1614
  event_type: "probe_event";
1528
- sdk_name: string;
1529
- sdk_version: string;
1530
1615
  service: {
1531
1616
  name: string;
1532
1617
  environment: string;
1533
1618
  runtime?: string | null | undefined;
1534
1619
  framework?: string | null | undefined;
1535
1620
  };
1621
+ schema_version: string;
1622
+ sdk_name: string;
1623
+ sdk_version: string;
1536
1624
  occurred_at: string;
1537
1625
  payload: {
1538
- label: string;
1539
1626
  data: Record<string, unknown>;
1627
+ label: string;
1540
1628
  activation_id: string | null;
1541
1629
  probe_label_pattern: string;
1542
1630
  };
@@ -1561,23 +1649,23 @@ export declare const BundleV1Schema: z.ZodObject<{
1561
1649
  name: z.ZodString;
1562
1650
  version: z.ZodString;
1563
1651
  }, "strip", z.ZodTypeAny, {
1564
- name: string;
1565
1652
  version: string;
1566
- }, {
1567
1653
  name: string;
1654
+ }, {
1568
1655
  version: string;
1656
+ name: string;
1569
1657
  }>;
1570
1658
  project: z.ZodObject<{
1571
1659
  id: z.ZodString;
1572
1660
  slug: z.ZodString;
1573
1661
  environment: z.ZodString;
1574
1662
  }, "strip", z.ZodTypeAny, {
1575
- environment: string;
1576
1663
  id: string;
1664
+ environment: string;
1577
1665
  slug: string;
1578
1666
  }, {
1579
- environment: string;
1580
1667
  id: string;
1668
+ environment: string;
1581
1669
  slug: string;
1582
1670
  }>;
1583
1671
  service: z.ZodObject<{
@@ -1588,18 +1676,18 @@ export declare const BundleV1Schema: z.ZodObject<{
1588
1676
  version: z.ZodNullable<z.ZodString>;
1589
1677
  region: z.ZodNullable<z.ZodString>;
1590
1678
  }, "strip", z.ZodTypeAny, {
1591
- name: string;
1592
- runtime: string | null;
1593
- framework: string | null;
1594
1679
  version: string | null;
1680
+ runtime: string | null;
1681
+ name: string;
1595
1682
  id: string;
1683
+ framework: string | null;
1596
1684
  region: string | null;
1597
1685
  }, {
1598
- name: string;
1599
- runtime: string | null;
1600
- framework: string | null;
1601
1686
  version: string | null;
1687
+ runtime: string | null;
1688
+ name: string;
1602
1689
  id: string;
1690
+ framework: string | null;
1603
1691
  region: string | null;
1604
1692
  }>;
1605
1693
  signal: z.ZodObject<{
@@ -1615,7 +1703,7 @@ export declare const BundleV1Schema: z.ZodObject<{
1615
1703
  fingerprint: string;
1616
1704
  signal_id: string;
1617
1705
  signal_type: "warning" | "frontend_exception" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
1618
- severity: "critical" | "low" | "medium" | "high";
1706
+ severity: "critical" | "high" | "medium" | "low";
1619
1707
  first_seen_at: string;
1620
1708
  last_seen_at: string;
1621
1709
  occurrence_count: number;
@@ -1624,7 +1712,7 @@ export declare const BundleV1Schema: z.ZodObject<{
1624
1712
  fingerprint: string;
1625
1713
  signal_id: string;
1626
1714
  signal_type: "warning" | "frontend_exception" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
1627
- severity: "critical" | "low" | "medium" | "high";
1715
+ severity: "critical" | "high" | "medium" | "low";
1628
1716
  first_seen_at: string;
1629
1717
  last_seen_at: string;
1630
1718
  occurrence_count: number;
@@ -1667,12 +1755,12 @@ export declare const BundleV1Schema: z.ZodObject<{
1667
1755
  customer_visible: boolean;
1668
1756
  }>;
1669
1757
  }, "strip", z.ZodTypeAny, {
1670
- severity: "critical" | "low" | "medium" | "high";
1671
- title: string;
1672
1758
  description: string;
1673
- likely_cause: string | null;
1674
- confidence: number;
1675
1759
  recommended_action: string | null;
1760
+ confidence: number;
1761
+ severity: "critical" | "high" | "medium" | "low";
1762
+ title: string;
1763
+ likely_cause: string | null;
1676
1764
  error_type: string | null;
1677
1765
  error_message: string | null;
1678
1766
  first_application_frame: {
@@ -1687,12 +1775,12 @@ export declare const BundleV1Schema: z.ZodObject<{
1687
1775
  customer_visible: boolean;
1688
1776
  };
1689
1777
  }, {
1690
- severity: "critical" | "low" | "medium" | "high";
1691
- title: string;
1692
1778
  description: string;
1693
- likely_cause: string | null;
1694
- confidence: number;
1695
1779
  recommended_action: string | null;
1780
+ confidence: number;
1781
+ severity: "critical" | "high" | "medium" | "low";
1782
+ title: string;
1783
+ likely_cause: string | null;
1696
1784
  error_type: string | null;
1697
1785
  error_message: string | null;
1698
1786
  first_application_frame: {
@@ -1718,13 +1806,13 @@ export declare const BundleV1Schema: z.ZodObject<{
1718
1806
  customer_visible: boolean;
1719
1807
  affected_users_estimate: number | null;
1720
1808
  affected_requests_estimate: number | null;
1721
- business_criticality: "critical" | "low" | "medium" | "high";
1809
+ business_criticality: "critical" | "high" | "medium" | "low";
1722
1810
  }, {
1723
1811
  regression_suspected: boolean;
1724
1812
  customer_visible: boolean;
1725
1813
  affected_users_estimate: number | null;
1726
1814
  affected_requests_estimate: number | null;
1727
- business_criticality: "critical" | "low" | "medium" | "high";
1815
+ business_criticality: "critical" | "high" | "medium" | "low";
1728
1816
  }>;
1729
1817
  context: z.ZodObject<{
1730
1818
  error: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodObject<{
@@ -1736,15 +1824,15 @@ export declare const BundleV1Schema: z.ZodObject<{
1736
1824
  top_frames: z.ZodArray<z.ZodString, "many">;
1737
1825
  }, "strip", z.ZodTypeAny, {
1738
1826
  message: string;
1739
- name: string;
1740
1827
  version: 1;
1828
+ name: string;
1741
1829
  stack: string;
1742
1830
  handled: boolean;
1743
1831
  top_frames: string[];
1744
1832
  }, {
1745
1833
  message: string;
1746
- name: string;
1747
1834
  version: 1;
1835
+ name: string;
1748
1836
  stack: string;
1749
1837
  handled: boolean;
1750
1838
  top_frames: string[];
@@ -1760,20 +1848,20 @@ export declare const BundleV1Schema: z.ZodObject<{
1760
1848
  request_id: z.ZodNullable<z.ZodString>;
1761
1849
  }, "strip", z.ZodTypeAny, {
1762
1850
  path: string;
1763
- request_id: string | null;
1764
1851
  version: 1;
1852
+ headers: Record<string, unknown>;
1853
+ request_id: string | null;
1765
1854
  method: string;
1766
1855
  query: Record<string, unknown>;
1767
- headers: Record<string, unknown>;
1768
1856
  route_template: string | null;
1769
1857
  body?: unknown;
1770
1858
  }, {
1771
1859
  path: string;
1772
- request_id: string | null;
1773
1860
  version: 1;
1861
+ headers: Record<string, unknown>;
1862
+ request_id: string | null;
1774
1863
  method: string;
1775
1864
  query: Record<string, unknown>;
1776
- headers: Record<string, unknown>;
1777
1865
  route_template: string | null;
1778
1866
  body?: unknown;
1779
1867
  }>>>;
@@ -1886,9 +1974,9 @@ export declare const BundleV1Schema: z.ZodObject<{
1886
1974
  response_content_length: z.ZodOptional<z.ZodNumber>;
1887
1975
  }, "strip", z.ZodTypeAny, {
1888
1976
  status: number;
1977
+ url: string;
1889
1978
  method: string;
1890
1979
  ts: string;
1891
- url: string;
1892
1980
  duration_ms?: number | undefined;
1893
1981
  response_headers?: Record<string, string> | undefined;
1894
1982
  response_body?: unknown;
@@ -1897,9 +1985,9 @@ export declare const BundleV1Schema: z.ZodObject<{
1897
1985
  response_content_length?: number | undefined;
1898
1986
  }, {
1899
1987
  status: number;
1988
+ url: string;
1900
1989
  method: string;
1901
1990
  ts: string;
1902
- url: string;
1903
1991
  duration_ms?: number | undefined;
1904
1992
  response_headers?: Record<string, string> | undefined;
1905
1993
  response_body?: unknown;
@@ -1942,9 +2030,9 @@ export declare const BundleV1Schema: z.ZodObject<{
1942
2030
  console_logs: unknown[];
1943
2031
  network_requests: {
1944
2032
  status: number;
2033
+ url: string;
1945
2034
  method: string;
1946
2035
  ts: string;
1947
- url: string;
1948
2036
  duration_ms?: number | undefined;
1949
2037
  response_headers?: Record<string, string> | undefined;
1950
2038
  response_body?: unknown;
@@ -1977,9 +2065,9 @@ export declare const BundleV1Schema: z.ZodObject<{
1977
2065
  console_logs: unknown[];
1978
2066
  network_requests: {
1979
2067
  status: number;
2068
+ url: string;
1980
2069
  method: string;
1981
2070
  ts: string;
1982
- url: string;
1983
2071
  duration_ms?: number | undefined;
1984
2072
  response_headers?: Record<string, string> | undefined;
1985
2073
  response_body?: unknown;
@@ -1995,14 +2083,14 @@ export declare const BundleV1Schema: z.ZodObject<{
1995
2083
  host: z.ZodNullable<z.ZodString>;
1996
2084
  container_id: z.ZodNullable<z.ZodString>;
1997
2085
  }, "strip", z.ZodTypeAny, {
2086
+ host: string | null;
1998
2087
  version: 1;
1999
2088
  os: string | null;
2000
- host: string | null;
2001
2089
  container_id: string | null;
2002
2090
  }, {
2091
+ host: string | null;
2003
2092
  version: 1;
2004
2093
  os: string | null;
2005
- host: string | null;
2006
2094
  container_id: string | null;
2007
2095
  }>>>;
2008
2096
  deploy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
@@ -2061,9 +2149,9 @@ export declare const BundleV1Schema: z.ZodObject<{
2061
2149
  }>>;
2062
2150
  framework_extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2063
2151
  }, "strip", z.ZodTypeAny, {
2152
+ version: 1;
2064
2153
  name: string;
2065
2154
  framework: string | null;
2066
- version: 1;
2067
2155
  platform: string | null;
2068
2156
  arch: string | null;
2069
2157
  pid: number | null;
@@ -2082,9 +2170,9 @@ export declare const BundleV1Schema: z.ZodObject<{
2082
2170
  runtime_version: string | null;
2083
2171
  framework_extras?: Record<string, unknown> | null | undefined;
2084
2172
  }, {
2173
+ version: 1;
2085
2174
  name: string;
2086
2175
  framework: string | null;
2087
- version: 1;
2088
2176
  platform: string | null;
2089
2177
  arch: string | null;
2090
2178
  pid: number | null;
@@ -2135,25 +2223,25 @@ export declare const BundleV1Schema: z.ZodObject<{
2135
2223
  status: z.ZodEnum<["ok", "degraded", "failed", "unknown"]>;
2136
2224
  notes: z.ZodNullable<z.ZodString>;
2137
2225
  }, "strip", z.ZodTypeAny, {
2138
- status: "unknown" | "ok" | "degraded" | "failed";
2226
+ status: "unknown" | "failed" | "ok" | "degraded";
2139
2227
  name: string;
2140
2228
  notes: string | null;
2141
2229
  }, {
2142
- status: "unknown" | "ok" | "degraded" | "failed";
2230
+ status: "unknown" | "failed" | "ok" | "degraded";
2143
2231
  name: string;
2144
2232
  notes: string | null;
2145
2233
  }>, "many">;
2146
2234
  }, "strip", z.ZodTypeAny, {
2147
2235
  version: 1;
2148
2236
  items: {
2149
- status: "unknown" | "ok" | "degraded" | "failed";
2237
+ status: "unknown" | "failed" | "ok" | "degraded";
2150
2238
  name: string;
2151
2239
  notes: string | null;
2152
2240
  }[];
2153
2241
  }, {
2154
2242
  version: 1;
2155
2243
  items: {
2156
- status: "unknown" | "ok" | "degraded" | "failed";
2244
+ status: "unknown" | "failed" | "ok" | "degraded";
2157
2245
  name: string;
2158
2246
  notes: string | null;
2159
2247
  }[];
@@ -2166,29 +2254,29 @@ export declare const BundleV1Schema: z.ZodObject<{
2166
2254
  timestamp: z.ZodString;
2167
2255
  activation_id: z.ZodNullable<z.ZodString>;
2168
2256
  }, "strip", z.ZodTypeAny, {
2169
- label: string;
2170
2257
  data: Record<string, unknown>;
2258
+ label: string;
2171
2259
  timestamp: string;
2172
2260
  activation_id: string | null;
2173
2261
  }, {
2174
- label: string;
2175
2262
  data: Record<string, unknown>;
2263
+ label: string;
2176
2264
  timestamp: string;
2177
2265
  activation_id: string | null;
2178
2266
  }>, "many">;
2179
2267
  }, "strip", z.ZodTypeAny, {
2180
2268
  version: 1;
2181
2269
  items: {
2182
- label: string;
2183
2270
  data: Record<string, unknown>;
2271
+ label: string;
2184
2272
  timestamp: string;
2185
2273
  activation_id: string | null;
2186
2274
  }[];
2187
2275
  }, {
2188
2276
  version: 1;
2189
2277
  items: {
2190
- label: string;
2191
2278
  data: Record<string, unknown>;
2279
+ label: string;
2192
2280
  timestamp: string;
2193
2281
  activation_id: string | null;
2194
2282
  }[];
@@ -2200,21 +2288,21 @@ export declare const BundleV1Schema: z.ZodObject<{
2200
2288
  name: z.ZodNullable<z.ZodString>;
2201
2289
  version: z.ZodNullable<z.ZodString>;
2202
2290
  }, "strip", z.ZodTypeAny, {
2203
- name: string | null;
2204
2291
  version: string | null;
2205
- }, {
2206
2292
  name: string | null;
2293
+ }, {
2207
2294
  version: string | null;
2295
+ name: string | null;
2208
2296
  }>;
2209
2297
  os: z.ZodObject<{
2210
2298
  name: z.ZodNullable<z.ZodString>;
2211
2299
  version: z.ZodNullable<z.ZodString>;
2212
2300
  }, "strip", z.ZodTypeAny, {
2213
- name: string | null;
2214
2301
  version: string | null;
2215
- }, {
2216
2302
  name: string | null;
2303
+ }, {
2217
2304
  version: string | null;
2305
+ name: string | null;
2218
2306
  }>;
2219
2307
  device_type: z.ZodEnum<["desktop", "mobile", "tablet", "unknown"]>;
2220
2308
  screen: z.ZodObject<{
@@ -2243,11 +2331,15 @@ export declare const BundleV1Schema: z.ZodObject<{
2243
2331
  connection_type: z.ZodNullable<z.ZodString>;
2244
2332
  color_scheme_preference: z.ZodNullable<z.ZodEnum<["light", "dark", "no-preference"]>>;
2245
2333
  }, "strip", z.ZodTypeAny, {
2334
+ browser: {
2335
+ version: string | null;
2336
+ name: string | null;
2337
+ };
2246
2338
  version: 1;
2247
2339
  user_agent: string | null;
2248
2340
  os: {
2249
- name: string | null;
2250
2341
  version: string | null;
2342
+ name: string | null;
2251
2343
  };
2252
2344
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
2253
2345
  screen: {
@@ -2263,16 +2355,16 @@ export declare const BundleV1Schema: z.ZodObject<{
2263
2355
  language: string | null;
2264
2356
  connection_type: string | null;
2265
2357
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
2358
+ }, {
2266
2359
  browser: {
2267
- name: string | null;
2268
2360
  version: string | null;
2361
+ name: string | null;
2269
2362
  };
2270
- }, {
2271
2363
  version: 1;
2272
2364
  user_agent: string | null;
2273
2365
  os: {
2274
- name: string | null;
2275
2366
  version: string | null;
2367
+ name: string | null;
2276
2368
  };
2277
2369
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
2278
2370
  screen: {
@@ -2288,24 +2380,20 @@ export declare const BundleV1Schema: z.ZodObject<{
2288
2380
  language: string | null;
2289
2381
  connection_type: string | null;
2290
2382
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
2291
- browser: {
2292
- name: string | null;
2293
- version: string | null;
2294
- };
2295
2383
  }>>>;
2296
2384
  }, "strip", z.ZodTypeAny, {
2297
2385
  error?: {
2298
2386
  message: string;
2299
- name: string;
2300
2387
  version: 1;
2388
+ name: string;
2301
2389
  stack: string;
2302
2390
  handled: boolean;
2303
2391
  top_frames: string[];
2304
2392
  } | null | undefined;
2305
2393
  runtime?: {
2394
+ version: 1;
2306
2395
  name: string;
2307
2396
  framework: string | null;
2308
- version: 1;
2309
2397
  platform: string | null;
2310
2398
  arch: string | null;
2311
2399
  pid: number | null;
@@ -2325,18 +2413,18 @@ export declare const BundleV1Schema: z.ZodObject<{
2325
2413
  framework_extras?: Record<string, unknown> | null | undefined;
2326
2414
  } | null | undefined;
2327
2415
  environment?: {
2416
+ host: string | null;
2328
2417
  version: 1;
2329
2418
  os: string | null;
2330
- host: string | null;
2331
2419
  container_id: string | null;
2332
2420
  } | null | undefined;
2333
2421
  request?: {
2334
2422
  path: string;
2335
- request_id: string | null;
2336
2423
  version: 1;
2424
+ headers: Record<string, unknown>;
2425
+ request_id: string | null;
2337
2426
  method: string;
2338
2427
  query: Record<string, unknown>;
2339
- headers: Record<string, unknown>;
2340
2428
  route_template: string | null;
2341
2429
  body?: unknown;
2342
2430
  } | null | undefined;
@@ -2350,18 +2438,22 @@ export declare const BundleV1Schema: z.ZodObject<{
2350
2438
  probe_data?: {
2351
2439
  version: 1;
2352
2440
  items: {
2353
- label: string;
2354
2441
  data: Record<string, unknown>;
2442
+ label: string;
2355
2443
  timestamp: string;
2356
2444
  activation_id: string | null;
2357
2445
  }[];
2358
2446
  } | null | undefined;
2359
2447
  device?: {
2448
+ browser: {
2449
+ version: string | null;
2450
+ name: string | null;
2451
+ };
2360
2452
  version: 1;
2361
2453
  user_agent: string | null;
2362
2454
  os: {
2363
- name: string | null;
2364
2455
  version: string | null;
2456
+ name: string | null;
2365
2457
  };
2366
2458
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
2367
2459
  screen: {
@@ -2377,10 +2469,6 @@ export declare const BundleV1Schema: z.ZodObject<{
2377
2469
  language: string | null;
2378
2470
  connection_type: string | null;
2379
2471
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
2380
- browser: {
2381
- name: string | null;
2382
- version: string | null;
2383
- };
2384
2472
  } | null | undefined;
2385
2473
  logs?: {
2386
2474
  version: 1;
@@ -2415,9 +2503,9 @@ export declare const BundleV1Schema: z.ZodObject<{
2415
2503
  console_logs: unknown[];
2416
2504
  network_requests: {
2417
2505
  status: number;
2506
+ url: string;
2418
2507
  method: string;
2419
2508
  ts: string;
2420
- url: string;
2421
2509
  duration_ms?: number | undefined;
2422
2510
  response_headers?: Record<string, string> | undefined;
2423
2511
  response_body?: unknown;
@@ -2447,7 +2535,7 @@ export declare const BundleV1Schema: z.ZodObject<{
2447
2535
  dependencies?: {
2448
2536
  version: 1;
2449
2537
  items: {
2450
- status: "unknown" | "ok" | "degraded" | "failed";
2538
+ status: "unknown" | "failed" | "ok" | "degraded";
2451
2539
  name: string;
2452
2540
  notes: string | null;
2453
2541
  }[];
@@ -2455,16 +2543,16 @@ export declare const BundleV1Schema: z.ZodObject<{
2455
2543
  }, {
2456
2544
  error?: {
2457
2545
  message: string;
2458
- name: string;
2459
2546
  version: 1;
2547
+ name: string;
2460
2548
  stack: string;
2461
2549
  handled: boolean;
2462
2550
  top_frames: string[];
2463
2551
  } | null | undefined;
2464
2552
  runtime?: {
2553
+ version: 1;
2465
2554
  name: string;
2466
2555
  framework: string | null;
2467
- version: 1;
2468
2556
  platform: string | null;
2469
2557
  arch: string | null;
2470
2558
  pid: number | null;
@@ -2484,18 +2572,18 @@ export declare const BundleV1Schema: z.ZodObject<{
2484
2572
  framework_extras?: Record<string, unknown> | null | undefined;
2485
2573
  } | null | undefined;
2486
2574
  environment?: {
2575
+ host: string | null;
2487
2576
  version: 1;
2488
2577
  os: string | null;
2489
- host: string | null;
2490
2578
  container_id: string | null;
2491
2579
  } | null | undefined;
2492
2580
  request?: {
2493
2581
  path: string;
2494
- request_id: string | null;
2495
2582
  version: 1;
2583
+ headers: Record<string, unknown>;
2584
+ request_id: string | null;
2496
2585
  method: string;
2497
2586
  query: Record<string, unknown>;
2498
- headers: Record<string, unknown>;
2499
2587
  route_template: string | null;
2500
2588
  body?: unknown;
2501
2589
  } | null | undefined;
@@ -2509,18 +2597,22 @@ export declare const BundleV1Schema: z.ZodObject<{
2509
2597
  probe_data?: {
2510
2598
  version: 1;
2511
2599
  items: {
2512
- label: string;
2513
2600
  data: Record<string, unknown>;
2601
+ label: string;
2514
2602
  timestamp: string;
2515
2603
  activation_id: string | null;
2516
2604
  }[];
2517
2605
  } | null | undefined;
2518
2606
  device?: {
2607
+ browser: {
2608
+ version: string | null;
2609
+ name: string | null;
2610
+ };
2519
2611
  version: 1;
2520
2612
  user_agent: string | null;
2521
2613
  os: {
2522
- name: string | null;
2523
2614
  version: string | null;
2615
+ name: string | null;
2524
2616
  };
2525
2617
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
2526
2618
  screen: {
@@ -2536,10 +2628,6 @@ export declare const BundleV1Schema: z.ZodObject<{
2536
2628
  language: string | null;
2537
2629
  connection_type: string | null;
2538
2630
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
2539
- browser: {
2540
- name: string | null;
2541
- version: string | null;
2542
- };
2543
2631
  } | null | undefined;
2544
2632
  logs?: {
2545
2633
  version: 1;
@@ -2574,9 +2662,9 @@ export declare const BundleV1Schema: z.ZodObject<{
2574
2662
  console_logs: unknown[];
2575
2663
  network_requests: {
2576
2664
  status: number;
2665
+ url: string;
2577
2666
  method: string;
2578
2667
  ts: string;
2579
- url: string;
2580
2668
  duration_ms?: number | undefined;
2581
2669
  response_headers?: Record<string, string> | undefined;
2582
2670
  response_body?: unknown;
@@ -2606,7 +2694,7 @@ export declare const BundleV1Schema: z.ZodObject<{
2606
2694
  dependencies?: {
2607
2695
  version: 1;
2608
2696
  items: {
2609
- status: "unknown" | "ok" | "degraded" | "failed";
2697
+ status: "unknown" | "failed" | "ok" | "degraded";
2610
2698
  name: string;
2611
2699
  notes: string | null;
2612
2700
  }[];
@@ -2626,15 +2714,15 @@ export declare const BundleV1Schema: z.ZodObject<{
2626
2714
  query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2627
2715
  body: z.ZodNullable<z.ZodUnknown>;
2628
2716
  }, "strip", z.ZodTypeAny, {
2629
- method: string;
2630
- headers: Record<string, unknown>;
2631
2717
  url: string;
2718
+ headers: Record<string, unknown>;
2719
+ method: string;
2632
2720
  query?: Record<string, unknown> | undefined;
2633
2721
  body?: unknown;
2634
2722
  }, {
2635
- method: string;
2636
- headers: Record<string, unknown>;
2637
2723
  url: string;
2724
+ headers: Record<string, unknown>;
2725
+ method: string;
2638
2726
  query?: Record<string, unknown> | undefined;
2639
2727
  body?: unknown;
2640
2728
  }>>;
@@ -2642,9 +2730,9 @@ export declare const BundleV1Schema: z.ZodObject<{
2642
2730
  curl: string | null;
2643
2731
  httpie: string | null;
2644
2732
  json_spec: {
2645
- method: string;
2646
- headers: Record<string, unknown>;
2647
2733
  url: string;
2734
+ headers: Record<string, unknown>;
2735
+ method: string;
2648
2736
  query?: Record<string, unknown> | undefined;
2649
2737
  body?: unknown;
2650
2738
  } | null;
@@ -2652,9 +2740,9 @@ export declare const BundleV1Schema: z.ZodObject<{
2652
2740
  curl: string | null;
2653
2741
  httpie: string | null;
2654
2742
  json_spec: {
2655
- method: string;
2656
- headers: Record<string, unknown>;
2657
2743
  url: string;
2744
+ headers: Record<string, unknown>;
2745
+ method: string;
2658
2746
  query?: Record<string, unknown> | undefined;
2659
2747
  body?: unknown;
2660
2748
  } | null;
@@ -2680,15 +2768,15 @@ export declare const BundleV1Schema: z.ZodObject<{
2680
2768
  }>>>;
2681
2769
  }, "strip", z.ZodTypeAny, {
2682
2770
  confidence: number;
2683
- possible: boolean;
2684
2771
  reason: string;
2772
+ possible: boolean;
2685
2773
  artifacts: {
2686
2774
  curl: string | null;
2687
2775
  httpie: string | null;
2688
2776
  json_spec: {
2689
- method: string;
2690
- headers: Record<string, unknown>;
2691
2777
  url: string;
2778
+ headers: Record<string, unknown>;
2779
+ method: string;
2692
2780
  query?: Record<string, unknown> | undefined;
2693
2781
  body?: unknown;
2694
2782
  } | null;
@@ -2702,15 +2790,15 @@ export declare const BundleV1Schema: z.ZodObject<{
2702
2790
  } | null | undefined;
2703
2791
  }, {
2704
2792
  confidence: number;
2705
- possible: boolean;
2706
2793
  reason: string;
2794
+ possible: boolean;
2707
2795
  artifacts: {
2708
2796
  curl: string | null;
2709
2797
  httpie: string | null;
2710
2798
  json_spec: {
2711
- method: string;
2712
- headers: Record<string, unknown>;
2713
2799
  url: string;
2800
+ headers: Record<string, unknown>;
2801
+ method: string;
2714
2802
  query?: Record<string, unknown> | undefined;
2715
2803
  body?: unknown;
2716
2804
  } | null;
@@ -2788,101 +2876,19 @@ export declare const BundleV1Schema: z.ZodObject<{
2788
2876
  generation_number: number;
2789
2877
  }>;
2790
2878
  }, "strip", z.ZodTypeAny, {
2791
- service: {
2792
- name: string;
2793
- runtime: string | null;
2794
- framework: string | null;
2795
- version: string | null;
2796
- id: string;
2797
- region: string | null;
2798
- };
2799
- reproduction: {
2800
- confidence: number;
2801
- possible: boolean;
2802
- reason: string;
2803
- artifacts: {
2804
- curl: string | null;
2805
- httpie: string | null;
2806
- json_spec: {
2807
- method: string;
2808
- headers: Record<string, unknown>;
2809
- url: string;
2810
- query?: Record<string, unknown> | undefined;
2811
- body?: unknown;
2812
- } | null;
2813
- } | null;
2814
- feasibility_reference?: {
2815
- standard_http_bugs: string;
2816
- frontend_interaction_plus_failing_request: string;
2817
- background_jobs: string;
2818
- race_conditions: string;
2819
- external_outage_timing: string;
2820
- } | null | undefined;
2821
- };
2822
- project: {
2823
- environment: string;
2824
- id: string;
2825
- slug: string;
2826
- };
2827
- bundle_version: 1;
2828
- bundle_id: string;
2829
- bundle_type: "failure" | "improvement";
2830
- captured_at: string;
2831
- sdk: {
2832
- name: string;
2833
- version: string;
2834
- };
2835
- signal: {
2836
- fingerprint: string;
2837
- signal_id: string;
2838
- signal_type: "warning" | "frontend_exception" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
2839
- severity: "critical" | "low" | "medium" | "high";
2840
- first_seen_at: string;
2841
- last_seen_at: string;
2842
- occurrence_count: number;
2843
- source_event_types: string[];
2844
- };
2845
- summary: {
2846
- severity: "critical" | "low" | "medium" | "high";
2847
- title: string;
2848
- description: string;
2849
- likely_cause: string | null;
2850
- confidence: number;
2851
- recommended_action: string | null;
2852
- error_type: string | null;
2853
- error_message: string | null;
2854
- first_application_frame: {
2855
- function: string | null;
2856
- file: string | null;
2857
- line: number | null;
2858
- } | null;
2859
- primary_signal: string | null;
2860
- signals: {
2861
- new_deploy: boolean;
2862
- regression_suspected: boolean;
2863
- customer_visible: boolean;
2864
- };
2865
- };
2866
- impact: {
2867
- regression_suspected: boolean;
2868
- customer_visible: boolean;
2869
- affected_users_estimate: number | null;
2870
- affected_requests_estimate: number | null;
2871
- business_criticality: "critical" | "low" | "medium" | "high";
2872
- };
2873
2879
  context: {
2874
2880
  error?: {
2875
2881
  message: string;
2876
- name: string;
2877
2882
  version: 1;
2883
+ name: string;
2878
2884
  stack: string;
2879
2885
  handled: boolean;
2880
2886
  top_frames: string[];
2881
2887
  } | null | undefined;
2882
2888
  runtime?: {
2889
+ version: 1;
2883
2890
  name: string;
2884
2891
  framework: string | null;
2885
- version: 1;
2886
2892
  platform: string | null;
2887
2893
  arch: string | null;
2888
2894
  pid: number | null;
@@ -2902,18 +2908,18 @@ export declare const BundleV1Schema: z.ZodObject<{
2902
2908
  framework_extras?: Record<string, unknown> | null | undefined;
2903
2909
  } | null | undefined;
2904
2910
  environment?: {
2911
+ host: string | null;
2905
2912
  version: 1;
2906
2913
  os: string | null;
2907
- host: string | null;
2908
2914
  container_id: string | null;
2909
2915
  } | null | undefined;
2910
2916
  request?: {
2911
2917
  path: string;
2912
- request_id: string | null;
2913
2918
  version: 1;
2919
+ headers: Record<string, unknown>;
2920
+ request_id: string | null;
2914
2921
  method: string;
2915
2922
  query: Record<string, unknown>;
2916
- headers: Record<string, unknown>;
2917
2923
  route_template: string | null;
2918
2924
  body?: unknown;
2919
2925
  } | null | undefined;
@@ -2927,18 +2933,22 @@ export declare const BundleV1Schema: z.ZodObject<{
2927
2933
  probe_data?: {
2928
2934
  version: 1;
2929
2935
  items: {
2930
- label: string;
2931
2936
  data: Record<string, unknown>;
2937
+ label: string;
2932
2938
  timestamp: string;
2933
2939
  activation_id: string | null;
2934
2940
  }[];
2935
2941
  } | null | undefined;
2936
2942
  device?: {
2943
+ browser: {
2944
+ version: string | null;
2945
+ name: string | null;
2946
+ };
2937
2947
  version: 1;
2938
2948
  user_agent: string | null;
2939
2949
  os: {
2940
- name: string | null;
2941
2950
  version: string | null;
2951
+ name: string | null;
2942
2952
  };
2943
2953
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
2944
2954
  screen: {
@@ -2954,10 +2964,6 @@ export declare const BundleV1Schema: z.ZodObject<{
2954
2964
  language: string | null;
2955
2965
  connection_type: string | null;
2956
2966
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
2957
- browser: {
2958
- name: string | null;
2959
- version: string | null;
2960
- };
2961
2967
  } | null | undefined;
2962
2968
  logs?: {
2963
2969
  version: 1;
@@ -2992,9 +2998,9 @@ export declare const BundleV1Schema: z.ZodObject<{
2992
2998
  console_logs: unknown[];
2993
2999
  network_requests: {
2994
3000
  status: number;
3001
+ url: string;
2995
3002
  method: string;
2996
3003
  ts: string;
2997
- url: string;
2998
3004
  duration_ms?: number | undefined;
2999
3005
  response_headers?: Record<string, string> | undefined;
3000
3006
  response_body?: unknown;
@@ -3024,56 +3030,31 @@ export declare const BundleV1Schema: z.ZodObject<{
3024
3030
  dependencies?: {
3025
3031
  version: 1;
3026
3032
  items: {
3027
- status: "unknown" | "ok" | "degraded" | "failed";
3033
+ status: "unknown" | "failed" | "ok" | "degraded";
3028
3034
  name: string;
3029
3035
  notes: string | null;
3030
3036
  }[];
3031
3037
  } | null | undefined;
3032
3038
  };
3033
- verification: {
3034
- verification_type: string | null;
3035
- synthetic: boolean;
3036
- local_verified: boolean;
3037
- production_verified: boolean;
3038
- };
3039
- links: {
3040
- self: string | null;
3041
- reproduction: string | null;
3042
- incident: string | null;
3043
- project: string | null;
3044
- docs: string | null;
3045
- };
3046
- redaction: {
3047
- fields: string[];
3048
- notes: string | null;
3049
- redacted: boolean;
3050
- };
3051
- metadata: {
3052
- updated_at: string;
3053
- created_at: string;
3054
- generator_version: string;
3055
- generation_number: number;
3056
- };
3057
- }, {
3058
3039
  service: {
3059
- name: string;
3060
- runtime: string | null;
3061
- framework: string | null;
3062
3040
  version: string | null;
3041
+ runtime: string | null;
3042
+ name: string;
3063
3043
  id: string;
3044
+ framework: string | null;
3064
3045
  region: string | null;
3065
3046
  };
3066
3047
  reproduction: {
3067
3048
  confidence: number;
3068
- possible: boolean;
3069
3049
  reason: string;
3050
+ possible: boolean;
3070
3051
  artifacts: {
3071
3052
  curl: string | null;
3072
3053
  httpie: string | null;
3073
3054
  json_spec: {
3074
- method: string;
3075
- headers: Record<string, unknown>;
3076
3055
  url: string;
3056
+ headers: Record<string, unknown>;
3057
+ method: string;
3077
3058
  query?: Record<string, unknown> | undefined;
3078
3059
  body?: unknown;
3079
3060
  } | null;
@@ -3087,8 +3068,8 @@ export declare const BundleV1Schema: z.ZodObject<{
3087
3068
  } | null | undefined;
3088
3069
  };
3089
3070
  project: {
3090
- environment: string;
3091
3071
  id: string;
3072
+ environment: string;
3092
3073
  slug: string;
3093
3074
  };
3094
3075
  bundle_version: 1;
@@ -3096,26 +3077,26 @@ export declare const BundleV1Schema: z.ZodObject<{
3096
3077
  bundle_type: "failure" | "improvement";
3097
3078
  captured_at: string;
3098
3079
  sdk: {
3099
- name: string;
3100
3080
  version: string;
3081
+ name: string;
3101
3082
  };
3102
3083
  signal: {
3103
3084
  fingerprint: string;
3104
3085
  signal_id: string;
3105
3086
  signal_type: "warning" | "frontend_exception" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
3106
- severity: "critical" | "low" | "medium" | "high";
3087
+ severity: "critical" | "high" | "medium" | "low";
3107
3088
  first_seen_at: string;
3108
3089
  last_seen_at: string;
3109
3090
  occurrence_count: number;
3110
3091
  source_event_types: string[];
3111
3092
  };
3112
3093
  summary: {
3113
- severity: "critical" | "low" | "medium" | "high";
3114
- title: string;
3115
3094
  description: string;
3116
- likely_cause: string | null;
3117
- confidence: number;
3118
3095
  recommended_action: string | null;
3096
+ confidence: number;
3097
+ severity: "critical" | "high" | "medium" | "low";
3098
+ title: string;
3099
+ likely_cause: string | null;
3119
3100
  error_type: string | null;
3120
3101
  error_message: string | null;
3121
3102
  first_application_frame: {
@@ -3135,21 +3116,46 @@ export declare const BundleV1Schema: z.ZodObject<{
3135
3116
  customer_visible: boolean;
3136
3117
  affected_users_estimate: number | null;
3137
3118
  affected_requests_estimate: number | null;
3138
- business_criticality: "critical" | "low" | "medium" | "high";
3119
+ business_criticality: "critical" | "high" | "medium" | "low";
3120
+ };
3121
+ verification: {
3122
+ verification_type: string | null;
3123
+ synthetic: boolean;
3124
+ local_verified: boolean;
3125
+ production_verified: boolean;
3139
3126
  };
3127
+ links: {
3128
+ self: string | null;
3129
+ reproduction: string | null;
3130
+ incident: string | null;
3131
+ project: string | null;
3132
+ docs: string | null;
3133
+ };
3134
+ redaction: {
3135
+ fields: string[];
3136
+ notes: string | null;
3137
+ redacted: boolean;
3138
+ };
3139
+ metadata: {
3140
+ updated_at: string;
3141
+ created_at: string;
3142
+ generator_version: string;
3143
+ generation_number: number;
3144
+ };
3145
+ }, {
3140
3146
  context: {
3141
3147
  error?: {
3142
3148
  message: string;
3143
- name: string;
3144
3149
  version: 1;
3150
+ name: string;
3145
3151
  stack: string;
3146
3152
  handled: boolean;
3147
3153
  top_frames: string[];
3148
3154
  } | null | undefined;
3149
3155
  runtime?: {
3156
+ version: 1;
3150
3157
  name: string;
3151
3158
  framework: string | null;
3152
- version: 1;
3153
3159
  platform: string | null;
3154
3160
  arch: string | null;
3155
3161
  pid: number | null;
@@ -3169,18 +3175,18 @@ export declare const BundleV1Schema: z.ZodObject<{
3169
3175
  framework_extras?: Record<string, unknown> | null | undefined;
3170
3176
  } | null | undefined;
3171
3177
  environment?: {
3178
+ host: string | null;
3172
3179
  version: 1;
3173
3180
  os: string | null;
3174
- host: string | null;
3175
3181
  container_id: string | null;
3176
3182
  } | null | undefined;
3177
3183
  request?: {
3178
3184
  path: string;
3179
- request_id: string | null;
3180
3185
  version: 1;
3186
+ headers: Record<string, unknown>;
3187
+ request_id: string | null;
3181
3188
  method: string;
3182
3189
  query: Record<string, unknown>;
3183
- headers: Record<string, unknown>;
3184
3190
  route_template: string | null;
3185
3191
  body?: unknown;
3186
3192
  } | null | undefined;
@@ -3194,18 +3200,22 @@ export declare const BundleV1Schema: z.ZodObject<{
3194
3200
  probe_data?: {
3195
3201
  version: 1;
3196
3202
  items: {
3197
- label: string;
3198
3203
  data: Record<string, unknown>;
3204
+ label: string;
3199
3205
  timestamp: string;
3200
3206
  activation_id: string | null;
3201
3207
  }[];
3202
3208
  } | null | undefined;
3203
3209
  device?: {
3210
+ browser: {
3211
+ version: string | null;
3212
+ name: string | null;
3213
+ };
3204
3214
  version: 1;
3205
3215
  user_agent: string | null;
3206
3216
  os: {
3207
- name: string | null;
3208
3217
  version: string | null;
3218
+ name: string | null;
3209
3219
  };
3210
3220
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
3211
3221
  screen: {
@@ -3221,10 +3231,6 @@ export declare const BundleV1Schema: z.ZodObject<{
3221
3231
  language: string | null;
3222
3232
  connection_type: string | null;
3223
3233
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
3224
- browser: {
3225
- name: string | null;
3226
- version: string | null;
3227
- };
3228
3234
  } | null | undefined;
3229
3235
  logs?: {
3230
3236
  version: 1;
@@ -3259,9 +3265,9 @@ export declare const BundleV1Schema: z.ZodObject<{
3259
3265
  console_logs: unknown[];
3260
3266
  network_requests: {
3261
3267
  status: number;
3268
+ url: string;
3262
3269
  method: string;
3263
3270
  ts: string;
3264
- url: string;
3265
3271
  duration_ms?: number | undefined;
3266
3272
  response_headers?: Record<string, string> | undefined;
3267
3273
  response_body?: unknown;
@@ -3291,12 +3297,94 @@ export declare const BundleV1Schema: z.ZodObject<{
3291
3297
  dependencies?: {
3292
3298
  version: 1;
3293
3299
  items: {
3294
- status: "unknown" | "ok" | "degraded" | "failed";
3300
+ status: "unknown" | "failed" | "ok" | "degraded";
3295
3301
  name: string;
3296
3302
  notes: string | null;
3297
3303
  }[];
3298
3304
  } | null | undefined;
3299
3305
  };
3306
+ service: {
3307
+ version: string | null;
3308
+ runtime: string | null;
3309
+ name: string;
3310
+ id: string;
3311
+ framework: string | null;
3312
+ region: string | null;
3313
+ };
3314
+ reproduction: {
3315
+ confidence: number;
3316
+ reason: string;
3317
+ possible: boolean;
3318
+ artifacts: {
3319
+ curl: string | null;
3320
+ httpie: string | null;
3321
+ json_spec: {
3322
+ url: string;
3323
+ headers: Record<string, unknown>;
3324
+ method: string;
3325
+ query?: Record<string, unknown> | undefined;
3326
+ body?: unknown;
3327
+ } | null;
3328
+ } | null;
3329
+ feasibility_reference?: {
3330
+ standard_http_bugs: string;
3331
+ frontend_interaction_plus_failing_request: string;
3332
+ background_jobs: string;
3333
+ race_conditions: string;
3334
+ external_outage_timing: string;
3335
+ } | null | undefined;
3336
+ };
3337
+ project: {
3338
+ id: string;
3339
+ environment: string;
3340
+ slug: string;
3341
+ };
3342
+ bundle_version: 1;
3343
+ bundle_id: string;
3344
+ bundle_type: "failure" | "improvement";
3345
+ captured_at: string;
3346
+ sdk: {
3347
+ version: string;
3348
+ name: string;
3349
+ };
3350
+ signal: {
3351
+ fingerprint: string;
3352
+ signal_id: string;
3353
+ signal_type: "warning" | "frontend_exception" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
3354
+ severity: "critical" | "high" | "medium" | "low";
3355
+ first_seen_at: string;
3356
+ last_seen_at: string;
3357
+ occurrence_count: number;
3358
+ source_event_types: string[];
3359
+ };
3360
+ summary: {
3361
+ description: string;
3362
+ recommended_action: string | null;
3363
+ confidence: number;
3364
+ severity: "critical" | "high" | "medium" | "low";
3365
+ title: string;
3366
+ likely_cause: string | null;
3367
+ error_type: string | null;
3368
+ error_message: string | null;
3369
+ first_application_frame: {
3370
+ function: string | null;
3371
+ file: string | null;
3372
+ line: number | null;
3373
+ } | null;
3374
+ primary_signal: string | null;
3375
+ signals: {
3376
+ new_deploy: boolean;
3377
+ regression_suspected: boolean;
3378
+ customer_visible: boolean;
3379
+ };
3380
+ };
3381
+ impact: {
3382
+ regression_suspected: boolean;
3383
+ customer_visible: boolean;
3384
+ affected_users_estimate: number | null;
3385
+ affected_requests_estimate: number | null;
3386
+ business_criticality: "critical" | "high" | "medium" | "low";
3387
+ };
3300
3388
  verification: {
3301
3389
  verification_type: string | null;
3302
3390
  synthetic: boolean;
@@ -3325,5 +3413,7 @@ export declare const BundleV1Schema: z.ZodObject<{
3325
3413
  export type BundleV1 = z.infer<typeof BundleV1Schema>;
3326
3414
  export { MAX_BILLING_ADDITIONAL_CAPACITY_UNITS, TIER_CAPABILITIES, getTierCapabilities, isSelfHostMode, type TierName, type TierCapabilities } from "./tier-capabilities.js";
3327
3415
  export { EventClassValues, EventClassSchema, type EventClass, CapturePresetValues, CapturePresetSchema, type CapturePreset, CaptureLogsSchema, CaptureRequestEventsSchema, CaptureBreadcrumbsSchema, CaptureProbeEventsSchema, ImmediateClientErrorStatusesSchema, RECOMMENDED_IMMEDIATE_CLIENT_ERROR_STATUSES, type CaptureLogs, type CaptureRequestEvents, type CaptureBreadcrumbs, type CaptureProbeEvents, 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, getCapturePolicyOverrides, resolvePolicy, getDefaultPreset, classifyRequestStatus, isImmediateRequestIncident, getRequestAnomalyThreshold, shouldCaptureEvent, } from "./capture-policy.js";
3416
+ export { CaptureRuleActionValues, CaptureRuleActionSchema, type CaptureRuleAction, CaptureRuleSampleEventClassValues, CaptureRuleSampleEventClassSchema, type CaptureRuleSampleEventClass, CaptureRuleRuntimeSchema, type CaptureRuleRuntime, CaptureRuleEventTypeSchema, type CaptureRuleEventType, BrowserEventKindSchema, type BrowserEventKind, 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, evaluateCaptureRules, } from "./capture-rules.js";
3417
+ export { CaptureRuleSuggestionConfidenceSchema, type CaptureRuleSuggestionConfidence, CaptureRuleSuggestionSchema, type CaptureRuleSuggestion, CaptureRuleSuggestionsResponseSchema, type CaptureRuleSuggestionsResponse, CreateCaptureRuleFromSuggestionSchema, type CreateCaptureRuleFromSuggestion, type CaptureRuleSuggestionIncident, type CaptureRuleSuggestionBundle, buildCaptureRuleSuggestions } from "./capture-rule-suggestions.js";
3328
3418
  export { ImprovementBundleSensitivityValues, ImprovementBundleSensitivitySchema, type ImprovementBundleSensitivity, ImprovementSettingsSchema, type ImprovementSettings, ImprovementSettingsResponseSchema, type ImprovementSettingsResponse, ImprovementSettingsUpdateSchema, type ImprovementSettingsUpdate } from "./improvement-settings.js";
3329
3419
  //# sourceMappingURL=index.d.ts.map