@debugbundle/shared-types 2.1.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -9,23 +9,23 @@ export declare const BundleV1Schema: z.ZodObject<{
9
9
  name: z.ZodString;
10
10
  version: z.ZodString;
11
11
  }, "strip", z.ZodTypeAny, {
12
- name: string;
13
12
  version: string;
14
- }, {
15
13
  name: string;
14
+ }, {
16
15
  version: string;
16
+ name: string;
17
17
  }>;
18
18
  project: z.ZodObject<{
19
19
  id: z.ZodString;
20
20
  slug: z.ZodString;
21
21
  environment: z.ZodString;
22
22
  }, "strip", z.ZodTypeAny, {
23
- environment: string;
24
23
  id: string;
24
+ environment: string;
25
25
  slug: string;
26
26
  }, {
27
- environment: string;
28
27
  id: string;
28
+ environment: string;
29
29
  slug: string;
30
30
  }>;
31
31
  service: z.ZodObject<{
@@ -36,18 +36,18 @@ export declare const BundleV1Schema: z.ZodObject<{
36
36
  version: z.ZodNullable<z.ZodString>;
37
37
  region: z.ZodNullable<z.ZodString>;
38
38
  }, "strip", z.ZodTypeAny, {
39
+ id: string;
40
+ version: string | null;
39
41
  name: string;
40
42
  runtime: string | null;
41
43
  framework: string | null;
42
- version: string | null;
43
- id: string;
44
44
  region: string | null;
45
45
  }, {
46
+ id: string;
47
+ version: string | null;
46
48
  name: string;
47
49
  runtime: string | null;
48
50
  framework: string | null;
49
- version: string | null;
50
- id: string;
51
51
  region: string | null;
52
52
  }>;
53
53
  signal: z.ZodObject<{
@@ -202,6 +202,7 @@ export declare const BundleV1Schema: z.ZodObject<{
202
202
  omitted_routes: z.ZodNumber;
203
203
  coverage: z.ZodEnum<["occurrence_metadata", "retained_samples"]>;
204
204
  }, "strip", z.ZodTypeAny, {
205
+ coverage: "occurrence_metadata" | "retained_samples";
205
206
  items: {
206
207
  route: string;
207
208
  occurrences: number;
@@ -209,8 +210,8 @@ export declare const BundleV1Schema: z.ZodObject<{
209
210
  recorded_occurrences: number;
210
211
  unattributed_occurrences: number;
211
212
  omitted_routes: number;
212
- coverage: "occurrence_metadata" | "retained_samples";
213
213
  }, {
214
+ coverage: "occurrence_metadata" | "retained_samples";
214
215
  items: {
215
216
  route: string;
216
217
  occurrences: number;
@@ -218,7 +219,6 @@ export declare const BundleV1Schema: z.ZodObject<{
218
219
  recorded_occurrences: number;
219
220
  unattributed_occurrences: number;
220
221
  omitted_routes: number;
221
- coverage: "occurrence_metadata" | "retained_samples";
222
222
  }>;
223
223
  interruption: z.ZodOptional<z.ZodObject<{
224
224
  visibility_state: z.ZodEnum<["hidden", "prerender", "unloaded"]>;
@@ -245,24 +245,26 @@ export declare const BundleV1Schema: z.ZodObject<{
245
245
  delay_ms: z.ZodNumber;
246
246
  }, "strip", z.ZodTypeAny, {
247
247
  path: string;
248
+ source: "request_event" | "frontend_breadcrumb";
248
249
  occurred_at: string;
249
250
  method: string;
250
251
  status_code: number;
251
- source: "request_event" | "frontend_breadcrumb";
252
252
  delay_ms: number;
253
253
  }, {
254
254
  path: string;
255
+ source: "request_event" | "frontend_breadcrumb";
255
256
  occurred_at: string;
256
257
  method: string;
257
258
  status_code: number;
258
- source: "request_event" | "frontend_breadcrumb";
259
259
  delay_ms: number;
260
260
  }>, "many">>;
261
261
  }, "strip", z.ZodTypeAny, {
262
262
  path: string;
263
263
  type: string | null;
264
+ version: 1;
264
265
  title: string;
265
266
  routes: {
267
+ coverage: "occurrence_metadata" | "retained_samples";
266
268
  items: {
267
269
  route: string;
268
270
  occurrences: number;
@@ -270,9 +272,7 @@ export declare const BundleV1Schema: z.ZodObject<{
270
272
  recorded_occurrences: number;
271
273
  unattributed_occurrences: number;
272
274
  omitted_routes: number;
273
- coverage: "occurrence_metadata" | "retained_samples";
274
275
  };
275
- version: 1;
276
276
  host: string | null;
277
277
  first_party: boolean | null;
278
278
  role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
@@ -287,17 +287,19 @@ export declare const BundleV1Schema: z.ZodObject<{
287
287
  } | undefined;
288
288
  recovery_failures?: {
289
289
  path: string;
290
+ source: "request_event" | "frontend_breadcrumb";
290
291
  occurred_at: string;
291
292
  method: string;
292
293
  status_code: number;
293
- source: "request_event" | "frontend_breadcrumb";
294
294
  delay_ms: number;
295
295
  }[] | undefined;
296
296
  }, {
297
297
  path: string;
298
298
  type: string | null;
299
+ version: 1;
299
300
  title: string;
300
301
  routes: {
302
+ coverage: "occurrence_metadata" | "retained_samples";
301
303
  items: {
302
304
  route: string;
303
305
  occurrences: number;
@@ -305,9 +307,7 @@ export declare const BundleV1Schema: z.ZodObject<{
305
307
  recorded_occurrences: number;
306
308
  unattributed_occurrences: number;
307
309
  omitted_routes: number;
308
- coverage: "occurrence_metadata" | "retained_samples";
309
310
  };
310
- version: 1;
311
311
  host: string | null;
312
312
  first_party: boolean | null;
313
313
  role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
@@ -322,10 +322,10 @@ export declare const BundleV1Schema: z.ZodObject<{
322
322
  } | undefined;
323
323
  recovery_failures?: {
324
324
  path: string;
325
+ source: "request_event" | "frontend_breadcrumb";
325
326
  occurred_at: string;
326
327
  method: string;
327
328
  status_code: number;
328
- source: "request_event" | "frontend_breadcrumb";
329
329
  delay_ms: number;
330
330
  }[] | undefined;
331
331
  }>>;
@@ -338,15 +338,15 @@ export declare const BundleV1Schema: z.ZodObject<{
338
338
  top_frames: z.ZodArray<z.ZodString, "many">;
339
339
  }, "strip", z.ZodTypeAny, {
340
340
  message: string;
341
- name: string;
342
341
  version: 1;
342
+ name: string;
343
343
  stack: string;
344
344
  handled: boolean;
345
345
  top_frames: string[];
346
346
  }, {
347
347
  message: string;
348
- name: string;
349
348
  version: 1;
349
+ name: string;
350
350
  stack: string;
351
351
  handled: boolean;
352
352
  top_frames: string[];
@@ -362,18 +362,18 @@ export declare const BundleV1Schema: z.ZodObject<{
362
362
  request_id: z.ZodNullable<z.ZodString>;
363
363
  }, "strip", z.ZodTypeAny, {
364
364
  path: string;
365
+ version: 1;
365
366
  query: Record<string, unknown>;
366
367
  request_id: string | null;
367
- version: 1;
368
368
  method: string;
369
369
  headers: Record<string, unknown>;
370
370
  route_template: string | null;
371
371
  body?: unknown;
372
372
  }, {
373
373
  path: string;
374
+ version: 1;
374
375
  query: Record<string, unknown>;
375
376
  request_id: string | null;
376
- version: 1;
377
377
  method: string;
378
378
  headers: Record<string, unknown>;
379
379
  route_template: string | null;
@@ -386,14 +386,14 @@ export declare const BundleV1Schema: z.ZodObject<{
386
386
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
387
387
  body: z.ZodOptional<z.ZodUnknown>;
388
388
  }, "strip", z.ZodTypeAny, {
389
- duration_ms: number | null;
390
389
  version: 1;
390
+ duration_ms: number | null;
391
391
  status_code: number;
392
392
  body?: unknown;
393
393
  headers?: Record<string, unknown> | undefined;
394
394
  }, {
395
- duration_ms: number | null;
396
395
  version: 1;
396
+ duration_ms: number | null;
397
397
  status_code: number;
398
398
  body?: unknown;
399
399
  headers?: Record<string, unknown> | undefined;
@@ -597,13 +597,13 @@ export declare const BundleV1Schema: z.ZodObject<{
597
597
  host: z.ZodNullable<z.ZodString>;
598
598
  container_id: z.ZodNullable<z.ZodString>;
599
599
  }, "strip", z.ZodTypeAny, {
600
- os: string | null;
601
600
  version: 1;
601
+ os: string | null;
602
602
  host: string | null;
603
603
  container_id: string | null;
604
604
  }, {
605
- os: string | null;
606
605
  version: 1;
606
+ os: string | null;
607
607
  host: string | null;
608
608
  container_id: string | null;
609
609
  }>>>;
@@ -663,9 +663,9 @@ export declare const BundleV1Schema: z.ZodObject<{
663
663
  }>>;
664
664
  framework_extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
665
665
  }, "strip", z.ZodTypeAny, {
666
+ version: 1;
666
667
  name: string;
667
668
  framework: string | null;
668
- version: 1;
669
669
  platform: string | null;
670
670
  arch: string | null;
671
671
  pid: number | null;
@@ -684,9 +684,9 @@ export declare const BundleV1Schema: z.ZodObject<{
684
684
  runtime_version: string | null;
685
685
  framework_extras?: Record<string, unknown> | null | undefined;
686
686
  }, {
687
+ version: 1;
687
688
  name: string;
688
689
  framework: string | null;
689
- version: 1;
690
690
  platform: string | null;
691
691
  arch: string | null;
692
692
  pid: number | null;
@@ -716,16 +716,16 @@ export declare const BundleV1Schema: z.ZodObject<{
716
716
  }, "strip", z.ZodTypeAny, {
717
717
  dirty: boolean;
718
718
  version: 1;
719
- branch: string | null;
720
719
  source: "unknown" | "config" | "env" | "local";
720
+ branch: string | null;
721
721
  commit: string | null;
722
722
  commit_short: string | null;
723
723
  repo: string | null;
724
724
  }, {
725
725
  dirty: boolean;
726
726
  version: 1;
727
- branch: string | null;
728
727
  source: "unknown" | "config" | "env" | "local";
728
+ branch: string | null;
729
729
  commit: string | null;
730
730
  commit_short: string | null;
731
731
  repo: string | null;
@@ -802,21 +802,21 @@ export declare const BundleV1Schema: z.ZodObject<{
802
802
  name: z.ZodNullable<z.ZodString>;
803
803
  version: z.ZodNullable<z.ZodString>;
804
804
  }, "strip", z.ZodTypeAny, {
805
- name: string | null;
806
805
  version: string | null;
807
- }, {
808
806
  name: string | null;
807
+ }, {
809
808
  version: string | null;
809
+ name: string | null;
810
810
  }>;
811
811
  os: z.ZodObject<{
812
812
  name: z.ZodNullable<z.ZodString>;
813
813
  version: z.ZodNullable<z.ZodString>;
814
814
  }, "strip", z.ZodTypeAny, {
815
- name: string | null;
816
815
  version: string | null;
817
- }, {
818
816
  name: string | null;
817
+ }, {
819
818
  version: string | null;
819
+ name: string | null;
820
820
  }>;
821
821
  device_type: z.ZodEnum<["desktop", "mobile", "tablet", "unknown"]>;
822
822
  screen: z.ZodObject<{
@@ -845,17 +845,17 @@ export declare const BundleV1Schema: z.ZodObject<{
845
845
  connection_type: z.ZodNullable<z.ZodString>;
846
846
  color_scheme_preference: z.ZodNullable<z.ZodEnum<["light", "dark", "no-preference"]>>;
847
847
  }, "strip", z.ZodTypeAny, {
848
+ version: 1;
848
849
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
849
850
  language: string | null;
850
851
  browser: {
851
- name: string | null;
852
852
  version: string | null;
853
+ name: string | null;
853
854
  };
854
855
  os: {
855
- name: string | null;
856
856
  version: string | null;
857
+ name: string | null;
857
858
  };
858
- version: 1;
859
859
  user_agent: string | null;
860
860
  screen: {
861
861
  width: number;
@@ -870,17 +870,17 @@ export declare const BundleV1Schema: z.ZodObject<{
870
870
  connection_type: string | null;
871
871
  color_scheme_preference: "light" | "dark" | "no-preference" | null;
872
872
  }, {
873
+ version: 1;
873
874
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
874
875
  language: string | null;
875
876
  browser: {
876
- name: string | null;
877
877
  version: string | null;
878
+ name: string | null;
878
879
  };
879
880
  os: {
880
- name: string | null;
881
881
  version: string | null;
882
+ name: string | null;
882
883
  };
883
- version: 1;
884
884
  user_agent: string | null;
885
885
  screen: {
886
886
  width: number;
@@ -897,15 +897,15 @@ export declare const BundleV1Schema: z.ZodObject<{
897
897
  }>>>;
898
898
  }, "strip", z.ZodTypeAny, {
899
899
  environment?: {
900
- os: string | null;
901
900
  version: 1;
901
+ os: string | null;
902
902
  host: string | null;
903
903
  container_id: string | null;
904
904
  } | null | undefined;
905
905
  runtime?: {
906
+ version: 1;
906
907
  name: string;
907
908
  framework: string | null;
908
- version: 1;
909
909
  platform: string | null;
910
910
  arch: string | null;
911
911
  pid: number | null;
@@ -926,17 +926,17 @@ export declare const BundleV1Schema: z.ZodObject<{
926
926
  } | null | undefined;
927
927
  request?: {
928
928
  path: string;
929
+ version: 1;
929
930
  query: Record<string, unknown>;
930
931
  request_id: string | null;
931
- version: 1;
932
932
  method: string;
933
933
  headers: Record<string, unknown>;
934
934
  route_template: string | null;
935
935
  body?: unknown;
936
936
  } | null | undefined;
937
937
  response?: {
938
- duration_ms: number | null;
939
938
  version: 1;
939
+ duration_ms: number | null;
940
940
  status_code: number;
941
941
  body?: unknown;
942
942
  headers?: Record<string, unknown> | undefined;
@@ -951,17 +951,17 @@ export declare const BundleV1Schema: z.ZodObject<{
951
951
  }[];
952
952
  } | null | undefined;
953
953
  device?: {
954
+ version: 1;
954
955
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
955
956
  language: string | null;
956
957
  browser: {
957
- name: string | null;
958
958
  version: string | null;
959
+ name: string | null;
959
960
  };
960
961
  os: {
961
- name: string | null;
962
962
  version: string | null;
963
+ name: string | null;
963
964
  };
964
- version: 1;
965
965
  user_agent: string | null;
966
966
  screen: {
967
967
  width: number;
@@ -978,8 +978,8 @@ export declare const BundleV1Schema: z.ZodObject<{
978
978
  } | null | undefined;
979
979
  error?: {
980
980
  message: string;
981
- name: string;
982
981
  version: 1;
982
+ name: string;
983
983
  stack: string;
984
984
  handled: boolean;
985
985
  top_frames: string[];
@@ -987,8 +987,10 @@ export declare const BundleV1Schema: z.ZodObject<{
987
987
  resource_failure?: {
988
988
  path: string;
989
989
  type: string | null;
990
+ version: 1;
990
991
  title: string;
991
992
  routes: {
993
+ coverage: "occurrence_metadata" | "retained_samples";
992
994
  items: {
993
995
  route: string;
994
996
  occurrences: number;
@@ -996,9 +998,7 @@ export declare const BundleV1Schema: z.ZodObject<{
996
998
  recorded_occurrences: number;
997
999
  unattributed_occurrences: number;
998
1000
  omitted_routes: number;
999
- coverage: "occurrence_metadata" | "retained_samples";
1000
1001
  };
1001
- version: 1;
1002
1002
  host: string | null;
1003
1003
  first_party: boolean | null;
1004
1004
  role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
@@ -1013,10 +1013,10 @@ export declare const BundleV1Schema: z.ZodObject<{
1013
1013
  } | undefined;
1014
1014
  recovery_failures?: {
1015
1015
  path: string;
1016
+ source: "request_event" | "frontend_breadcrumb";
1016
1017
  occurred_at: string;
1017
1018
  method: string;
1018
1019
  status_code: number;
1019
- source: "request_event" | "frontend_breadcrumb";
1020
1020
  delay_ms: number;
1021
1021
  }[] | undefined;
1022
1022
  } | undefined;
@@ -1076,8 +1076,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1076
1076
  git?: {
1077
1077
  dirty: boolean;
1078
1078
  version: 1;
1079
- branch: string | null;
1080
1079
  source: "unknown" | "config" | "env" | "local";
1080
+ branch: string | null;
1081
1081
  commit: string | null;
1082
1082
  commit_short: string | null;
1083
1083
  repo: string | null;
@@ -1092,15 +1092,15 @@ export declare const BundleV1Schema: z.ZodObject<{
1092
1092
  } | null | undefined;
1093
1093
  }, {
1094
1094
  environment?: {
1095
- os: string | null;
1096
1095
  version: 1;
1096
+ os: string | null;
1097
1097
  host: string | null;
1098
1098
  container_id: string | null;
1099
1099
  } | null | undefined;
1100
1100
  runtime?: {
1101
+ version: 1;
1101
1102
  name: string;
1102
1103
  framework: string | null;
1103
- version: 1;
1104
1104
  platform: string | null;
1105
1105
  arch: string | null;
1106
1106
  pid: number | null;
@@ -1121,17 +1121,17 @@ export declare const BundleV1Schema: z.ZodObject<{
1121
1121
  } | null | undefined;
1122
1122
  request?: {
1123
1123
  path: string;
1124
+ version: 1;
1124
1125
  query: Record<string, unknown>;
1125
1126
  request_id: string | null;
1126
- version: 1;
1127
1127
  method: string;
1128
1128
  headers: Record<string, unknown>;
1129
1129
  route_template: string | null;
1130
1130
  body?: unknown;
1131
1131
  } | null | undefined;
1132
1132
  response?: {
1133
- duration_ms: number | null;
1134
1133
  version: 1;
1134
+ duration_ms: number | null;
1135
1135
  status_code: number;
1136
1136
  body?: unknown;
1137
1137
  headers?: Record<string, unknown> | undefined;
@@ -1146,17 +1146,17 @@ export declare const BundleV1Schema: z.ZodObject<{
1146
1146
  }[];
1147
1147
  } | null | undefined;
1148
1148
  device?: {
1149
+ version: 1;
1149
1150
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
1150
1151
  language: string | null;
1151
1152
  browser: {
1152
- name: string | null;
1153
1153
  version: string | null;
1154
+ name: string | null;
1154
1155
  };
1155
1156
  os: {
1156
- name: string | null;
1157
1157
  version: string | null;
1158
+ name: string | null;
1158
1159
  };
1159
- version: 1;
1160
1160
  user_agent: string | null;
1161
1161
  screen: {
1162
1162
  width: number;
@@ -1173,8 +1173,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1173
1173
  } | null | undefined;
1174
1174
  error?: {
1175
1175
  message: string;
1176
- name: string;
1177
1176
  version: 1;
1177
+ name: string;
1178
1178
  stack: string;
1179
1179
  handled: boolean;
1180
1180
  top_frames: string[];
@@ -1182,8 +1182,10 @@ export declare const BundleV1Schema: z.ZodObject<{
1182
1182
  resource_failure?: {
1183
1183
  path: string;
1184
1184
  type: string | null;
1185
+ version: 1;
1185
1186
  title: string;
1186
1187
  routes: {
1188
+ coverage: "occurrence_metadata" | "retained_samples";
1187
1189
  items: {
1188
1190
  route: string;
1189
1191
  occurrences: number;
@@ -1191,9 +1193,7 @@ export declare const BundleV1Schema: z.ZodObject<{
1191
1193
  recorded_occurrences: number;
1192
1194
  unattributed_occurrences: number;
1193
1195
  omitted_routes: number;
1194
- coverage: "occurrence_metadata" | "retained_samples";
1195
1196
  };
1196
- version: 1;
1197
1197
  host: string | null;
1198
1198
  first_party: boolean | null;
1199
1199
  role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
@@ -1208,10 +1208,10 @@ export declare const BundleV1Schema: z.ZodObject<{
1208
1208
  } | undefined;
1209
1209
  recovery_failures?: {
1210
1210
  path: string;
1211
+ source: "request_event" | "frontend_breadcrumb";
1211
1212
  occurred_at: string;
1212
1213
  method: string;
1213
1214
  status_code: number;
1214
- source: "request_event" | "frontend_breadcrumb";
1215
1215
  delay_ms: number;
1216
1216
  }[] | undefined;
1217
1217
  } | undefined;
@@ -1271,8 +1271,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1271
1271
  git?: {
1272
1272
  dirty: boolean;
1273
1273
  version: 1;
1274
- branch: string | null;
1275
1274
  source: "unknown" | "config" | "env" | "local";
1275
+ branch: string | null;
1276
1276
  commit: string | null;
1277
1277
  commit_short: string | null;
1278
1278
  repo: string | null;
@@ -1463,72 +1463,21 @@ export declare const BundleV1Schema: z.ZodObject<{
1463
1463
  }>;
1464
1464
  }, "strip", z.ZodTypeAny, {
1465
1465
  project: {
1466
- environment: string;
1467
1466
  id: string;
1467
+ environment: string;
1468
1468
  slug: string;
1469
1469
  };
1470
- signal: {
1471
- first_seen_at: string;
1472
- last_seen_at: string;
1473
- severity: "medium" | "low" | "high" | "critical";
1474
- fingerprint: string;
1475
- signal_id: string;
1476
- signal_type: "frontend_exception" | "warning" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
1477
- occurrence_count: number;
1478
- source_event_types: string[];
1479
- };
1480
- service: {
1481
- name: string;
1482
- runtime: string | null;
1483
- framework: string | null;
1484
- version: string | null;
1485
- id: string;
1486
- region: string | null;
1487
- };
1488
- summary: {
1489
- title: string;
1490
- severity: "medium" | "low" | "high" | "critical";
1491
- confidence: number;
1492
- description: string;
1493
- recommended_action: string | null;
1494
- likely_cause: string | null;
1495
- error_type: string | null;
1496
- error_message: string | null;
1497
- first_application_frame: {
1498
- function: string | null;
1499
- file: string | null;
1500
- line: number | null;
1501
- } | null;
1502
- primary_signal: string | null;
1503
- signals: {
1504
- new_deploy: boolean;
1505
- regression_suspected: boolean;
1506
- customer_visible: boolean;
1507
- };
1508
- };
1509
- bundle_type: "failure" | "improvement";
1510
- redaction: {
1511
- fields: string[];
1512
- notes: string | null;
1513
- redacted: boolean;
1514
- };
1515
- metadata: {
1516
- created_at: string;
1517
- updated_at: string;
1518
- generator_version: string;
1519
- generation_number: number;
1520
- };
1521
1470
  context: {
1522
1471
  environment?: {
1523
- os: string | null;
1524
1472
  version: 1;
1473
+ os: string | null;
1525
1474
  host: string | null;
1526
1475
  container_id: string | null;
1527
1476
  } | null | undefined;
1528
1477
  runtime?: {
1478
+ version: 1;
1529
1479
  name: string;
1530
1480
  framework: string | null;
1531
- version: 1;
1532
1481
  platform: string | null;
1533
1482
  arch: string | null;
1534
1483
  pid: number | null;
@@ -1549,17 +1498,17 @@ export declare const BundleV1Schema: z.ZodObject<{
1549
1498
  } | null | undefined;
1550
1499
  request?: {
1551
1500
  path: string;
1501
+ version: 1;
1552
1502
  query: Record<string, unknown>;
1553
1503
  request_id: string | null;
1554
- version: 1;
1555
1504
  method: string;
1556
1505
  headers: Record<string, unknown>;
1557
1506
  route_template: string | null;
1558
1507
  body?: unknown;
1559
1508
  } | null | undefined;
1560
1509
  response?: {
1561
- duration_ms: number | null;
1562
1510
  version: 1;
1511
+ duration_ms: number | null;
1563
1512
  status_code: number;
1564
1513
  body?: unknown;
1565
1514
  headers?: Record<string, unknown> | undefined;
@@ -1574,17 +1523,17 @@ export declare const BundleV1Schema: z.ZodObject<{
1574
1523
  }[];
1575
1524
  } | null | undefined;
1576
1525
  device?: {
1526
+ version: 1;
1577
1527
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
1578
1528
  language: string | null;
1579
1529
  browser: {
1580
- name: string | null;
1581
1530
  version: string | null;
1531
+ name: string | null;
1582
1532
  };
1583
1533
  os: {
1584
- name: string | null;
1585
1534
  version: string | null;
1535
+ name: string | null;
1586
1536
  };
1587
- version: 1;
1588
1537
  user_agent: string | null;
1589
1538
  screen: {
1590
1539
  width: number;
@@ -1601,8 +1550,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1601
1550
  } | null | undefined;
1602
1551
  error?: {
1603
1552
  message: string;
1604
- name: string;
1605
1553
  version: 1;
1554
+ name: string;
1606
1555
  stack: string;
1607
1556
  handled: boolean;
1608
1557
  top_frames: string[];
@@ -1610,8 +1559,10 @@ export declare const BundleV1Schema: z.ZodObject<{
1610
1559
  resource_failure?: {
1611
1560
  path: string;
1612
1561
  type: string | null;
1562
+ version: 1;
1613
1563
  title: string;
1614
1564
  routes: {
1565
+ coverage: "occurrence_metadata" | "retained_samples";
1615
1566
  items: {
1616
1567
  route: string;
1617
1568
  occurrences: number;
@@ -1619,9 +1570,7 @@ export declare const BundleV1Schema: z.ZodObject<{
1619
1570
  recorded_occurrences: number;
1620
1571
  unattributed_occurrences: number;
1621
1572
  omitted_routes: number;
1622
- coverage: "occurrence_metadata" | "retained_samples";
1623
1573
  };
1624
- version: 1;
1625
1574
  host: string | null;
1626
1575
  first_party: boolean | null;
1627
1576
  role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
@@ -1636,10 +1585,10 @@ export declare const BundleV1Schema: z.ZodObject<{
1636
1585
  } | undefined;
1637
1586
  recovery_failures?: {
1638
1587
  path: string;
1588
+ source: "request_event" | "frontend_breadcrumb";
1639
1589
  occurred_at: string;
1640
1590
  method: string;
1641
1591
  status_code: number;
1642
- source: "request_event" | "frontend_breadcrumb";
1643
1592
  delay_ms: number;
1644
1593
  }[] | undefined;
1645
1594
  } | undefined;
@@ -1699,8 +1648,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1699
1648
  git?: {
1700
1649
  dirty: boolean;
1701
1650
  version: 1;
1702
- branch: string | null;
1703
1651
  source: "unknown" | "config" | "env" | "local";
1652
+ branch: string | null;
1704
1653
  commit: string | null;
1705
1654
  commit_short: string | null;
1706
1655
  repo: string | null;
@@ -1714,6 +1663,57 @@ export declare const BundleV1Schema: z.ZodObject<{
1714
1663
  }[];
1715
1664
  } | null | undefined;
1716
1665
  };
1666
+ signal: {
1667
+ first_seen_at: string;
1668
+ last_seen_at: string;
1669
+ severity: "medium" | "low" | "high" | "critical";
1670
+ fingerprint: string;
1671
+ signal_id: string;
1672
+ signal_type: "frontend_exception" | "warning" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
1673
+ occurrence_count: number;
1674
+ source_event_types: string[];
1675
+ };
1676
+ service: {
1677
+ id: string;
1678
+ version: string | null;
1679
+ name: string;
1680
+ runtime: string | null;
1681
+ framework: string | null;
1682
+ region: string | null;
1683
+ };
1684
+ summary: {
1685
+ title: string;
1686
+ severity: "medium" | "low" | "high" | "critical";
1687
+ confidence: number;
1688
+ description: string;
1689
+ recommended_action: string | null;
1690
+ likely_cause: string | null;
1691
+ error_type: string | null;
1692
+ error_message: string | null;
1693
+ first_application_frame: {
1694
+ function: string | null;
1695
+ file: string | null;
1696
+ line: number | null;
1697
+ } | null;
1698
+ primary_signal: string | null;
1699
+ signals: {
1700
+ new_deploy: boolean;
1701
+ regression_suspected: boolean;
1702
+ customer_visible: boolean;
1703
+ };
1704
+ };
1705
+ bundle_type: "failure" | "improvement";
1706
+ redaction: {
1707
+ fields: string[];
1708
+ notes: string | null;
1709
+ redacted: boolean;
1710
+ };
1711
+ metadata: {
1712
+ created_at: string;
1713
+ updated_at: string;
1714
+ generator_version: string;
1715
+ generation_number: number;
1716
+ };
1717
1717
  reproduction: {
1718
1718
  confidence: number;
1719
1719
  reason: string;
@@ -1741,8 +1741,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1741
1741
  bundle_id: string;
1742
1742
  captured_at: string;
1743
1743
  sdk: {
1744
- name: string;
1745
1744
  version: string;
1745
+ name: string;
1746
1746
  };
1747
1747
  impact: {
1748
1748
  regression_suspected: boolean;
@@ -1766,72 +1766,21 @@ export declare const BundleV1Schema: z.ZodObject<{
1766
1766
  };
1767
1767
  }, {
1768
1768
  project: {
1769
- environment: string;
1770
1769
  id: string;
1770
+ environment: string;
1771
1771
  slug: string;
1772
1772
  };
1773
- signal: {
1774
- first_seen_at: string;
1775
- last_seen_at: string;
1776
- severity: "medium" | "low" | "high" | "critical";
1777
- fingerprint: string;
1778
- signal_id: string;
1779
- signal_type: "frontend_exception" | "warning" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
1780
- occurrence_count: number;
1781
- source_event_types: string[];
1782
- };
1783
- service: {
1784
- name: string;
1785
- runtime: string | null;
1786
- framework: string | null;
1787
- version: string | null;
1788
- id: string;
1789
- region: string | null;
1790
- };
1791
- summary: {
1792
- title: string;
1793
- severity: "medium" | "low" | "high" | "critical";
1794
- confidence: number;
1795
- description: string;
1796
- recommended_action: string | null;
1797
- likely_cause: string | null;
1798
- error_type: string | null;
1799
- error_message: string | null;
1800
- first_application_frame: {
1801
- function: string | null;
1802
- file: string | null;
1803
- line: number | null;
1804
- } | null;
1805
- primary_signal: string | null;
1806
- signals: {
1807
- new_deploy: boolean;
1808
- regression_suspected: boolean;
1809
- customer_visible: boolean;
1810
- };
1811
- };
1812
- bundle_type: "failure" | "improvement";
1813
- redaction: {
1814
- fields: string[];
1815
- notes: string | null;
1816
- redacted: boolean;
1817
- };
1818
- metadata: {
1819
- created_at: string;
1820
- updated_at: string;
1821
- generator_version: string;
1822
- generation_number: number;
1823
- };
1824
1773
  context: {
1825
1774
  environment?: {
1826
- os: string | null;
1827
1775
  version: 1;
1776
+ os: string | null;
1828
1777
  host: string | null;
1829
1778
  container_id: string | null;
1830
1779
  } | null | undefined;
1831
1780
  runtime?: {
1781
+ version: 1;
1832
1782
  name: string;
1833
1783
  framework: string | null;
1834
- version: 1;
1835
1784
  platform: string | null;
1836
1785
  arch: string | null;
1837
1786
  pid: number | null;
@@ -1852,17 +1801,17 @@ export declare const BundleV1Schema: z.ZodObject<{
1852
1801
  } | null | undefined;
1853
1802
  request?: {
1854
1803
  path: string;
1804
+ version: 1;
1855
1805
  query: Record<string, unknown>;
1856
1806
  request_id: string | null;
1857
- version: 1;
1858
1807
  method: string;
1859
1808
  headers: Record<string, unknown>;
1860
1809
  route_template: string | null;
1861
1810
  body?: unknown;
1862
1811
  } | null | undefined;
1863
1812
  response?: {
1864
- duration_ms: number | null;
1865
1813
  version: 1;
1814
+ duration_ms: number | null;
1866
1815
  status_code: number;
1867
1816
  body?: unknown;
1868
1817
  headers?: Record<string, unknown> | undefined;
@@ -1877,17 +1826,17 @@ export declare const BundleV1Schema: z.ZodObject<{
1877
1826
  }[];
1878
1827
  } | null | undefined;
1879
1828
  device?: {
1829
+ version: 1;
1880
1830
  device_type: "unknown" | "desktop" | "mobile" | "tablet";
1881
1831
  language: string | null;
1882
1832
  browser: {
1883
- name: string | null;
1884
1833
  version: string | null;
1834
+ name: string | null;
1885
1835
  };
1886
1836
  os: {
1887
- name: string | null;
1888
1837
  version: string | null;
1838
+ name: string | null;
1889
1839
  };
1890
- version: 1;
1891
1840
  user_agent: string | null;
1892
1841
  screen: {
1893
1842
  width: number;
@@ -1904,8 +1853,8 @@ export declare const BundleV1Schema: z.ZodObject<{
1904
1853
  } | null | undefined;
1905
1854
  error?: {
1906
1855
  message: string;
1907
- name: string;
1908
1856
  version: 1;
1857
+ name: string;
1909
1858
  stack: string;
1910
1859
  handled: boolean;
1911
1860
  top_frames: string[];
@@ -1913,8 +1862,10 @@ export declare const BundleV1Schema: z.ZodObject<{
1913
1862
  resource_failure?: {
1914
1863
  path: string;
1915
1864
  type: string | null;
1865
+ version: 1;
1916
1866
  title: string;
1917
1867
  routes: {
1868
+ coverage: "occurrence_metadata" | "retained_samples";
1918
1869
  items: {
1919
1870
  route: string;
1920
1871
  occurrences: number;
@@ -1922,9 +1873,7 @@ export declare const BundleV1Schema: z.ZodObject<{
1922
1873
  recorded_occurrences: number;
1923
1874
  unattributed_occurrences: number;
1924
1875
  omitted_routes: number;
1925
- coverage: "occurrence_metadata" | "retained_samples";
1926
1876
  };
1927
- version: 1;
1928
1877
  host: string | null;
1929
1878
  first_party: boolean | null;
1930
1879
  role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
@@ -1939,10 +1888,10 @@ export declare const BundleV1Schema: z.ZodObject<{
1939
1888
  } | undefined;
1940
1889
  recovery_failures?: {
1941
1890
  path: string;
1891
+ source: "request_event" | "frontend_breadcrumb";
1942
1892
  occurred_at: string;
1943
1893
  method: string;
1944
1894
  status_code: number;
1945
- source: "request_event" | "frontend_breadcrumb";
1946
1895
  delay_ms: number;
1947
1896
  }[] | undefined;
1948
1897
  } | undefined;
@@ -2002,8 +1951,8 @@ export declare const BundleV1Schema: z.ZodObject<{
2002
1951
  git?: {
2003
1952
  dirty: boolean;
2004
1953
  version: 1;
2005
- branch: string | null;
2006
1954
  source: "unknown" | "config" | "env" | "local";
1955
+ branch: string | null;
2007
1956
  commit: string | null;
2008
1957
  commit_short: string | null;
2009
1958
  repo: string | null;
@@ -2017,6 +1966,57 @@ export declare const BundleV1Schema: z.ZodObject<{
2017
1966
  }[];
2018
1967
  } | null | undefined;
2019
1968
  };
1969
+ signal: {
1970
+ first_seen_at: string;
1971
+ last_seen_at: string;
1972
+ severity: "medium" | "low" | "high" | "critical";
1973
+ fingerprint: string;
1974
+ signal_id: string;
1975
+ signal_type: "frontend_exception" | "warning" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
1976
+ occurrence_count: number;
1977
+ source_event_types: string[];
1978
+ };
1979
+ service: {
1980
+ id: string;
1981
+ version: string | null;
1982
+ name: string;
1983
+ runtime: string | null;
1984
+ framework: string | null;
1985
+ region: string | null;
1986
+ };
1987
+ summary: {
1988
+ title: string;
1989
+ severity: "medium" | "low" | "high" | "critical";
1990
+ confidence: number;
1991
+ description: string;
1992
+ recommended_action: string | null;
1993
+ likely_cause: string | null;
1994
+ error_type: string | null;
1995
+ error_message: string | null;
1996
+ first_application_frame: {
1997
+ function: string | null;
1998
+ file: string | null;
1999
+ line: number | null;
2000
+ } | null;
2001
+ primary_signal: string | null;
2002
+ signals: {
2003
+ new_deploy: boolean;
2004
+ regression_suspected: boolean;
2005
+ customer_visible: boolean;
2006
+ };
2007
+ };
2008
+ bundle_type: "failure" | "improvement";
2009
+ redaction: {
2010
+ fields: string[];
2011
+ notes: string | null;
2012
+ redacted: boolean;
2013
+ };
2014
+ metadata: {
2015
+ created_at: string;
2016
+ updated_at: string;
2017
+ generator_version: string;
2018
+ generation_number: number;
2019
+ };
2020
2020
  reproduction: {
2021
2021
  confidence: number;
2022
2022
  reason: string;
@@ -2044,8 +2044,8 @@ export declare const BundleV1Schema: z.ZodObject<{
2044
2044
  bundle_id: string;
2045
2045
  captured_at: string;
2046
2046
  sdk: {
2047
- name: string;
2048
2047
  version: string;
2048
+ name: string;
2049
2049
  };
2050
2050
  impact: {
2051
2051
  regression_suspected: boolean;
@@ -2083,4 +2083,5 @@ export * from "./analytics-product.js";
2083
2083
  export * from "./analytics-journey-samples.js";
2084
2084
  export * from "./analytics-saved-funnels.js";
2085
2085
  export { PROJECT_COLOR_TAG_VALUES, ProjectColorTagSchema, type ProjectColorTag } from "./project-color-tags.js";
2086
+ export * from "./analytics-flows.js";
2086
2087
  //# sourceMappingURL=index.d.ts.map