@debugbundle/shared-types 1.7.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser-resource-context.d.ts +90 -0
- package/dist/browser-resource-context.d.ts.map +1 -0
- package/dist/browser-resource-context.js +23 -0
- package/dist/browser-resource-context.js.map +1 -0
- package/dist/browser-resource-routes.d.ts +40 -0
- package/dist/browser-resource-routes.d.ts.map +1 -0
- package/dist/browser-resource-routes.js +64 -0
- package/dist/browser-resource-routes.js.map +1 -0
- package/dist/browser-resource-suggestions.d.ts +8 -0
- package/dist/browser-resource-suggestions.d.ts.map +1 -0
- package/dist/browser-resource-suggestions.js +46 -0
- package/dist/browser-resource-suggestions.js.map +1 -0
- package/dist/browser-resource.d.ts +20 -0
- package/dist/browser-resource.d.ts.map +1 -0
- package/dist/browser-resource.js +116 -0
- package/dist/browser-resource.js.map +1 -0
- package/dist/capture-rule-evaluation.d.ts +6 -6
- package/dist/capture-rule-evaluation.d.ts.map +1 -1
- package/dist/capture-rule-evaluation.js +6 -2
- package/dist/capture-rule-evaluation.js.map +1 -1
- package/dist/capture-rule-schemas.d.ts +132 -132
- package/dist/capture-rule-suggestions.d.ts +60 -51
- package/dist/capture-rule-suggestions.d.ts.map +1 -1
- package/dist/capture-rule-suggestions.js +47 -115
- package/dist/capture-rule-suggestions.js.map +1 -1
- package/dist/event-envelope.d.ts +56 -56
- package/dist/frontend-severity.d.ts +6 -0
- package/dist/frontend-severity.d.ts.map +1 -0
- package/dist/frontend-severity.js +8 -0
- package/dist/frontend-severity.js.map +1 -0
- package/dist/index.d.ts +265 -86
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/event-envelope.d.ts
CHANGED
|
@@ -202,14 +202,14 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
202
202
|
}, "strip", z.ZodTypeAny, {
|
|
203
203
|
path: string;
|
|
204
204
|
query: Record<string, unknown>;
|
|
205
|
-
method: string;
|
|
206
205
|
headers: Record<string, unknown>;
|
|
206
|
+
method: string;
|
|
207
207
|
body?: unknown;
|
|
208
208
|
}, {
|
|
209
209
|
path: string;
|
|
210
210
|
query: Record<string, unknown>;
|
|
211
|
-
method: string;
|
|
212
211
|
headers: Record<string, unknown>;
|
|
212
|
+
method: string;
|
|
213
213
|
body?: unknown;
|
|
214
214
|
}>;
|
|
215
215
|
response: z.ZodObject<{
|
|
@@ -311,21 +311,21 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
311
311
|
activation_id: string | null;
|
|
312
312
|
}>, "many">;
|
|
313
313
|
}, "strict", z.ZodTypeAny, {
|
|
314
|
-
version: 1;
|
|
315
314
|
items: {
|
|
316
315
|
data: Record<string, unknown>;
|
|
317
316
|
label: string;
|
|
318
317
|
timestamp: string;
|
|
319
318
|
activation_id: string | null;
|
|
320
319
|
}[];
|
|
321
|
-
}, {
|
|
322
320
|
version: 1;
|
|
321
|
+
}, {
|
|
323
322
|
items: {
|
|
324
323
|
data: Record<string, unknown>;
|
|
325
324
|
label: string;
|
|
326
325
|
timestamp: string;
|
|
327
326
|
activation_id: string | null;
|
|
328
327
|
}[];
|
|
328
|
+
version: 1;
|
|
329
329
|
}>>;
|
|
330
330
|
}, "strict", z.ZodTypeAny, {
|
|
331
331
|
message: string;
|
|
@@ -352,8 +352,8 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
352
352
|
request: {
|
|
353
353
|
path: string;
|
|
354
354
|
query: Record<string, unknown>;
|
|
355
|
-
method: string;
|
|
356
355
|
headers: Record<string, unknown>;
|
|
356
|
+
method: string;
|
|
357
357
|
body?: unknown;
|
|
358
358
|
};
|
|
359
359
|
response: {
|
|
@@ -364,13 +364,13 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
364
364
|
stack: string;
|
|
365
365
|
handled: boolean;
|
|
366
366
|
probe_data?: {
|
|
367
|
-
version: 1;
|
|
368
367
|
items: {
|
|
369
368
|
data: Record<string, unknown>;
|
|
370
369
|
label: string;
|
|
371
370
|
timestamp: string;
|
|
372
371
|
activation_id: string | null;
|
|
373
372
|
}[];
|
|
373
|
+
version: 1;
|
|
374
374
|
} | undefined;
|
|
375
375
|
}, {
|
|
376
376
|
message: string;
|
|
@@ -397,8 +397,8 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
397
397
|
request: {
|
|
398
398
|
path: string;
|
|
399
399
|
query: Record<string, unknown>;
|
|
400
|
-
method: string;
|
|
401
400
|
headers: Record<string, unknown>;
|
|
401
|
+
method: string;
|
|
402
402
|
body?: unknown;
|
|
403
403
|
};
|
|
404
404
|
response: {
|
|
@@ -409,13 +409,13 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
409
409
|
stack: string;
|
|
410
410
|
handled: boolean;
|
|
411
411
|
probe_data?: {
|
|
412
|
-
version: 1;
|
|
413
412
|
items: {
|
|
414
413
|
data: Record<string, unknown>;
|
|
415
414
|
label: string;
|
|
416
415
|
timestamp: string;
|
|
417
416
|
activation_id: string | null;
|
|
418
417
|
}[];
|
|
418
|
+
version: 1;
|
|
419
419
|
} | undefined;
|
|
420
420
|
}>;
|
|
421
421
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -456,8 +456,8 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
456
456
|
request: {
|
|
457
457
|
path: string;
|
|
458
458
|
query: Record<string, unknown>;
|
|
459
|
-
method: string;
|
|
460
459
|
headers: Record<string, unknown>;
|
|
460
|
+
method: string;
|
|
461
461
|
body?: unknown;
|
|
462
462
|
};
|
|
463
463
|
response: {
|
|
@@ -468,13 +468,13 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
468
468
|
stack: string;
|
|
469
469
|
handled: boolean;
|
|
470
470
|
probe_data?: {
|
|
471
|
-
version: 1;
|
|
472
471
|
items: {
|
|
473
472
|
data: Record<string, unknown>;
|
|
474
473
|
label: string;
|
|
475
474
|
timestamp: string;
|
|
476
475
|
activation_id: string | null;
|
|
477
476
|
}[];
|
|
477
|
+
version: 1;
|
|
478
478
|
} | undefined;
|
|
479
479
|
};
|
|
480
480
|
project_id?: string | null | undefined;
|
|
@@ -524,8 +524,8 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
524
524
|
request: {
|
|
525
525
|
path: string;
|
|
526
526
|
query: Record<string, unknown>;
|
|
527
|
-
method: string;
|
|
528
527
|
headers: Record<string, unknown>;
|
|
528
|
+
method: string;
|
|
529
529
|
body?: unknown;
|
|
530
530
|
};
|
|
531
531
|
response: {
|
|
@@ -536,13 +536,13 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
536
536
|
stack: string;
|
|
537
537
|
handled: boolean;
|
|
538
538
|
probe_data?: {
|
|
539
|
-
version: 1;
|
|
540
539
|
items: {
|
|
541
540
|
data: Record<string, unknown>;
|
|
542
541
|
label: string;
|
|
543
542
|
timestamp: string;
|
|
544
543
|
activation_id: string | null;
|
|
545
544
|
}[];
|
|
545
|
+
version: 1;
|
|
546
546
|
} | undefined;
|
|
547
547
|
};
|
|
548
548
|
project_id?: string | null | undefined;
|
|
@@ -622,9 +622,9 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
622
622
|
path: string;
|
|
623
623
|
duration_ms: number;
|
|
624
624
|
query: Record<string, unknown>;
|
|
625
|
+
headers: Record<string, unknown>;
|
|
625
626
|
response_status: number;
|
|
626
627
|
method: string;
|
|
627
|
-
headers: Record<string, unknown>;
|
|
628
628
|
body?: unknown;
|
|
629
629
|
route_template?: string | null | undefined;
|
|
630
630
|
response_headers?: Record<string, unknown> | undefined;
|
|
@@ -633,9 +633,9 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
633
633
|
path: string;
|
|
634
634
|
duration_ms: number;
|
|
635
635
|
query: Record<string, unknown>;
|
|
636
|
+
headers: Record<string, unknown>;
|
|
636
637
|
response_status: number;
|
|
637
638
|
method: string;
|
|
638
|
-
headers: Record<string, unknown>;
|
|
639
639
|
body?: unknown;
|
|
640
640
|
route_template?: string | null | undefined;
|
|
641
641
|
response_headers?: Record<string, unknown> | undefined;
|
|
@@ -770,8 +770,6 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
770
770
|
path: string;
|
|
771
771
|
duration_ms: number;
|
|
772
772
|
query: Record<string, unknown>;
|
|
773
|
-
response_status: number;
|
|
774
|
-
method: string;
|
|
775
773
|
device: {
|
|
776
774
|
device_type: "unknown" | "desktop" | "mobile" | "tablet";
|
|
777
775
|
language: string | null;
|
|
@@ -806,6 +804,8 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
806
804
|
jailbroken?: boolean | null | undefined;
|
|
807
805
|
};
|
|
808
806
|
headers: Record<string, unknown>;
|
|
807
|
+
response_status: number;
|
|
808
|
+
method: string;
|
|
809
809
|
body?: unknown;
|
|
810
810
|
route_template?: string | null | undefined;
|
|
811
811
|
response_headers?: Record<string, unknown> | undefined;
|
|
@@ -814,8 +814,6 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
814
814
|
path: string;
|
|
815
815
|
duration_ms: number;
|
|
816
816
|
query: Record<string, unknown>;
|
|
817
|
-
response_status: number;
|
|
818
|
-
method: string;
|
|
819
817
|
device: {
|
|
820
818
|
device_type: "unknown" | "desktop" | "mobile" | "tablet";
|
|
821
819
|
language: string | null;
|
|
@@ -850,6 +848,8 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
850
848
|
jailbroken?: boolean | null | undefined;
|
|
851
849
|
};
|
|
852
850
|
headers: Record<string, unknown>;
|
|
851
|
+
response_status: number;
|
|
852
|
+
method: string;
|
|
853
853
|
body?: unknown;
|
|
854
854
|
route_template?: string | null | undefined;
|
|
855
855
|
response_headers?: Record<string, unknown> | undefined;
|
|
@@ -872,9 +872,9 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
872
872
|
path: string;
|
|
873
873
|
duration_ms: number;
|
|
874
874
|
query: Record<string, unknown>;
|
|
875
|
+
headers: Record<string, unknown>;
|
|
875
876
|
response_status: number;
|
|
876
877
|
method: string;
|
|
877
|
-
headers: Record<string, unknown>;
|
|
878
878
|
body?: unknown;
|
|
879
879
|
route_template?: string | null | undefined;
|
|
880
880
|
response_headers?: Record<string, unknown> | undefined;
|
|
@@ -883,8 +883,6 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
883
883
|
path: string;
|
|
884
884
|
duration_ms: number;
|
|
885
885
|
query: Record<string, unknown>;
|
|
886
|
-
response_status: number;
|
|
887
|
-
method: string;
|
|
888
886
|
device: {
|
|
889
887
|
device_type: "unknown" | "desktop" | "mobile" | "tablet";
|
|
890
888
|
language: string | null;
|
|
@@ -919,6 +917,8 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
919
917
|
jailbroken?: boolean | null | undefined;
|
|
920
918
|
};
|
|
921
919
|
headers: Record<string, unknown>;
|
|
920
|
+
response_status: number;
|
|
921
|
+
method: string;
|
|
922
922
|
body?: unknown;
|
|
923
923
|
route_template?: string | null | undefined;
|
|
924
924
|
response_headers?: Record<string, unknown> | undefined;
|
|
@@ -950,9 +950,9 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
950
950
|
path: string;
|
|
951
951
|
duration_ms: number;
|
|
952
952
|
query: Record<string, unknown>;
|
|
953
|
+
headers: Record<string, unknown>;
|
|
953
954
|
response_status: number;
|
|
954
955
|
method: string;
|
|
955
|
-
headers: Record<string, unknown>;
|
|
956
956
|
body?: unknown;
|
|
957
957
|
route_template?: string | null | undefined;
|
|
958
958
|
response_headers?: Record<string, unknown> | undefined;
|
|
@@ -961,8 +961,6 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
961
961
|
path: string;
|
|
962
962
|
duration_ms: number;
|
|
963
963
|
query: Record<string, unknown>;
|
|
964
|
-
response_status: number;
|
|
965
|
-
method: string;
|
|
966
964
|
device: {
|
|
967
965
|
device_type: "unknown" | "desktop" | "mobile" | "tablet";
|
|
968
966
|
language: string | null;
|
|
@@ -997,6 +995,8 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
997
995
|
jailbroken?: boolean | null | undefined;
|
|
998
996
|
};
|
|
999
997
|
headers: Record<string, unknown>;
|
|
998
|
+
response_status: number;
|
|
999
|
+
method: string;
|
|
1000
1000
|
body?: unknown;
|
|
1001
1001
|
route_template?: string | null | undefined;
|
|
1002
1002
|
response_headers?: Record<string, unknown> | undefined;
|
|
@@ -1197,7 +1197,6 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
1197
1197
|
attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1198
1198
|
}, "strict", z.ZodTypeAny, {
|
|
1199
1199
|
message: string;
|
|
1200
|
-
level: string;
|
|
1201
1200
|
device: {
|
|
1202
1201
|
device_type: "unknown" | "desktop" | "mobile" | "tablet";
|
|
1203
1202
|
language: string | null;
|
|
@@ -1231,10 +1230,10 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
1231
1230
|
free_memory_bytes?: number | null | undefined;
|
|
1232
1231
|
jailbroken?: boolean | null | undefined;
|
|
1233
1232
|
};
|
|
1233
|
+
level: string;
|
|
1234
1234
|
attributes: Record<string, unknown>;
|
|
1235
1235
|
}, {
|
|
1236
1236
|
message: string;
|
|
1237
|
-
level: string;
|
|
1238
1237
|
device: {
|
|
1239
1238
|
device_type: "unknown" | "desktop" | "mobile" | "tablet";
|
|
1240
1239
|
language: string | null;
|
|
@@ -1268,6 +1267,7 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
1268
1267
|
free_memory_bytes?: number | null | undefined;
|
|
1269
1268
|
jailbroken?: boolean | null | undefined;
|
|
1270
1269
|
};
|
|
1270
|
+
level: string;
|
|
1271
1271
|
attributes: Record<string, unknown>;
|
|
1272
1272
|
}>]>;
|
|
1273
1273
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -1289,7 +1289,6 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
1289
1289
|
attributes: Record<string, unknown>;
|
|
1290
1290
|
} | {
|
|
1291
1291
|
message: string;
|
|
1292
|
-
level: string;
|
|
1293
1292
|
device: {
|
|
1294
1293
|
device_type: "unknown" | "desktop" | "mobile" | "tablet";
|
|
1295
1294
|
language: string | null;
|
|
@@ -1323,6 +1322,7 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
1323
1322
|
free_memory_bytes?: number | null | undefined;
|
|
1324
1323
|
jailbroken?: boolean | null | undefined;
|
|
1325
1324
|
};
|
|
1325
|
+
level: string;
|
|
1326
1326
|
attributes: Record<string, unknown>;
|
|
1327
1327
|
};
|
|
1328
1328
|
project_id?: string | null | undefined;
|
|
@@ -1353,7 +1353,6 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
1353
1353
|
attributes: Record<string, unknown>;
|
|
1354
1354
|
} | {
|
|
1355
1355
|
message: string;
|
|
1356
|
-
level: string;
|
|
1357
1356
|
device: {
|
|
1358
1357
|
device_type: "unknown" | "desktop" | "mobile" | "tablet";
|
|
1359
1358
|
language: string | null;
|
|
@@ -1387,6 +1386,7 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
1387
1386
|
free_memory_bytes?: number | null | undefined;
|
|
1388
1387
|
jailbroken?: boolean | null | undefined;
|
|
1389
1388
|
};
|
|
1389
|
+
level: string;
|
|
1390
1390
|
attributes: Record<string, unknown>;
|
|
1391
1391
|
};
|
|
1392
1392
|
project_id?: string | null | undefined;
|
|
@@ -2160,7 +2160,7 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
2160
2160
|
opaque: z.ZodBoolean;
|
|
2161
2161
|
}, "strict", z.ZodTypeAny, {
|
|
2162
2162
|
message: string | null;
|
|
2163
|
-
kind: "
|
|
2163
|
+
kind: "resource_error" | "window_error";
|
|
2164
2164
|
target: {
|
|
2165
2165
|
source_url: string | null;
|
|
2166
2166
|
tag_name: string | null;
|
|
@@ -2187,7 +2187,7 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
2187
2187
|
} | undefined;
|
|
2188
2188
|
}, {
|
|
2189
2189
|
message: string | null;
|
|
2190
|
-
kind: "
|
|
2190
|
+
kind: "resource_error" | "window_error";
|
|
2191
2191
|
target: {
|
|
2192
2192
|
source_url: string | null;
|
|
2193
2193
|
tag_name: string | null;
|
|
@@ -2258,21 +2258,21 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
2258
2258
|
activation_id: string | null;
|
|
2259
2259
|
}>, "many">;
|
|
2260
2260
|
}, "strict", z.ZodTypeAny, {
|
|
2261
|
-
version: 1;
|
|
2262
2261
|
items: {
|
|
2263
2262
|
data: Record<string, unknown>;
|
|
2264
2263
|
label: string;
|
|
2265
2264
|
timestamp: string;
|
|
2266
2265
|
activation_id: string | null;
|
|
2267
2266
|
}[];
|
|
2268
|
-
}, {
|
|
2269
2267
|
version: 1;
|
|
2268
|
+
}, {
|
|
2270
2269
|
items: {
|
|
2271
2270
|
data: Record<string, unknown>;
|
|
2272
2271
|
label: string;
|
|
2273
2272
|
timestamp: string;
|
|
2274
2273
|
activation_id: string | null;
|
|
2275
2274
|
}[];
|
|
2275
|
+
version: 1;
|
|
2276
2276
|
}>>;
|
|
2277
2277
|
}, "strict", z.ZodTypeAny, {
|
|
2278
2278
|
message: string;
|
|
@@ -2338,7 +2338,7 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
2338
2338
|
} | null | undefined;
|
|
2339
2339
|
browser_event?: {
|
|
2340
2340
|
message: string | null;
|
|
2341
|
-
kind: "
|
|
2341
|
+
kind: "resource_error" | "window_error";
|
|
2342
2342
|
target: {
|
|
2343
2343
|
source_url: string | null;
|
|
2344
2344
|
tag_name: string | null;
|
|
@@ -2365,13 +2365,13 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
2365
2365
|
} | undefined;
|
|
2366
2366
|
} | undefined;
|
|
2367
2367
|
probe_data?: {
|
|
2368
|
-
version: 1;
|
|
2369
2368
|
items: {
|
|
2370
2369
|
data: Record<string, unknown>;
|
|
2371
2370
|
label: string;
|
|
2372
2371
|
timestamp: string;
|
|
2373
2372
|
activation_id: string | null;
|
|
2374
2373
|
}[];
|
|
2374
|
+
version: 1;
|
|
2375
2375
|
} | undefined;
|
|
2376
2376
|
breadcrumbs?: ({
|
|
2377
2377
|
breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
|
|
@@ -2458,7 +2458,7 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
2458
2458
|
} | null | undefined;
|
|
2459
2459
|
browser_event?: {
|
|
2460
2460
|
message: string | null;
|
|
2461
|
-
kind: "
|
|
2461
|
+
kind: "resource_error" | "window_error";
|
|
2462
2462
|
target: {
|
|
2463
2463
|
source_url: string | null;
|
|
2464
2464
|
tag_name: string | null;
|
|
@@ -2485,13 +2485,13 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
2485
2485
|
} | undefined;
|
|
2486
2486
|
} | undefined;
|
|
2487
2487
|
probe_data?: {
|
|
2488
|
-
version: 1;
|
|
2489
2488
|
items: {
|
|
2490
2489
|
data: Record<string, unknown>;
|
|
2491
2490
|
label: string;
|
|
2492
2491
|
timestamp: string;
|
|
2493
2492
|
activation_id: string | null;
|
|
2494
2493
|
}[];
|
|
2494
|
+
version: 1;
|
|
2495
2495
|
} | undefined;
|
|
2496
2496
|
breadcrumbs?: ({
|
|
2497
2497
|
breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
|
|
@@ -2592,7 +2592,7 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
2592
2592
|
} | null | undefined;
|
|
2593
2593
|
browser_event?: {
|
|
2594
2594
|
message: string | null;
|
|
2595
|
-
kind: "
|
|
2595
|
+
kind: "resource_error" | "window_error";
|
|
2596
2596
|
target: {
|
|
2597
2597
|
source_url: string | null;
|
|
2598
2598
|
tag_name: string | null;
|
|
@@ -2619,13 +2619,13 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
2619
2619
|
} | undefined;
|
|
2620
2620
|
} | undefined;
|
|
2621
2621
|
probe_data?: {
|
|
2622
|
-
version: 1;
|
|
2623
2622
|
items: {
|
|
2624
2623
|
data: Record<string, unknown>;
|
|
2625
2624
|
label: string;
|
|
2626
2625
|
timestamp: string;
|
|
2627
2626
|
activation_id: string | null;
|
|
2628
2627
|
}[];
|
|
2628
|
+
version: 1;
|
|
2629
2629
|
} | undefined;
|
|
2630
2630
|
breadcrumbs?: ({
|
|
2631
2631
|
breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
|
|
@@ -2735,7 +2735,7 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
2735
2735
|
} | null | undefined;
|
|
2736
2736
|
browser_event?: {
|
|
2737
2737
|
message: string | null;
|
|
2738
|
-
kind: "
|
|
2738
|
+
kind: "resource_error" | "window_error";
|
|
2739
2739
|
target: {
|
|
2740
2740
|
source_url: string | null;
|
|
2741
2741
|
tag_name: string | null;
|
|
@@ -2762,13 +2762,13 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
2762
2762
|
} | undefined;
|
|
2763
2763
|
} | undefined;
|
|
2764
2764
|
probe_data?: {
|
|
2765
|
-
version: 1;
|
|
2766
2765
|
items: {
|
|
2767
2766
|
data: Record<string, unknown>;
|
|
2768
2767
|
label: string;
|
|
2769
2768
|
timestamp: string;
|
|
2770
2769
|
activation_id: string | null;
|
|
2771
2770
|
}[];
|
|
2771
|
+
version: 1;
|
|
2772
2772
|
} | undefined;
|
|
2773
2773
|
breadcrumbs?: ({
|
|
2774
2774
|
breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
|
|
@@ -3773,8 +3773,8 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
3773
3773
|
request: {
|
|
3774
3774
|
path: string;
|
|
3775
3775
|
query: Record<string, unknown>;
|
|
3776
|
-
method: string;
|
|
3777
3776
|
headers: Record<string, unknown>;
|
|
3777
|
+
method: string;
|
|
3778
3778
|
body?: unknown;
|
|
3779
3779
|
};
|
|
3780
3780
|
response: {
|
|
@@ -3785,13 +3785,13 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
3785
3785
|
stack: string;
|
|
3786
3786
|
handled: boolean;
|
|
3787
3787
|
probe_data?: {
|
|
3788
|
-
version: 1;
|
|
3789
3788
|
items: {
|
|
3790
3789
|
data: Record<string, unknown>;
|
|
3791
3790
|
label: string;
|
|
3792
3791
|
timestamp: string;
|
|
3793
3792
|
activation_id: string | null;
|
|
3794
3793
|
}[];
|
|
3794
|
+
version: 1;
|
|
3795
3795
|
} | undefined;
|
|
3796
3796
|
};
|
|
3797
3797
|
project_id?: string | null | undefined;
|
|
@@ -3820,9 +3820,9 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
3820
3820
|
path: string;
|
|
3821
3821
|
duration_ms: number;
|
|
3822
3822
|
query: Record<string, unknown>;
|
|
3823
|
+
headers: Record<string, unknown>;
|
|
3823
3824
|
response_status: number;
|
|
3824
3825
|
method: string;
|
|
3825
|
-
headers: Record<string, unknown>;
|
|
3826
3826
|
body?: unknown;
|
|
3827
3827
|
route_template?: string | null | undefined;
|
|
3828
3828
|
response_headers?: Record<string, unknown> | undefined;
|
|
@@ -3831,8 +3831,6 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
3831
3831
|
path: string;
|
|
3832
3832
|
duration_ms: number;
|
|
3833
3833
|
query: Record<string, unknown>;
|
|
3834
|
-
response_status: number;
|
|
3835
|
-
method: string;
|
|
3836
3834
|
device: {
|
|
3837
3835
|
device_type: "unknown" | "desktop" | "mobile" | "tablet";
|
|
3838
3836
|
language: string | null;
|
|
@@ -3867,6 +3865,8 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
3867
3865
|
jailbroken?: boolean | null | undefined;
|
|
3868
3866
|
};
|
|
3869
3867
|
headers: Record<string, unknown>;
|
|
3868
|
+
response_status: number;
|
|
3869
|
+
method: string;
|
|
3870
3870
|
body?: unknown;
|
|
3871
3871
|
route_template?: string | null | undefined;
|
|
3872
3872
|
response_headers?: Record<string, unknown> | undefined;
|
|
@@ -3900,7 +3900,6 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
3900
3900
|
attributes: Record<string, unknown>;
|
|
3901
3901
|
} | {
|
|
3902
3902
|
message: string;
|
|
3903
|
-
level: string;
|
|
3904
3903
|
device: {
|
|
3905
3904
|
device_type: "unknown" | "desktop" | "mobile" | "tablet";
|
|
3906
3905
|
language: string | null;
|
|
@@ -3934,6 +3933,7 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
3934
3933
|
free_memory_bytes?: number | null | undefined;
|
|
3935
3934
|
jailbroken?: boolean | null | undefined;
|
|
3936
3935
|
};
|
|
3936
|
+
level: string;
|
|
3937
3937
|
attributes: Record<string, unknown>;
|
|
3938
3938
|
};
|
|
3939
3939
|
project_id?: string | null | undefined;
|
|
@@ -4086,7 +4086,7 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
4086
4086
|
} | null | undefined;
|
|
4087
4087
|
browser_event?: {
|
|
4088
4088
|
message: string | null;
|
|
4089
|
-
kind: "
|
|
4089
|
+
kind: "resource_error" | "window_error";
|
|
4090
4090
|
target: {
|
|
4091
4091
|
source_url: string | null;
|
|
4092
4092
|
tag_name: string | null;
|
|
@@ -4113,13 +4113,13 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
4113
4113
|
} | undefined;
|
|
4114
4114
|
} | undefined;
|
|
4115
4115
|
probe_data?: {
|
|
4116
|
-
version: 1;
|
|
4117
4116
|
items: {
|
|
4118
4117
|
data: Record<string, unknown>;
|
|
4119
4118
|
label: string;
|
|
4120
4119
|
timestamp: string;
|
|
4121
4120
|
activation_id: string | null;
|
|
4122
4121
|
}[];
|
|
4122
|
+
version: 1;
|
|
4123
4123
|
} | undefined;
|
|
4124
4124
|
breadcrumbs?: ({
|
|
4125
4125
|
breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
|
|
@@ -4353,8 +4353,8 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
4353
4353
|
request: {
|
|
4354
4354
|
path: string;
|
|
4355
4355
|
query: Record<string, unknown>;
|
|
4356
|
-
method: string;
|
|
4357
4356
|
headers: Record<string, unknown>;
|
|
4357
|
+
method: string;
|
|
4358
4358
|
body?: unknown;
|
|
4359
4359
|
};
|
|
4360
4360
|
response: {
|
|
@@ -4365,13 +4365,13 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
4365
4365
|
stack: string;
|
|
4366
4366
|
handled: boolean;
|
|
4367
4367
|
probe_data?: {
|
|
4368
|
-
version: 1;
|
|
4369
4368
|
items: {
|
|
4370
4369
|
data: Record<string, unknown>;
|
|
4371
4370
|
label: string;
|
|
4372
4371
|
timestamp: string;
|
|
4373
4372
|
activation_id: string | null;
|
|
4374
4373
|
}[];
|
|
4374
|
+
version: 1;
|
|
4375
4375
|
} | undefined;
|
|
4376
4376
|
};
|
|
4377
4377
|
project_id?: string | null | undefined;
|
|
@@ -4400,9 +4400,9 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
4400
4400
|
path: string;
|
|
4401
4401
|
duration_ms: number;
|
|
4402
4402
|
query: Record<string, unknown>;
|
|
4403
|
+
headers: Record<string, unknown>;
|
|
4403
4404
|
response_status: number;
|
|
4404
4405
|
method: string;
|
|
4405
|
-
headers: Record<string, unknown>;
|
|
4406
4406
|
body?: unknown;
|
|
4407
4407
|
route_template?: string | null | undefined;
|
|
4408
4408
|
response_headers?: Record<string, unknown> | undefined;
|
|
@@ -4411,8 +4411,6 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
4411
4411
|
path: string;
|
|
4412
4412
|
duration_ms: number;
|
|
4413
4413
|
query: Record<string, unknown>;
|
|
4414
|
-
response_status: number;
|
|
4415
|
-
method: string;
|
|
4416
4414
|
device: {
|
|
4417
4415
|
device_type: "unknown" | "desktop" | "mobile" | "tablet";
|
|
4418
4416
|
language: string | null;
|
|
@@ -4447,6 +4445,8 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
4447
4445
|
jailbroken?: boolean | null | undefined;
|
|
4448
4446
|
};
|
|
4449
4447
|
headers: Record<string, unknown>;
|
|
4448
|
+
response_status: number;
|
|
4449
|
+
method: string;
|
|
4450
4450
|
body?: unknown;
|
|
4451
4451
|
route_template?: string | null | undefined;
|
|
4452
4452
|
response_headers?: Record<string, unknown> | undefined;
|
|
@@ -4480,7 +4480,6 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
4480
4480
|
attributes: Record<string, unknown>;
|
|
4481
4481
|
} | {
|
|
4482
4482
|
message: string;
|
|
4483
|
-
level: string;
|
|
4484
4483
|
device: {
|
|
4485
4484
|
device_type: "unknown" | "desktop" | "mobile" | "tablet";
|
|
4486
4485
|
language: string | null;
|
|
@@ -4514,6 +4513,7 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
4514
4513
|
free_memory_bytes?: number | null | undefined;
|
|
4515
4514
|
jailbroken?: boolean | null | undefined;
|
|
4516
4515
|
};
|
|
4516
|
+
level: string;
|
|
4517
4517
|
attributes: Record<string, unknown>;
|
|
4518
4518
|
};
|
|
4519
4519
|
project_id?: string | null | undefined;
|
|
@@ -4666,7 +4666,7 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
4666
4666
|
} | null | undefined;
|
|
4667
4667
|
browser_event?: {
|
|
4668
4668
|
message: string | null;
|
|
4669
|
-
kind: "
|
|
4669
|
+
kind: "resource_error" | "window_error";
|
|
4670
4670
|
target: {
|
|
4671
4671
|
source_url: string | null;
|
|
4672
4672
|
tag_name: string | null;
|
|
@@ -4693,13 +4693,13 @@ export declare const EventEnvelopeSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"
|
|
|
4693
4693
|
} | undefined;
|
|
4694
4694
|
} | undefined;
|
|
4695
4695
|
probe_data?: {
|
|
4696
|
-
version: 1;
|
|
4697
4696
|
items: {
|
|
4698
4697
|
data: Record<string, unknown>;
|
|
4699
4698
|
label: string;
|
|
4700
4699
|
timestamp: string;
|
|
4701
4700
|
activation_id: string | null;
|
|
4702
4701
|
}[];
|
|
4702
|
+
version: 1;
|
|
4703
4703
|
} | undefined;
|
|
4704
4704
|
breadcrumbs?: ({
|
|
4705
4705
|
breadcrumb_type: "route_change" | "network_request" | "click" | "form_submit" | "console_log";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { EventEnvelope } from "./event-envelope.js";
|
|
2
|
+
/** Evidence confidence sets the default severity; dependency role never suppresses a failure. */
|
|
3
|
+
export declare function inferFrontendExceptionSeverity(event: Extract<EventEnvelope, {
|
|
4
|
+
event_type: "frontend_exception";
|
|
5
|
+
}>): "low" | "medium" | "high";
|
|
6
|
+
//# sourceMappingURL=frontend-severity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frontend-severity.d.ts","sourceRoot":"","sources":["../src/frontend-severity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,iGAAiG;AACjG,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,OAAO,CAAC,aAAa,EAAE;IAAE,UAAU,EAAE,oBAAoB,CAAA;CAAE,CAAC,GAClE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAK3B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Evidence confidence sets the default severity; dependency role never suppresses a failure. */
|
|
2
|
+
export function inferFrontendExceptionSeverity(event) {
|
|
3
|
+
const browserEvent = event.payload.browser_event;
|
|
4
|
+
if (browserEvent?.opaque === true)
|
|
5
|
+
return browserEvent.kind === "resource_error" ? "medium" : "low";
|
|
6
|
+
return "high";
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=frontend-severity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frontend-severity.js","sourceRoot":"","sources":["../src/frontend-severity.ts"],"names":[],"mappings":"AAEA,iGAAiG;AACjG,MAAM,UAAU,8BAA8B,CAC5C,KAAmE;IAEnE,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC;IACjD,IAAI,YAAY,EAAE,MAAM,KAAK,IAAI;QAC/B,OAAO,YAAY,CAAC,IAAI,KAAK,gBAAgB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC;IACnE,OAAO,MAAM,CAAC;AAChB,CAAC"}
|