@debugbundle/shared-types 2.0.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/README.md +1 -0
  2. package/dist/alert-notification-policy.d.ts +71 -0
  3. package/dist/alert-notification-policy.d.ts.map +1 -0
  4. package/dist/alert-notification-policy.js +54 -0
  5. package/dist/alert-notification-policy.js.map +1 -0
  6. package/dist/analytics-flows.d.ts +691 -0
  7. package/dist/analytics-flows.d.ts.map +1 -0
  8. package/dist/analytics-flows.js +99 -0
  9. package/dist/analytics-flows.js.map +1 -0
  10. package/dist/analytics-journey-samples.d.ts +58 -58
  11. package/dist/analytics-product.d.ts +26 -26
  12. package/dist/analytics-saved-funnels.d.ts +97 -97
  13. package/dist/analytics.d.ts +144 -144
  14. package/dist/browser-recovery.d.ts +13 -0
  15. package/dist/browser-recovery.d.ts.map +1 -0
  16. package/dist/browser-recovery.js +42 -0
  17. package/dist/browser-recovery.js.map +1 -0
  18. package/dist/browser-resource-context.d.ts +72 -6
  19. package/dist/browser-resource-context.d.ts.map +1 -1
  20. package/dist/browser-resource-context.js +20 -1
  21. package/dist/browser-resource-context.js.map +1 -1
  22. package/dist/browser-resource-routes.d.ts +2 -2
  23. package/dist/browser-resource-suggestions.d.ts.map +1 -1
  24. package/dist/browser-resource-suggestions.js +51 -1
  25. package/dist/browser-resource-suggestions.js.map +1 -1
  26. package/dist/browser-resource.d.ts +8 -0
  27. package/dist/browser-resource.d.ts.map +1 -1
  28. package/dist/browser-resource.js +24 -0
  29. package/dist/browser-resource.js.map +1 -1
  30. package/dist/capture-policy.d.ts +16 -16
  31. package/dist/capture-rule-evaluation.d.ts +73 -14
  32. package/dist/capture-rule-evaluation.d.ts.map +1 -1
  33. package/dist/capture-rule-evaluation.js +98 -3
  34. package/dist/capture-rule-evaluation.js.map +1 -1
  35. package/dist/capture-rule-schemas.d.ts +1124 -254
  36. package/dist/capture-rule-schemas.d.ts.map +1 -1
  37. package/dist/capture-rule-schemas.js +56 -0
  38. package/dist/capture-rule-schemas.js.map +1 -1
  39. package/dist/capture-rule-suggestions.d.ts +398 -97
  40. package/dist/capture-rule-suggestions.d.ts.map +1 -1
  41. package/dist/event-envelope.d.ts +396 -396
  42. package/dist/frontend-severity.d.ts.map +1 -1
  43. package/dist/frontend-severity.js +3 -0
  44. package/dist/frontend-severity.js.map +1 -1
  45. package/dist/index.d.ts +450 -327
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +2 -1
  48. package/dist/index.js.map +1 -1
  49. package/package.json +1 -1
@@ -0,0 +1,13 @@
1
+ import type { EventEnvelope } from "./event-envelope.js";
2
+ /** Only explicit, relative recovery endpoints qualify; no external origin is inferred. */
3
+ export declare function readBrowserRecoveryFailure(input: {
4
+ path: unknown;
5
+ method: unknown;
6
+ status: unknown;
7
+ }): {
8
+ path: string;
9
+ method: string;
10
+ status_code: number;
11
+ } | null;
12
+ export declare function browserRecoveryFailureFromEvent(event: EventEnvelope): ReturnType<typeof readBrowserRecoveryFailure>;
13
+ //# sourceMappingURL=browser-recovery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser-recovery.d.ts","sourceRoot":"","sources":["../src/browser-recovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,0FAA0F;AAC1F,wBAAgB,0BAA0B,CAAC,KAAK,EAAE;IAChD,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;CACjB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CA6B/D;AAED,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,aAAa,GACnB,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAmB/C"}
@@ -0,0 +1,42 @@
1
+ /** Only explicit, relative recovery endpoints qualify; no external origin is inferred. */
2
+ export function readBrowserRecoveryFailure(input) {
3
+ const { path, method, status } = input;
4
+ if (typeof path !== "string" ||
5
+ path.length > 4096 ||
6
+ !path.startsWith("/") ||
7
+ path.startsWith("//") ||
8
+ path.includes("\\") ||
9
+ /[\u0000-\u001f\u007f]/.test(path))
10
+ return null;
11
+ const cleanPath = path.split(/[?#]/, 1)[0];
12
+ if (cleanPath.length > 1024 ||
13
+ !/(?:^|[/_-])(refresh|renew|recover|recovery|retry|presign|signed[/_-]?url)(?:[/_.-]|$)/i.test(cleanPath))
14
+ return null;
15
+ if (typeof method !== "string" ||
16
+ !/^[A-Za-z]{1,32}$/.test(method) ||
17
+ typeof status !== "number" ||
18
+ !Number.isInteger(status) ||
19
+ status < 400 ||
20
+ status > 599)
21
+ return null;
22
+ return { path: cleanPath, method: method.toUpperCase(), status_code: status };
23
+ }
24
+ export function browserRecoveryFailureFromEvent(event) {
25
+ if (event.event_type === "request_event")
26
+ return readBrowserRecoveryFailure({
27
+ path: event.payload.path,
28
+ method: event.payload.method,
29
+ status: event.payload.response_status
30
+ });
31
+ if (event.event_type === "frontend_breadcrumb" &&
32
+ event.payload.breadcrumb_type === "network_request") {
33
+ const data = event.payload.data;
34
+ return readBrowserRecoveryFailure({
35
+ path: data["url"],
36
+ method: data["method"],
37
+ status: data["status_code"] ?? data["status"]
38
+ });
39
+ }
40
+ return null;
41
+ }
42
+ //# sourceMappingURL=browser-recovery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browser-recovery.js","sourceRoot":"","sources":["../src/browser-recovery.ts"],"names":[],"mappings":"AAEA,0FAA0F;AAC1F,MAAM,UAAU,0BAA0B,CAAC,KAI1C;IACC,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACvC,IACE,OAAO,IAAI,KAAK,QAAQ;QACxB,IAAI,CAAC,MAAM,GAAG,IAAI;QAClB,CAAC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YAChC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC;YACjB,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;YACtB,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC;SAC9C,CAAC,CAAC;IACL,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -26,6 +26,7 @@ export declare const BrowserResourceContextSchema: z.ZodObject<{
26
26
  omitted_routes: z.ZodNumber;
27
27
  coverage: z.ZodEnum<["occurrence_metadata", "retained_samples"]>;
28
28
  }, "strip", z.ZodTypeAny, {
29
+ coverage: "occurrence_metadata" | "retained_samples";
29
30
  items: {
30
31
  route: string;
31
32
  occurrences: number;
@@ -33,8 +34,8 @@ export declare const BrowserResourceContextSchema: z.ZodObject<{
33
34
  recorded_occurrences: number;
34
35
  unattributed_occurrences: number;
35
36
  omitted_routes: number;
36
- coverage: "occurrence_metadata" | "retained_samples";
37
37
  }, {
38
+ coverage: "occurrence_metadata" | "retained_samples";
38
39
  items: {
39
40
  route: string;
40
41
  occurrences: number;
@@ -42,13 +43,52 @@ export declare const BrowserResourceContextSchema: z.ZodObject<{
42
43
  recorded_occurrences: number;
43
44
  unattributed_occurrences: number;
44
45
  omitted_routes: number;
45
- coverage: "occurrence_metadata" | "retained_samples";
46
46
  }>;
47
+ interruption: z.ZodOptional<z.ZodObject<{
48
+ visibility_state: z.ZodEnum<["hidden", "prerender", "unloaded"]>;
49
+ ready_state: z.ZodEnum<["loading", "interactive"]>;
50
+ target_tag_name: z.ZodLiteral<"link">;
51
+ rel: z.ZodEnum<["preload", "modulepreload", "prefetch"]>;
52
+ }, "strip", z.ZodTypeAny, {
53
+ rel: "preload" | "modulepreload" | "prefetch";
54
+ ready_state: "loading" | "interactive";
55
+ visibility_state: "hidden" | "prerender" | "unloaded";
56
+ target_tag_name: "link";
57
+ }, {
58
+ rel: "preload" | "modulepreload" | "prefetch";
59
+ ready_state: "loading" | "interactive";
60
+ visibility_state: "hidden" | "prerender" | "unloaded";
61
+ target_tag_name: "link";
62
+ }>>;
63
+ recovery_failures: z.ZodOptional<z.ZodArray<z.ZodObject<{
64
+ source: z.ZodEnum<["request_event", "frontend_breadcrumb"]>;
65
+ method: z.ZodString;
66
+ path: z.ZodString;
67
+ status_code: z.ZodNumber;
68
+ occurred_at: z.ZodString;
69
+ delay_ms: z.ZodNumber;
70
+ }, "strip", z.ZodTypeAny, {
71
+ path: string;
72
+ source: "request_event" | "frontend_breadcrumb";
73
+ occurred_at: string;
74
+ method: string;
75
+ status_code: number;
76
+ delay_ms: number;
77
+ }, {
78
+ path: string;
79
+ source: "request_event" | "frontend_breadcrumb";
80
+ occurred_at: string;
81
+ method: string;
82
+ status_code: number;
83
+ delay_ms: number;
84
+ }>, "many">>;
47
85
  }, "strip", z.ZodTypeAny, {
48
86
  path: string;
49
87
  type: string | null;
88
+ version: 1;
50
89
  title: string;
51
90
  routes: {
91
+ coverage: "occurrence_metadata" | "retained_samples";
52
92
  items: {
53
93
  route: string;
54
94
  occurrences: number;
@@ -56,20 +96,34 @@ export declare const BrowserResourceContextSchema: z.ZodObject<{
56
96
  recorded_occurrences: number;
57
97
  unattributed_occurrences: number;
58
98
  omitted_routes: number;
59
- coverage: "occurrence_metadata" | "retained_samples";
60
99
  };
61
- version: 1;
62
100
  host: string | null;
63
101
  first_party: boolean | null;
64
102
  role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
65
103
  provider: string | null;
66
104
  optional_candidate: boolean;
67
105
  diagnosis: string;
106
+ interruption?: {
107
+ rel: "preload" | "modulepreload" | "prefetch";
108
+ ready_state: "loading" | "interactive";
109
+ visibility_state: "hidden" | "prerender" | "unloaded";
110
+ target_tag_name: "link";
111
+ } | undefined;
112
+ recovery_failures?: {
113
+ path: string;
114
+ source: "request_event" | "frontend_breadcrumb";
115
+ occurred_at: string;
116
+ method: string;
117
+ status_code: number;
118
+ delay_ms: number;
119
+ }[] | undefined;
68
120
  }, {
69
121
  path: string;
70
122
  type: string | null;
123
+ version: 1;
71
124
  title: string;
72
125
  routes: {
126
+ coverage: "occurrence_metadata" | "retained_samples";
73
127
  items: {
74
128
  route: string;
75
129
  occurrences: number;
@@ -77,14 +131,26 @@ export declare const BrowserResourceContextSchema: z.ZodObject<{
77
131
  recorded_occurrences: number;
78
132
  unattributed_occurrences: number;
79
133
  omitted_routes: number;
80
- coverage: "occurrence_metadata" | "retained_samples";
81
134
  };
82
- version: 1;
83
135
  host: string | null;
84
136
  first_party: boolean | null;
85
137
  role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
86
138
  provider: string | null;
87
139
  optional_candidate: boolean;
88
140
  diagnosis: string;
141
+ interruption?: {
142
+ rel: "preload" | "modulepreload" | "prefetch";
143
+ ready_state: "loading" | "interactive";
144
+ visibility_state: "hidden" | "prerender" | "unloaded";
145
+ target_tag_name: "link";
146
+ } | undefined;
147
+ recovery_failures?: {
148
+ path: string;
149
+ source: "request_event" | "frontend_breadcrumb";
150
+ occurred_at: string;
151
+ method: string;
152
+ status_code: number;
153
+ delay_ms: number;
154
+ }[] | undefined;
89
155
  }>;
90
156
  //# sourceMappingURL=browser-resource-context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"browser-resource-context.d.ts","sourceRoot":"","sources":["../src/browser-resource-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBvC,CAAC"}
1
+ {"version":3,"file":"browser-resource-context.d.ts","sourceRoot":"","sources":["../src/browser-resource-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwCvC,CAAC"}
@@ -18,6 +18,25 @@ export const BrowserResourceContextSchema = z.object({
18
18
  title: z.string(),
19
19
  optional_candidate: z.boolean(),
20
20
  diagnosis: z.string(),
21
- routes: BrowserResourceRoutesSchema
21
+ routes: BrowserResourceRoutesSchema,
22
+ interruption: z
23
+ .object({
24
+ visibility_state: z.enum(["hidden", "prerender", "unloaded"]),
25
+ ready_state: z.enum(["loading", "interactive"]),
26
+ target_tag_name: z.literal("link"),
27
+ rel: z.enum(["preload", "modulepreload", "prefetch"])
28
+ })
29
+ .optional(),
30
+ recovery_failures: z
31
+ .array(z.object({
32
+ source: z.enum(["request_event", "frontend_breadcrumb"]),
33
+ method: z.string().min(1).max(32),
34
+ path: z.string().min(1).max(1024),
35
+ status_code: z.number().int().min(400).max(599),
36
+ occurred_at: z.string().datetime(),
37
+ delay_ms: z.number().int().nonnegative().max(30_000)
38
+ }))
39
+ .max(10)
40
+ .optional()
22
41
  });
23
42
  //# sourceMappingURL=browser-resource-context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"browser-resource-context.js","sourceRoot":"","sources":["../src/browser-resource-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAE3E,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IACpC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IA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D,CAAC,CACH;SACA,GAAG,CAAC,EAAE,CAAC;SACP,QAAQ,EAAE;CACd,CAAC,CAAC"}
@@ -15,6 +15,7 @@ export declare const BrowserResourceRoutesSchema: z.ZodObject<{
15
15
  omitted_routes: z.ZodNumber;
16
16
  coverage: z.ZodEnum<["occurrence_metadata", "retained_samples"]>;
17
17
  }, "strip", z.ZodTypeAny, {
18
+ coverage: "occurrence_metadata" | "retained_samples";
18
19
  items: {
19
20
  route: string;
20
21
  occurrences: number;
@@ -22,8 +23,8 @@ export declare const BrowserResourceRoutesSchema: z.ZodObject<{
22
23
  recorded_occurrences: number;
23
24
  unattributed_occurrences: number;
24
25
  omitted_routes: number;
25
- coverage: "occurrence_metadata" | "retained_samples";
26
26
  }, {
27
+ coverage: "occurrence_metadata" | "retained_samples";
27
28
  items: {
28
29
  route: string;
29
30
  occurrences: number;
@@ -31,7 +32,6 @@ export declare const BrowserResourceRoutesSchema: z.ZodObject<{
31
32
  recorded_occurrences: number;
32
33
  unattributed_occurrences: number;
33
34
  omitted_routes: number;
34
- coverage: "occurrence_metadata" | "retained_samples";
35
35
  }>;
36
36
  export type BrowserResourceRoutes = z.infer<typeof BrowserResourceRoutesSchema>;
37
37
  /** Strip query/fragment and normalize recognizable dynamic segments before retaining route context. */
@@ -1 +1 @@
1
- {"version":3,"file":"browser-resource-suggestions.d.ts","sourceRoot":"","sources":["../src/browser-resource-suggestions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,qBAAqB,EACrB,6BAA6B,EAC9B,MAAM,+BAA+B,CAAC;AAEvC,wBAAgB,+BAA+B,CAAC,KAAK,EAAE;IACrD,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,QAAQ,EAAE,6BAA6B,CAAC;CACzC,GAAG,qBAAqB,EAAE,CA+C1B"}
1
+ {"version":3,"file":"browser-resource-suggestions.d.ts","sourceRoot":"","sources":["../src/browser-resource-suggestions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,qBAAqB,EACrB,6BAA6B,EAC9B,MAAM,+BAA+B,CAAC;AAEvC,wBAAgB,+BAA+B,CAAC,KAAK,EAAE;IACrD,YAAY,EAAE,OAAO,CAAC;IACtB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,QAAQ,EAAE,6BAA6B,CAAC;CACzC,GAAG,qBAAqB,EAAE,CAsG1B"}
@@ -1,6 +1,56 @@
1
- import { describeBrowserResource } from "./browser-resource.js";
1
+ import { describeBrowserResource, describeBrowserResourceInterruption } from "./browser-resource.js";
2
2
  export function buildBrowserResourceSuggestions(input) {
3
3
  const resource = describeBrowserResource(input.browserEvent);
4
+ const interruption = describeBrowserResourceInterruption(input.browserEvent);
5
+ if (resource?.first_party === true &&
6
+ resource.role === "application_asset" &&
7
+ /\.(?:m?js|css)$/i.test(resource.path) &&
8
+ resource.host !== null &&
9
+ interruption !== null &&
10
+ input.service !== undefined &&
11
+ input.environment !== undefined) {
12
+ const parentSlash = resource.path.lastIndexOf("/");
13
+ const pathMatcher = parentSlash > 0
14
+ ? { path_prefix: resource.path.slice(0, parentSlash + 1) }
15
+ : { path_equals: resource.path };
16
+ return [
17
+ {
18
+ suggestion_id: "hidden_preload_demote",
19
+ label: "Keep hidden-page preload interruptions as context",
20
+ recommended_action: "demote",
21
+ confidence: "medium",
22
+ reason: "The browser reported an opaque preload failure while the page was hidden and had not completed loading. This is consistent with an interruption but does not prove an abort. Review the asset scope before retaining matching failures as context; visible or completed-page asset failures do not match this rule.",
23
+ requires_confirmation: true,
24
+ created_rule_id: null,
25
+ created_rule_enabled: null,
26
+ rule: {
27
+ name: "Keep hidden-page preload interruptions as context",
28
+ description: "Retain matching first-party speculative-load failures as context while the browser page is hidden and incomplete; an abort is not proven.",
29
+ enabled: true,
30
+ action: "demote",
31
+ matcher: {
32
+ event_types: ["frontend_exception"],
33
+ services: [input.service],
34
+ environments: [input.environment],
35
+ first_party: true,
36
+ browser_event_kind: "resource_error",
37
+ browser_event_opaque: true,
38
+ browser_page_visibility_state: interruption.visibility_state,
39
+ browser_page_ready_state: interruption.ready_state,
40
+ browser_target_tag_name: interruption.target_tag_name,
41
+ browser_target_attributes: { rel: interruption.rel },
42
+ resource_url: { host: resource.host, ...pathMatcher }
43
+ },
44
+ sample_rate: null,
45
+ sample_event_class: null,
46
+ created_by_user_id: null,
47
+ created_from_incident_id: input.incident.incident_id,
48
+ created_from_event_id: null,
49
+ expires_at: null
50
+ }
51
+ }
52
+ ];
53
+ }
4
54
  if (!resource?.optional_candidate ||
5
55
  resource.host === null ||
6
56
  input.service === undefined ||
@@ -1 +1 @@
1
- {"version":3,"file":"browser-resource-suggestions.js","sourceRoot":"","sources":["../src/browser-resource-suggestions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAMhE,MAAM,UAAU,+BAA+B,CAAC,KAK/C;IACC,MAAM,QAAQ,GAAG,uBAAuB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAC7D,IACE,CAAC,QAAQ,EAAE,kBAAkB;QAC7B,QAAQ,CAAC,IAAI,KAAK,IAAI;QACtB,KAAK,CAAC,OAAO,KAAK,SAAS;QAC3B,KAAK,CAAC,WAAW,KAAK,SAAS;QAE/B,OAAO,EAAE,CAAC;IACZ,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IACvC,MAAM,EAAE,IAAI,EAAE,GAAG,QAAQ,CAAC;IAC1B,OAAQ,CAAC,QAAQ,EAAE,MAAM,CAAW,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACpD,aAAa,EAAE,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,eAAe;QACzE,KAAK,EACH,MAAM,KAAK,QA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MAAM;QAC1B,UAAU,EAAE,QAAQ;QACpB,MAAM,EACJ,MAAM,KAAK,QAAQ;YACjB,CAAC,CAAC,mLAAmL;YACrL,CAAC,CAAC,wLAAwL;QAC9L,qBAAqB,EAAE,IAAI;QAC3B,eAAe,EAAE,IAAI;QACrB,oBAAoB,EAAE,IAAI;QAC1B,IAAI,EAAE;YACJ,IAAI,EAAE,GAAG,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,gBAAgB,KAAK,QAAQ,CAAC,QAAQ,EAAE;YAC3F,WAAW,EAAE,2DAA2D;YACxE,OAAO,EAAE,IAAI;YACb,MAAM;YACN,OAAO,EAAE;gBACP,WAAW,EAAE,CAAC,oBAAoB,CAAC;gBACnC,kBAAkB,EAAE,gBAAgB;gBACpC,oBAAoB,EAAE,IAAI;gBAC1B,QAAQ,EAAE,CAAC,OAAO,CAAC;gBACnB,YAAY,EAAE,CAAC,WAAW,CAAC;gBAC3B,YAAY,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,CAAC,IAAI,EAAE;aACnD;YACD,WAAW,EAAE,IAAI;YACjB,kBAAkB,EAAE,IAAI;YACxB,kBAAkB,EAAE,IAAI;YACxB,wBAAwB,EAAE,KAAK,CAAC,QAAQ,CAAC,WAAW;YACpD,qBAAqB,EAAE,IAAI;YAC3B,UAAU,EAAE,IAAI;SACjB;KACF,CAAC,CAAC,CAAC;AACN,CAAC"}
@@ -9,6 +9,12 @@ export interface BrowserResource {
9
9
  title: string;
10
10
  optional_candidate: boolean;
11
11
  }
12
+ export interface BrowserResourceInterruptionEvidence {
13
+ visibility_state: "hidden" | "prerender" | "unloaded";
14
+ ready_state: "loading" | "interactive";
15
+ target_tag_name: "link";
16
+ rel: "preload" | "modulepreload" | "prefetch";
17
+ }
12
18
  /** Resolve against the browser page, never a backend relay host. Missing origin stays unknown. */
13
19
  export declare function browserResourceLocation(source: unknown, page: unknown): {
14
20
  host: string | null;
@@ -16,5 +22,7 @@ export declare function browserResourceLocation(source: unknown, page: unknown):
16
22
  first_party: boolean | null;
17
23
  } | null;
18
24
  export declare function describeBrowserResource(value: unknown): BrowserResource | null;
25
+ /** Strongly scoped evidence of a browser-aborted speculative load; it does not prove the cause. */
26
+ export declare function describeBrowserResourceInterruption(value: unknown): BrowserResourceInterruptionEvidence | null;
19
27
  export declare function browserResourceDiagnosis(resource: BrowserResource | null): string;
20
28
  //# sourceMappingURL=browser-resource.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"browser-resource.d.ts","sourceRoot":"","sources":["../src/browser-resource.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,WAAW,EAAE,OAAO,GAAG,IAAI,CAAC;IAC5B,IAAI,EACA,WAAW,GACX,aAAa,GACb,aAAa,GACb,gBAAgB,GAChB,mBAAmB,GACnB,SAAS,CAAC;IACd,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB,EAAE,OAAO,CAAC;CAC7B;AAwBD,kGAAkG;AAClG,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,OAAO,GACZ;IACD,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,OAAO,GAAG,IAAI,CAAC;CAC7B,GAAG,IAAI,CAuBP;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,GAAG,IAAI,CAqE9E;AAED,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI,GAAG,MAAM,CAIjF"}
1
+ {"version":3,"file":"browser-resource.d.ts","sourceRoot":"","sources":["../src/browser-resource.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,WAAW,EAAE,OAAO,GAAG,IAAI,CAAC;IAC5B,IAAI,EACA,WAAW,GACX,aAAa,GACb,aAAa,GACb,gBAAgB,GAChB,mBAAmB,GACnB,SAAS,CAAC;IACd,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,mCAAmC;IAClD,gBAAgB,EAAE,QAAQ,GAAG,WAAW,GAAG,UAAU,CAAC;IACtD,WAAW,EAAE,SAAS,GAAG,aAAa,CAAC;IACvC,eAAe,EAAE,MAAM,CAAC;IACxB,GAAG,EAAE,SAAS,GAAG,eAAe,GAAG,UAAU,CAAC;CAC/C;AAwBD,kGAAkG;AAClG,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,OAAO,GACZ;IACD,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,OAAO,GAAG,IAAI,CAAC;CAC7B,GAAG,IAAI,CAuBP;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,eAAe,GAAG,IAAI,CAqE9E;AAED,mGAAmG;AACnG,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,OAAO,GACb,mCAAmC,GAAG,IAAI,CAsB5C;AAED,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI,GAAG,MAAM,CAIjF"}
@@ -108,6 +108,30 @@ export function describeBrowserResource(value) {
108
108
  ["analytics", "advertising", "tag_manager"].includes(role)
109
109
  };
110
110
  }
111
+ /** Strongly scoped evidence of a browser-aborted speculative load; it does not prove the cause. */
112
+ export function describeBrowserResourceInterruption(value) {
113
+ const event = record(value);
114
+ if (event?.["kind"] !== "resource_error" || event["opaque"] !== true)
115
+ return null;
116
+ const page = record(event["page"]);
117
+ const target = record(event["target"]);
118
+ const attributes = record(target?.["attributes"]);
119
+ const visibility = page?.["visibility_state"];
120
+ const readyState = page?.["ready_state"];
121
+ const tag = typeof target?.["tag_name"] === "string" ? target["tag_name"].toLowerCase() : null;
122
+ const rel = typeof attributes?.["rel"] === "string" ? attributes["rel"].trim().toLowerCase() : null;
123
+ if ((visibility !== "hidden" && visibility !== "prerender" && visibility !== "unloaded") ||
124
+ (readyState !== "loading" && readyState !== "interactive") ||
125
+ tag !== "link" ||
126
+ (rel !== "preload" && rel !== "modulepreload" && rel !== "prefetch"))
127
+ return null;
128
+ return {
129
+ visibility_state: visibility,
130
+ ready_state: readyState,
131
+ target_tag_name: "link",
132
+ rel
133
+ };
134
+ }
111
135
  export function browserResourceDiagnosis(resource) {
112
136
  return resource?.optional_candidate === true
113
137
  ? "The browser reported that this script failed to load. Possibly blocked by privacy tools; network, CSP or provider failures are also possible. The captured event does not identify the cause."
@@ -1 +1 @@
1
- {"version":3,"file":"browser-resource.js","sourceRoot":"","sources":["../src/browser-resource.ts"],"names":[],"mappings":"AAkBA,SAAS,MAAM,CAAC,KAAc;IAC5B,OAAO,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QACzE,CAAC,CAAE,KAAiC;QACpC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC;AAED,SAAS,OAAO,CAAC,KAAc,EAAE,IAAU;IACzC,IACE,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,CAAC,MAAM,KAAK,CAAC;QAClB,KAAK,CAAC,MAAM,GAAG,IAAI;QACnB,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAC;QAEnC,OAAO,IAAI,CAAC;IACd,IAAI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,MAAM,EAAE,CAAC,UAAU,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IAC/F,MAAM,GAAG,GAAG,OAAO,UAAU,EAAE,CAAC,KAAK,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IACpG,IACE,CAAC,UAAU,KAAK,QAAQ,IAAI,UAAU,KAAK,WAAW,IAAI,UAAU,KAAK,UAAU,CAAC;QACpF,CAAC,UAAU,KAAK,SAAS,IAAI,UAAU,KAAK,aAAa,CAAC;QAC1D,GAAG,KAAK,MAAM;QACd,CAAC,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,eAAe,IAAI,GAAG,KAAK,UAAU,CAAC;QACpE,OAAO,IAAI,CAAC;IACd,OAAO;QACL,gBAAgB,EAAE,UAAU;QAC5B,WAAW,EAAE,UAAU;QACvB,eAAe,EAAE,MAAM;QACvB,GAAG;KACJ,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,QAAgC;IACvE,OAAO,QAAQ,EAAE,kBAAkB,KAAK,IAAI;QAC1C,CAAC,CAAC,+LAA+L;QACjM,CAAC,CAAC,qKAAqK,CAAC;AAC5K,CAAC"}
@@ -100,7 +100,7 @@ export declare const ResolvedCapturePolicySchema: z.ZodObject<{
100
100
  }[]>>;
101
101
  }, "strip", z.ZodTypeAny, {
102
102
  preset: "minimal" | "balanced" | "investigative";
103
- capture_logs: "off" | "error" | "warning" | "info";
103
+ capture_logs: "error" | "off" | "warning" | "info";
104
104
  capture_request_events: "off" | "failures_only" | "filtered" | "all";
105
105
  capture_breadcrumbs: "local_only" | "exception_only" | "standalone";
106
106
  capture_probe_events: "buffer_only" | "standalone_when_activated";
@@ -108,7 +108,7 @@ export declare const ResolvedCapturePolicySchema: z.ZodObject<{
108
108
  immediate_client_error_path_rules: ImmediateClientErrorPathRule[];
109
109
  }, {
110
110
  preset: "minimal" | "balanced" | "investigative";
111
- capture_logs: "off" | "error" | "warning" | "info";
111
+ capture_logs: "error" | "off" | "warning" | "info";
112
112
  capture_request_events: "off" | "failures_only" | "filtered" | "all";
113
113
  capture_breadcrumbs: "local_only" | "exception_only" | "standalone";
114
114
  capture_probe_events: "buffer_only" | "standalone_when_activated";
@@ -151,14 +151,14 @@ export declare const CapturePolicyOverridesSchema: z.ZodObject<{
151
151
  methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
152
152
  }[]>>>;
153
153
  }, "strip", z.ZodTypeAny, {
154
- capture_logs: "off" | "error" | "warning" | "info" | null;
154
+ capture_logs: "error" | "off" | "warning" | "info" | null;
155
155
  capture_request_events: "off" | "failures_only" | "filtered" | "all" | null;
156
156
  capture_breadcrumbs: "local_only" | "exception_only" | "standalone" | null;
157
157
  capture_probe_events: "buffer_only" | "standalone_when_activated" | null;
158
158
  immediate_client_error_statuses: number[] | null;
159
159
  immediate_client_error_path_rules: ImmediateClientErrorPathRule[] | null;
160
160
  }, {
161
- capture_logs: "off" | "error" | "warning" | "info" | null;
161
+ capture_logs: "error" | "off" | "warning" | "info" | null;
162
162
  capture_request_events: "off" | "failures_only" | "filtered" | "all" | null;
163
163
  capture_breadcrumbs: "local_only" | "exception_only" | "standalone" | null;
164
164
  capture_probe_events: "buffer_only" | "standalone_when_activated" | null;
@@ -202,7 +202,7 @@ export declare const CapturePolicyResponseSchema: z.ZodObject<{
202
202
  }[]>>;
203
203
  }, "strip", z.ZodTypeAny, {
204
204
  preset: "minimal" | "balanced" | "investigative";
205
- capture_logs: "off" | "error" | "warning" | "info";
205
+ capture_logs: "error" | "off" | "warning" | "info";
206
206
  capture_request_events: "off" | "failures_only" | "filtered" | "all";
207
207
  capture_breadcrumbs: "local_only" | "exception_only" | "standalone";
208
208
  capture_probe_events: "buffer_only" | "standalone_when_activated";
@@ -210,7 +210,7 @@ export declare const CapturePolicyResponseSchema: z.ZodObject<{
210
210
  immediate_client_error_path_rules: ImmediateClientErrorPathRule[];
211
211
  }, {
212
212
  preset: "minimal" | "balanced" | "investigative";
213
- capture_logs: "off" | "error" | "warning" | "info";
213
+ capture_logs: "error" | "off" | "warning" | "info";
214
214
  capture_request_events: "off" | "failures_only" | "filtered" | "all";
215
215
  capture_breadcrumbs: "local_only" | "exception_only" | "standalone";
216
216
  capture_probe_events: "buffer_only" | "standalone_when_activated";
@@ -245,14 +245,14 @@ export declare const CapturePolicyResponseSchema: z.ZodObject<{
245
245
  methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
246
246
  }[]>>>;
247
247
  }, "strip", z.ZodTypeAny, {
248
- capture_logs: "off" | "error" | "warning" | "info" | null;
248
+ capture_logs: "error" | "off" | "warning" | "info" | null;
249
249
  capture_request_events: "off" | "failures_only" | "filtered" | "all" | null;
250
250
  capture_breadcrumbs: "local_only" | "exception_only" | "standalone" | null;
251
251
  capture_probe_events: "buffer_only" | "standalone_when_activated" | null;
252
252
  immediate_client_error_statuses: number[] | null;
253
253
  immediate_client_error_path_rules: ImmediateClientErrorPathRule[] | null;
254
254
  }, {
255
- capture_logs: "off" | "error" | "warning" | "info" | null;
255
+ capture_logs: "error" | "off" | "warning" | "info" | null;
256
256
  capture_request_events: "off" | "failures_only" | "filtered" | "all" | null;
257
257
  capture_breadcrumbs: "local_only" | "exception_only" | "standalone" | null;
258
258
  capture_probe_events: "buffer_only" | "standalone_when_activated" | null;
@@ -267,7 +267,7 @@ export declare const CapturePolicyResponseSchema: z.ZodObject<{
267
267
  access_mode: "manage" | "preview";
268
268
  policy: {
269
269
  preset: "minimal" | "balanced" | "investigative";
270
- capture_logs: "off" | "error" | "warning" | "info";
270
+ capture_logs: "error" | "off" | "warning" | "info";
271
271
  capture_request_events: "off" | "failures_only" | "filtered" | "all";
272
272
  capture_breadcrumbs: "local_only" | "exception_only" | "standalone";
273
273
  capture_probe_events: "buffer_only" | "standalone_when_activated";
@@ -275,7 +275,7 @@ export declare const CapturePolicyResponseSchema: z.ZodObject<{
275
275
  immediate_client_error_path_rules: ImmediateClientErrorPathRule[];
276
276
  };
277
277
  overrides: {
278
- capture_logs: "off" | "error" | "warning" | "info" | null;
278
+ capture_logs: "error" | "off" | "warning" | "info" | null;
279
279
  capture_request_events: "off" | "failures_only" | "filtered" | "all" | null;
280
280
  capture_breadcrumbs: "local_only" | "exception_only" | "standalone" | null;
281
281
  capture_probe_events: "buffer_only" | "standalone_when_activated" | null;
@@ -286,7 +286,7 @@ export declare const CapturePolicyResponseSchema: z.ZodObject<{
286
286
  access_mode: "manage" | "preview";
287
287
  policy: {
288
288
  preset: "minimal" | "balanced" | "investigative";
289
- capture_logs: "off" | "error" | "warning" | "info";
289
+ capture_logs: "error" | "off" | "warning" | "info";
290
290
  capture_request_events: "off" | "failures_only" | "filtered" | "all";
291
291
  capture_breadcrumbs: "local_only" | "exception_only" | "standalone";
292
292
  capture_probe_events: "buffer_only" | "standalone_when_activated";
@@ -298,7 +298,7 @@ export declare const CapturePolicyResponseSchema: z.ZodObject<{
298
298
  }[] | undefined;
299
299
  };
300
300
  overrides: {
301
- capture_logs: "off" | "error" | "warning" | "info" | null;
301
+ capture_logs: "error" | "off" | "warning" | "info" | null;
302
302
  capture_request_events: "off" | "failures_only" | "filtered" | "all" | null;
303
303
  capture_breadcrumbs: "local_only" | "exception_only" | "standalone" | null;
304
304
  capture_probe_events: "buffer_only" | "standalone_when_activated" | null;
@@ -340,7 +340,7 @@ export declare const CapturePolicySchema: z.ZodObject<{
340
340
  project_id: string;
341
341
  updated_at: string;
342
342
  preset: "minimal" | "balanced" | "investigative";
343
- capture_logs: "off" | "error" | "warning" | "info" | null;
343
+ capture_logs: "error" | "off" | "warning" | "info" | null;
344
344
  capture_request_events: "off" | "failures_only" | "filtered" | "all" | null;
345
345
  capture_breadcrumbs: "local_only" | "exception_only" | "standalone" | null;
346
346
  capture_probe_events: "buffer_only" | "standalone_when_activated" | null;
@@ -350,7 +350,7 @@ export declare const CapturePolicySchema: z.ZodObject<{
350
350
  project_id: string;
351
351
  updated_at: string;
352
352
  preset: "minimal" | "balanced" | "investigative";
353
- capture_logs: "off" | "error" | "warning" | "info" | null;
353
+ capture_logs: "error" | "off" | "warning" | "info" | null;
354
354
  capture_request_events: "off" | "failures_only" | "filtered" | "all" | null;
355
355
  capture_breadcrumbs: "local_only" | "exception_only" | "standalone" | null;
356
356
  capture_probe_events: "buffer_only" | "standalone_when_activated" | null;
@@ -388,7 +388,7 @@ export declare const CapturePolicyUpdateSchema: z.ZodObject<{
388
388
  }[]>>>;
389
389
  }, "strip", z.ZodTypeAny, {
390
390
  preset?: "minimal" | "balanced" | "investigative" | undefined;
391
- capture_logs?: "off" | "error" | "warning" | "info" | null | undefined;
391
+ capture_logs?: "error" | "off" | "warning" | "info" | null | undefined;
392
392
  capture_request_events?: "off" | "failures_only" | "filtered" | "all" | null | undefined;
393
393
  capture_breadcrumbs?: "local_only" | "exception_only" | "standalone" | null | undefined;
394
394
  capture_probe_events?: "buffer_only" | "standalone_when_activated" | null | undefined;
@@ -396,7 +396,7 @@ export declare const CapturePolicyUpdateSchema: z.ZodObject<{
396
396
  immediate_client_error_path_rules?: ImmediateClientErrorPathRule[] | null | undefined;
397
397
  }, {
398
398
  preset?: "minimal" | "balanced" | "investigative" | undefined;
399
- capture_logs?: "off" | "error" | "warning" | "info" | null | undefined;
399
+ capture_logs?: "error" | "off" | "warning" | "info" | null | undefined;
400
400
  capture_request_events?: "off" | "failures_only" | "filtered" | "all" | null | undefined;
401
401
  capture_breadcrumbs?: "local_only" | "exception_only" | "standalone" | null | undefined;
402
402
  capture_probe_events?: "buffer_only" | "standalone_when_activated" | null | undefined;