@debugbundle/shared-types 2.5.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/README.md +17 -0
  2. package/dist/alert-notification-policy.d.ts +22 -40
  3. package/dist/alert-notification-policy.d.ts.map +1 -1
  4. package/dist/alert-notification-policy.js +1 -1
  5. package/dist/analytics-flows.d.ts +53 -588
  6. package/dist/analytics-flows.d.ts.map +1 -1
  7. package/dist/analytics-flows.js +4 -6
  8. package/dist/analytics-flows.js.map +1 -1
  9. package/dist/analytics-journey-samples.d.ts +70 -857
  10. package/dist/analytics-journey-samples.d.ts.map +1 -1
  11. package/dist/analytics-journey-samples.js +4 -4
  12. package/dist/analytics-product.d.ts +222 -853
  13. package/dist/analytics-product.d.ts.map +1 -1
  14. package/dist/analytics-product.js +9 -9
  15. package/dist/analytics-query.d.ts +13 -48
  16. package/dist/analytics-query.d.ts.map +1 -1
  17. package/dist/analytics-query.js +1 -1
  18. package/dist/analytics-saved-funnels.d.ts +21 -258
  19. package/dist/analytics-saved-funnels.d.ts.map +1 -1
  20. package/dist/analytics-saved-funnels.js +1 -1
  21. package/dist/analytics.d.ts +342 -2181
  22. package/dist/analytics.d.ts.map +1 -1
  23. package/dist/analytics.js +9 -9
  24. package/dist/browser-resource-context.d.ts +35 -129
  25. package/dist/browser-resource-context.d.ts.map +1 -1
  26. package/dist/browser-resource-routes.d.ts +6 -27
  27. package/dist/browser-resource-routes.d.ts.map +1 -1
  28. package/dist/bundle-evidence.d.ts +101 -0
  29. package/dist/bundle-evidence.d.ts.map +1 -0
  30. package/dist/bundle-evidence.js +69 -0
  31. package/dist/bundle-evidence.js.map +1 -0
  32. package/dist/capture-policy.d.ts +311 -319
  33. package/dist/capture-policy.d.ts.map +1 -1
  34. package/dist/capture-policy.js +70 -29
  35. package/dist/capture-policy.js.map +1 -1
  36. package/dist/capture-rule-evaluation.d.ts +53 -154
  37. package/dist/capture-rule-evaluation.d.ts.map +1 -1
  38. package/dist/capture-rule-evaluation.js +1 -1
  39. package/dist/capture-rule-schemas.d.ts +788 -3226
  40. package/dist/capture-rule-schemas.d.ts.map +1 -1
  41. package/dist/capture-rule-schemas.js +37 -34
  42. package/dist/capture-rule-schemas.js.map +1 -1
  43. package/dist/capture-rule-suggestions.d.ts +195 -1189
  44. package/dist/capture-rule-suggestions.d.ts.map +1 -1
  45. package/dist/diagnostic-capture-budget.d.ts +22 -0
  46. package/dist/diagnostic-capture-budget.d.ts.map +1 -0
  47. package/dist/diagnostic-capture-budget.js +195 -0
  48. package/dist/diagnostic-capture-budget.js.map +1 -0
  49. package/dist/diagnostic-context.d.ts +163 -0
  50. package/dist/diagnostic-context.d.ts.map +1 -0
  51. package/dist/diagnostic-context.js +117 -0
  52. package/dist/diagnostic-context.js.map +1 -0
  53. package/dist/event-envelope.d.ts +524 -4326
  54. package/dist/event-envelope.d.ts.map +1 -1
  55. package/dist/event-envelope.js +63 -8
  56. package/dist/event-envelope.js.map +1 -1
  57. package/dist/evidence-bounds.d.ts +9 -0
  58. package/dist/evidence-bounds.d.ts.map +1 -0
  59. package/dist/evidence-bounds.js +51 -0
  60. package/dist/evidence-bounds.js.map +1 -0
  61. package/dist/evidence-capabilities.d.ts +15 -0
  62. package/dist/evidence-capabilities.d.ts.map +1 -0
  63. package/dist/evidence-capabilities.js +29 -0
  64. package/dist/evidence-capabilities.js.map +1 -0
  65. package/dist/evidence-emission.d.ts +18 -0
  66. package/dist/evidence-emission.d.ts.map +1 -0
  67. package/dist/evidence-emission.js +83 -0
  68. package/dist/evidence-emission.js.map +1 -0
  69. package/dist/evidence-interpretation.d.ts +68 -0
  70. package/dist/evidence-interpretation.d.ts.map +1 -0
  71. package/dist/evidence-interpretation.js +177 -0
  72. package/dist/evidence-interpretation.js.map +1 -0
  73. package/dist/exception-evidence.d.ts +96 -0
  74. package/dist/exception-evidence.d.ts.map +1 -0
  75. package/dist/exception-evidence.js +145 -0
  76. package/dist/exception-evidence.js.map +1 -0
  77. package/dist/first-purchase-eligibility.d.ts +9 -0
  78. package/dist/first-purchase-eligibility.d.ts.map +1 -0
  79. package/dist/first-purchase-eligibility.js +16 -0
  80. package/dist/first-purchase-eligibility.js.map +1 -0
  81. package/dist/improvement-settings.d.ts +29 -48
  82. package/dist/improvement-settings.d.ts.map +1 -1
  83. package/dist/index.d.ts +323 -1834
  84. package/dist/index.d.ts.map +1 -1
  85. package/dist/index.js +22 -3
  86. package/dist/index.js.map +1 -1
  87. package/dist/ingestion-wire.d.ts +9 -0
  88. package/dist/ingestion-wire.d.ts.map +1 -0
  89. package/dist/ingestion-wire.js +56 -0
  90. package/dist/ingestion-wire.js.map +1 -0
  91. package/dist/json-schema.d.ts +4 -0
  92. package/dist/json-schema.d.ts.map +1 -0
  93. package/dist/json-schema.js +49 -0
  94. package/dist/json-schema.js.map +1 -0
  95. package/dist/notification-preferences.d.ts +505 -0
  96. package/dist/notification-preferences.d.ts.map +1 -0
  97. package/dist/notification-preferences.js +206 -0
  98. package/dist/notification-preferences.js.map +1 -0
  99. package/dist/notification-schedule.d.ts +4 -0
  100. package/dist/notification-schedule.d.ts.map +1 -0
  101. package/dist/notification-schedule.js +36 -0
  102. package/dist/notification-schedule.js.map +1 -0
  103. package/dist/project-color-tags.d.ts +20 -1
  104. package/dist/project-color-tags.d.ts.map +1 -1
  105. package/dist/public-status.d.ts +122 -568
  106. package/dist/public-status.d.ts.map +1 -1
  107. package/dist/public-status.js +8 -8
  108. package/dist/stack-frames.d.ts +11 -0
  109. package/dist/stack-frames.d.ts.map +1 -0
  110. package/dist/stack-frames.js +107 -0
  111. package/dist/stack-frames.js.map +1 -0
  112. package/dist/weekly-notification-groups.d.ts +8 -0
  113. package/dist/weekly-notification-groups.d.ts.map +1 -0
  114. package/dist/weekly-notification-groups.js +23 -0
  115. package/dist/weekly-notification-groups.js.map +1 -0
  116. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,33 +1,32 @@
1
1
  import { z } from "zod";
2
- export { EventTypeValues, EventTypeSchema, MobileDeviceInfoSchema, RuntimeMemoryStatsSchema, EventEnvelopeSchema, type EventEnvelope, createEventEnvelope } from "./event-envelope.js";
2
+ export * from "./bundle-evidence.js";
3
+ export * from "./evidence-interpretation.js";
4
+ export { truncateUtf8, withinUtf8Budget } from "./evidence-bounds.js";
5
+ export * from "./evidence-emission.js";
6
+ export * from "./ingestion-wire.js";
7
+ export { DiagnosticCaptureBudget } from "./diagnostic-capture-budget.js";
8
+ export { parseNormalizedStackFrames, selectUsefulFrame, type ParsedStack } from "./stack-frames.js";
9
+ export * from "./diagnostic-context.js";
10
+ export { EXCEPTION_EVIDENCE_LIMITS, EvidenceFrameSchema, ExceptionEvidenceV1Schema, type EvidenceFrame, type ExceptionEvidenceV1 } from "./exception-evidence.js";
11
+ export { EvidenceCapabilityValues, EvidenceCapabilitiesSchema, intersectEvidenceCapabilities, type EvidenceCapabilities } from "./evidence-capabilities.js";
12
+ export { EventTypeValues, EventTypeSchema, MobileDeviceInfoSchema, RuntimeMemoryStatsSchema, EventEnvelopeSchema, EVENT_INGESTION_MAX_BODY_BYTES, EVENT_ENVELOPE_MAX_WIRE_BYTES, type EventEnvelope, createEventEnvelope } from "./event-envelope.js";
3
13
  export declare const BundleV1Schema: z.ZodObject<{
4
14
  bundle_version: z.ZodLiteral<1>;
5
15
  bundle_id: z.ZodString;
6
- bundle_type: z.ZodEnum<["failure", "improvement"]>;
16
+ bundle_type: z.ZodEnum<{
17
+ failure: "failure";
18
+ improvement: "improvement";
19
+ }>;
7
20
  captured_at: z.ZodString;
8
21
  sdk: z.ZodObject<{
9
22
  name: z.ZodString;
10
23
  version: z.ZodString;
11
- }, "strip", z.ZodTypeAny, {
12
- version: string;
13
- name: string;
14
- }, {
15
- version: string;
16
- name: string;
17
- }>;
24
+ }, z.core.$strip>;
18
25
  project: z.ZodObject<{
19
26
  id: z.ZodString;
20
27
  slug: z.ZodString;
21
28
  environment: z.ZodString;
22
- }, "strip", z.ZodTypeAny, {
23
- id: string;
24
- environment: string;
25
- slug: string;
26
- }, {
27
- id: string;
28
- environment: string;
29
- slug: string;
30
- }>;
29
+ }, z.core.$strip>;
31
30
  service: z.ZodObject<{
32
31
  id: z.ZodString;
33
32
  name: z.ZodString;
@@ -35,153 +34,186 @@ export declare const BundleV1Schema: z.ZodObject<{
35
34
  framework: z.ZodNullable<z.ZodString>;
36
35
  version: z.ZodNullable<z.ZodString>;
37
36
  region: z.ZodNullable<z.ZodString>;
38
- }, "strip", z.ZodTypeAny, {
39
- id: string;
40
- version: string | null;
41
- name: string;
42
- runtime: string | null;
43
- framework: string | null;
44
- region: string | null;
45
- }, {
46
- id: string;
47
- version: string | null;
48
- name: string;
49
- runtime: string | null;
50
- framework: string | null;
51
- region: string | null;
52
- }>;
37
+ }, z.core.$strip>;
53
38
  signal: z.ZodObject<{
54
39
  signal_id: z.ZodString;
55
- signal_type: z.ZodEnum<["exception", "fatal_error", "request_failure", "frontend_exception", "warning", "deprecation", "performance_issue", "retry_loop", "slow_query"]>;
56
- severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
40
+ signal_type: z.ZodEnum<{
41
+ frontend_exception: "frontend_exception";
42
+ exception: "exception";
43
+ warning: "warning";
44
+ fatal_error: "fatal_error";
45
+ request_failure: "request_failure";
46
+ deprecation: "deprecation";
47
+ performance_issue: "performance_issue";
48
+ retry_loop: "retry_loop";
49
+ slow_query: "slow_query";
50
+ }>;
51
+ severity: z.ZodEnum<{
52
+ medium: "medium";
53
+ low: "low";
54
+ high: "high";
55
+ critical: "critical";
56
+ }>;
57
57
  fingerprint: z.ZodString;
58
58
  first_seen_at: z.ZodString;
59
59
  last_seen_at: z.ZodString;
60
60
  occurrence_count: z.ZodNumber;
61
- source_event_types: z.ZodArray<z.ZodString, "many">;
62
- }, "strip", z.ZodTypeAny, {
63
- first_seen_at: string;
64
- last_seen_at: string;
65
- severity: "medium" | "low" | "high" | "critical";
66
- fingerprint: string;
67
- signal_id: string;
68
- signal_type: "frontend_exception" | "warning" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
69
- occurrence_count: number;
70
- source_event_types: string[];
71
- }, {
72
- first_seen_at: string;
73
- last_seen_at: string;
74
- severity: "medium" | "low" | "high" | "critical";
75
- fingerprint: string;
76
- signal_id: string;
77
- signal_type: "frontend_exception" | "warning" | "exception" | "fatal_error" | "request_failure" | "deprecation" | "performance_issue" | "retry_loop" | "slow_query";
78
- occurrence_count: number;
79
- source_event_types: string[];
80
- }>;
61
+ source_event_types: z.ZodArray<z.ZodString>;
62
+ }, z.core.$strip>;
81
63
  summary: z.ZodObject<{
82
64
  title: z.ZodString;
83
65
  description: z.ZodString;
84
66
  likely_cause: z.ZodNullable<z.ZodString>;
85
67
  confidence: z.ZodNumber;
86
68
  recommended_action: z.ZodNullable<z.ZodString>;
87
- severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
69
+ severity: z.ZodEnum<{
70
+ medium: "medium";
71
+ low: "low";
72
+ high: "high";
73
+ critical: "critical";
74
+ }>;
88
75
  error_type: z.ZodNullable<z.ZodString>;
89
76
  error_message: z.ZodNullable<z.ZodString>;
90
77
  first_application_frame: z.ZodNullable<z.ZodObject<{
91
78
  file: z.ZodNullable<z.ZodString>;
92
79
  line: z.ZodNullable<z.ZodNumber>;
93
80
  function: z.ZodNullable<z.ZodString>;
94
- }, "strip", z.ZodTypeAny, {
95
- function: string | null;
96
- file: string | null;
97
- line: number | null;
98
- }, {
99
- function: string | null;
100
- file: string | null;
101
- line: number | null;
102
- }>>;
81
+ }, z.core.$strip>>;
103
82
  primary_signal: z.ZodNullable<z.ZodString>;
104
83
  signals: z.ZodObject<{
105
84
  new_deploy: z.ZodBoolean;
106
85
  regression_suspected: z.ZodBoolean;
107
86
  customer_visible: z.ZodBoolean;
108
- }, "strip", z.ZodTypeAny, {
109
- new_deploy: boolean;
110
- regression_suspected: boolean;
111
- customer_visible: boolean;
112
- }, {
113
- new_deploy: boolean;
114
- regression_suspected: boolean;
115
- customer_visible: boolean;
116
- }>;
117
- }, "strip", z.ZodTypeAny, {
118
- title: string;
119
- severity: "medium" | "low" | "high" | "critical";
120
- confidence: number;
121
- description: string;
122
- recommended_action: string | null;
123
- likely_cause: string | null;
124
- error_type: string | null;
125
- error_message: string | null;
126
- first_application_frame: {
127
- function: string | null;
128
- file: string | null;
129
- line: number | null;
130
- } | null;
131
- primary_signal: string | null;
132
- signals: {
133
- new_deploy: boolean;
134
- regression_suspected: boolean;
135
- customer_visible: boolean;
136
- };
137
- }, {
138
- title: string;
139
- severity: "medium" | "low" | "high" | "critical";
140
- confidence: number;
141
- description: string;
142
- recommended_action: string | null;
143
- likely_cause: string | null;
144
- error_type: string | null;
145
- error_message: string | null;
146
- first_application_frame: {
147
- function: string | null;
148
- file: string | null;
149
- line: number | null;
150
- } | null;
151
- primary_signal: string | null;
152
- signals: {
153
- new_deploy: boolean;
154
- regression_suspected: boolean;
155
- customer_visible: boolean;
156
- };
157
- }>;
87
+ }, z.core.$strip>;
88
+ }, z.core.$strip>;
158
89
  impact: z.ZodObject<{
159
90
  affected_users_estimate: z.ZodNullable<z.ZodNumber>;
160
91
  affected_requests_estimate: z.ZodNullable<z.ZodNumber>;
161
- business_criticality: z.ZodEnum<["low", "medium", "high", "critical"]>;
92
+ business_criticality: z.ZodEnum<{
93
+ medium: "medium";
94
+ low: "low";
95
+ high: "high";
96
+ critical: "critical";
97
+ }>;
162
98
  customer_visible: z.ZodBoolean;
163
99
  regression_suspected: z.ZodBoolean;
164
- }, "strip", z.ZodTypeAny, {
165
- regression_suspected: boolean;
166
- customer_visible: boolean;
167
- affected_users_estimate: number | null;
168
- affected_requests_estimate: number | null;
169
- business_criticality: "medium" | "low" | "high" | "critical";
170
- }, {
171
- regression_suspected: boolean;
172
- customer_visible: boolean;
173
- affected_users_estimate: number | null;
174
- affected_requests_estimate: number | null;
175
- business_criticality: "medium" | "low" | "high" | "critical";
176
- }>;
100
+ }, z.core.$strip>;
177
101
  context: z.ZodObject<{
102
+ evidence: z.ZodOptional<z.ZodObject<{
103
+ version: z.ZodLiteral<1>;
104
+ primary_event_id: z.ZodString;
105
+ retained_event_count: z.ZodNumber;
106
+ retained_first_at: z.ZodNullable<z.ZodString>;
107
+ retained_last_at: z.ZodNullable<z.ZodString>;
108
+ observations: z.ZodArray<z.ZodObject<{
109
+ source_event_id: z.ZodString;
110
+ occurred_at: z.ZodString;
111
+ kind: z.ZodEnum<{
112
+ recovery: "recovery";
113
+ resource_observation: "resource_observation";
114
+ exception: "exception";
115
+ probe: "probe";
116
+ }>;
117
+ availability: z.ZodEnum<{
118
+ unknown: "unknown";
119
+ truncated: "truncated";
120
+ unsupported: "unsupported";
121
+ observed: "observed";
122
+ not_retained: "not_retained";
123
+ }>;
124
+ }, z.core.$strict>>;
125
+ }, z.core.$strict>>;
126
+ recovery: z.ZodOptional<z.ZodObject<{
127
+ version: z.ZodLiteral<1>;
128
+ outcome: z.ZodEnum<{
129
+ unknown: "unknown";
130
+ recovered: "recovered";
131
+ persisted: "persisted";
132
+ conflicting: "conflicting";
133
+ }>;
134
+ truncated: z.ZodBoolean;
135
+ attempts: z.ZodArray<z.ZodObject<{
136
+ attempt_id: z.ZodString;
137
+ outcome: z.ZodEnum<{
138
+ unknown: "unknown";
139
+ recovered: "recovered";
140
+ persisted: "persisted";
141
+ conflicting: "conflicting";
142
+ }>;
143
+ observations: z.ZodArray<z.ZodObject<{
144
+ source_event_id: z.ZodString;
145
+ occurred_at: z.ZodString;
146
+ state: z.ZodEnum<{
147
+ attempt_started: "attempt_started";
148
+ attempt_completed: "attempt_completed";
149
+ attempt_failed: "attempt_failed";
150
+ recovery_observed: "recovery_observed";
151
+ failure_persisted: "failure_persisted";
152
+ }>;
153
+ operation: z.ZodOptional<z.ZodString>;
154
+ status_code: z.ZodOptional<z.ZodNumber>;
155
+ duration_ms: z.ZodOptional<z.ZodNumber>;
156
+ }, z.core.$strict>>;
157
+ }, z.core.$strict>>;
158
+ }, z.core.$strict>>;
159
+ resource_observations: z.ZodOptional<z.ZodObject<{
160
+ version: z.ZodLiteral<1>;
161
+ items: z.ZodArray<z.ZodObject<{
162
+ source_event_id: z.ZodString;
163
+ observation: z.ZodDiscriminatedUnion<[z.ZodObject<{
164
+ kind: z.ZodLiteral<"timing">;
165
+ observed_at: z.ZodString;
166
+ source_url: z.ZodNullable<z.ZodString>;
167
+ availability: z.ZodEnum<{
168
+ unknown: "unknown";
169
+ unsupported: "unsupported";
170
+ observed: "observed";
171
+ no_match: "no_match";
172
+ withheld: "withheld";
173
+ ambiguous: "ambiguous";
174
+ }>;
175
+ response_status: z.ZodNullable<z.ZodNumber>;
176
+ duration_ms: z.ZodNullable<z.ZodNumber>;
177
+ transfer_size_bytes: z.ZodNullable<z.ZodNumber>;
178
+ }, z.core.$strict>, z.ZodObject<{
179
+ kind: z.ZodLiteral<"csp">;
180
+ observed_at: z.ZodString;
181
+ source_url: z.ZodNullable<z.ZodString>;
182
+ effective_directive: z.ZodString;
183
+ disposition: z.ZodEnum<{
184
+ enforce: "enforce";
185
+ report: "report";
186
+ }>;
187
+ document_status_code: z.ZodNullable<z.ZodNumber>;
188
+ }, z.core.$strict>], "kind">;
189
+ }, z.core.$strict>>;
190
+ }, z.core.$strict>>;
191
+ execution: z.ZodOptional<z.ZodObject<{
192
+ version: z.ZodLiteral<1>;
193
+ kind: z.ZodEnum<{
194
+ unknown: "unknown";
195
+ request: "request";
196
+ command: "command";
197
+ job: "job";
198
+ }>;
199
+ name: z.ZodNullable<z.ZodString>;
200
+ elapsed_ms: z.ZodNullable<z.ZodNumber>;
201
+ limit_ms: z.ZodNullable<z.ZodNumber>;
202
+ }, z.core.$strict>>;
178
203
  resource_failure: z.ZodOptional<z.ZodObject<{
179
204
  version: z.ZodLiteral<1>;
180
205
  host: z.ZodNullable<z.ZodString>;
181
206
  path: z.ZodString;
182
207
  type: z.ZodNullable<z.ZodString>;
183
208
  first_party: z.ZodNullable<z.ZodBoolean>;
184
- role: z.ZodEnum<["analytics", "advertising", "tag_manager", "authentication", "application_asset", "unknown"]>;
209
+ role: z.ZodEnum<{
210
+ unknown: "unknown";
211
+ analytics: "analytics";
212
+ advertising: "advertising";
213
+ tag_manager: "tag_manager";
214
+ authentication: "authentication";
215
+ application_asset: "application_asset";
216
+ }>;
185
217
  provider: z.ZodNullable<z.ZodString>;
186
218
  title: z.ZodString;
187
219
  optional_candidate: z.ZodBoolean;
@@ -190,167 +222,123 @@ export declare const BundleV1Schema: z.ZodObject<{
190
222
  items: z.ZodArray<z.ZodObject<{
191
223
  route: z.ZodString;
192
224
  occurrences: z.ZodNumber;
193
- }, "strip", z.ZodTypeAny, {
194
- route: string;
195
- occurrences: number;
196
- }, {
197
- route: string;
198
- occurrences: number;
199
- }>, "many">;
225
+ }, z.core.$strip>>;
200
226
  recorded_occurrences: z.ZodNumber;
201
227
  unattributed_occurrences: z.ZodNumber;
202
228
  omitted_routes: z.ZodNumber;
203
- coverage: z.ZodEnum<["occurrence_metadata", "retained_samples"]>;
204
- }, "strip", z.ZodTypeAny, {
205
- coverage: "occurrence_metadata" | "retained_samples";
206
- items: {
207
- route: string;
208
- occurrences: number;
209
- }[];
210
- recorded_occurrences: number;
211
- unattributed_occurrences: number;
212
- omitted_routes: number;
213
- }, {
214
- coverage: "occurrence_metadata" | "retained_samples";
215
- items: {
216
- route: string;
217
- occurrences: number;
218
- }[];
219
- recorded_occurrences: number;
220
- unattributed_occurrences: number;
221
- omitted_routes: number;
222
- }>;
229
+ coverage: z.ZodEnum<{
230
+ occurrence_metadata: "occurrence_metadata";
231
+ retained_samples: "retained_samples";
232
+ }>;
233
+ }, z.core.$strip>;
223
234
  interruption: z.ZodOptional<z.ZodObject<{
224
- visibility_state: z.ZodEnum<["hidden", "prerender", "unloaded"]>;
225
- ready_state: z.ZodEnum<["loading", "interactive"]>;
235
+ visibility_state: z.ZodEnum<{
236
+ hidden: "hidden";
237
+ prerender: "prerender";
238
+ unloaded: "unloaded";
239
+ }>;
240
+ ready_state: z.ZodEnum<{
241
+ loading: "loading";
242
+ interactive: "interactive";
243
+ }>;
226
244
  target_tag_name: z.ZodLiteral<"link">;
227
- rel: z.ZodEnum<["preload", "modulepreload", "prefetch"]>;
228
- }, "strip", z.ZodTypeAny, {
229
- rel: "preload" | "modulepreload" | "prefetch";
230
- ready_state: "loading" | "interactive";
231
- visibility_state: "hidden" | "prerender" | "unloaded";
232
- target_tag_name: "link";
233
- }, {
234
- rel: "preload" | "modulepreload" | "prefetch";
235
- ready_state: "loading" | "interactive";
236
- visibility_state: "hidden" | "prerender" | "unloaded";
237
- target_tag_name: "link";
238
- }>>;
245
+ rel: z.ZodEnum<{
246
+ preload: "preload";
247
+ modulepreload: "modulepreload";
248
+ prefetch: "prefetch";
249
+ }>;
250
+ }, z.core.$strip>>;
239
251
  recovery_failures: z.ZodOptional<z.ZodArray<z.ZodObject<{
240
- source: z.ZodEnum<["request_event", "frontend_breadcrumb"]>;
252
+ source: z.ZodEnum<{
253
+ request_event: "request_event";
254
+ frontend_breadcrumb: "frontend_breadcrumb";
255
+ }>;
241
256
  method: z.ZodString;
242
257
  path: z.ZodString;
243
258
  status_code: z.ZodNumber;
244
259
  occurred_at: z.ZodString;
245
260
  delay_ms: z.ZodNumber;
246
- }, "strip", z.ZodTypeAny, {
247
- path: string;
248
- source: "request_event" | "frontend_breadcrumb";
249
- occurred_at: string;
250
- method: string;
251
- status_code: number;
252
- delay_ms: number;
253
- }, {
254
- path: string;
255
- source: "request_event" | "frontend_breadcrumb";
256
- occurred_at: string;
257
- method: string;
258
- status_code: number;
259
- delay_ms: number;
260
- }>, "many">>;
261
- }, "strip", z.ZodTypeAny, {
262
- path: string;
263
- type: string | null;
264
- version: 1;
265
- title: string;
266
- routes: {
267
- coverage: "occurrence_metadata" | "retained_samples";
268
- items: {
269
- route: string;
270
- occurrences: number;
271
- }[];
272
- recorded_occurrences: number;
273
- unattributed_occurrences: number;
274
- omitted_routes: number;
275
- };
276
- host: string | null;
277
- first_party: boolean | null;
278
- role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
279
- provider: string | null;
280
- optional_candidate: boolean;
281
- diagnosis: string;
282
- interruption?: {
283
- rel: "preload" | "modulepreload" | "prefetch";
284
- ready_state: "loading" | "interactive";
285
- visibility_state: "hidden" | "prerender" | "unloaded";
286
- target_tag_name: "link";
287
- } | undefined;
288
- recovery_failures?: {
289
- path: string;
290
- source: "request_event" | "frontend_breadcrumb";
291
- occurred_at: string;
292
- method: string;
293
- status_code: number;
294
- delay_ms: number;
295
- }[] | undefined;
296
- }, {
297
- path: string;
298
- type: string | null;
299
- version: 1;
300
- title: string;
301
- routes: {
302
- coverage: "occurrence_metadata" | "retained_samples";
303
- items: {
304
- route: string;
305
- occurrences: number;
306
- }[];
307
- recorded_occurrences: number;
308
- unattributed_occurrences: number;
309
- omitted_routes: number;
310
- };
311
- host: string | null;
312
- first_party: boolean | null;
313
- role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
314
- provider: string | null;
315
- optional_candidate: boolean;
316
- diagnosis: string;
317
- interruption?: {
318
- rel: "preload" | "modulepreload" | "prefetch";
319
- ready_state: "loading" | "interactive";
320
- visibility_state: "hidden" | "prerender" | "unloaded";
321
- target_tag_name: "link";
322
- } | undefined;
323
- recovery_failures?: {
324
- path: string;
325
- source: "request_event" | "frontend_breadcrumb";
326
- occurred_at: string;
327
- method: string;
328
- status_code: number;
329
- delay_ms: number;
330
- }[] | undefined;
331
- }>>;
261
+ }, z.core.$strip>>>;
262
+ }, z.core.$strip>>;
332
263
  error: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodObject<{
333
264
  version: z.ZodLiteral<1>;
334
265
  name: z.ZodString;
335
266
  message: z.ZodString;
336
267
  stack: z.ZodString;
337
268
  handled: z.ZodBoolean;
338
- top_frames: z.ZodArray<z.ZodString, "many">;
339
- }, "strip", z.ZodTypeAny, {
340
- message: string;
341
- version: 1;
342
- name: string;
343
- stack: string;
344
- handled: boolean;
345
- top_frames: string[];
346
- }, {
347
- message: string;
348
- version: 1;
349
- name: string;
350
- stack: string;
351
- handled: boolean;
352
- top_frames: string[];
353
- }>>>>;
269
+ top_frames: z.ZodArray<z.ZodString>;
270
+ exception_evidence: z.ZodOptional<z.ZodObject<{
271
+ version: z.ZodLiteral<1>;
272
+ runtime: z.ZodEnum<{
273
+ unknown: "unknown";
274
+ browser: "browser";
275
+ node: "node";
276
+ python: "python";
277
+ php: "php";
278
+ jvm: "jvm";
279
+ go: "go";
280
+ ruby: "ruby";
281
+ dotnet: "dotnet";
282
+ android: "android";
283
+ swift: "swift";
284
+ react_native: "react_native";
285
+ }>;
286
+ root_id: z.ZodNumber;
287
+ nodes: z.ZodArray<z.ZodObject<{
288
+ id: z.ZodNumber;
289
+ name: z.ZodString;
290
+ message: z.ZodString;
291
+ stack: z.ZodNullable<z.ZodString>;
292
+ trace_origin: z.ZodEnum<{
293
+ unknown: "unknown";
294
+ unavailable: "unavailable";
295
+ throw: "throw";
296
+ native_fatal: "native_fatal";
297
+ capture: "capture";
298
+ runtime_reported: "runtime_reported";
299
+ }>;
300
+ parsing_status: z.ZodEnum<{
301
+ unavailable: "unavailable";
302
+ parsed: "parsed";
303
+ partial: "partial";
304
+ unparsed: "unparsed";
305
+ truncated: "truncated";
306
+ }>;
307
+ frames: z.ZodArray<z.ZodObject<{
308
+ function: z.ZodNullable<z.ZodString>;
309
+ file: z.ZodNullable<z.ZodString>;
310
+ line: z.ZodNullable<z.ZodNumber>;
311
+ column: z.ZodNullable<z.ZodNumber>;
312
+ classification: z.ZodEnum<{
313
+ unknown: "unknown";
314
+ framework: "framework";
315
+ application: "application";
316
+ sdk: "sdk";
317
+ }>;
318
+ }, z.core.$strict>>;
319
+ relationships: z.ZodArray<z.ZodObject<{
320
+ kind: z.ZodEnum<{
321
+ context: "context";
322
+ cause: "cause";
323
+ aggregate: "aggregate";
324
+ suppressed: "suppressed";
325
+ }>;
326
+ target_id: z.ZodNumber;
327
+ }, z.core.$strict>>;
328
+ }, z.core.$strict>>;
329
+ truncated: z.ZodBoolean;
330
+ unavailable_reason: z.ZodNullable<z.ZodEnum<{
331
+ unknown: "unknown";
332
+ unsupported: "unsupported";
333
+ unsafe: "unsafe";
334
+ budget_exceeded: "budget_exceeded";
335
+ }>>;
336
+ }, z.core.$strict>>;
337
+ exception_evidence_source: z.ZodOptional<z.ZodEnum<{
338
+ sdk: "sdk";
339
+ retained_stack: "retained_stack";
340
+ }>>;
341
+ }, z.core.$strip>>>>;
354
342
  request: z.ZodOptional<z.ZodNullable<z.ZodObject<{
355
343
  version: z.ZodLiteral<1>;
356
344
  method: z.ZodString;
@@ -360,44 +348,14 @@ export declare const BundleV1Schema: z.ZodObject<{
360
348
  headers: z.ZodRecord<z.ZodString, z.ZodUnknown>;
361
349
  body: z.ZodNullable<z.ZodUnknown>;
362
350
  request_id: z.ZodNullable<z.ZodString>;
363
- }, "strip", z.ZodTypeAny, {
364
- path: string;
365
- version: 1;
366
- query: Record<string, unknown>;
367
- request_id: string | null;
368
- method: string;
369
- headers: Record<string, unknown>;
370
- route_template: string | null;
371
- body?: unknown;
372
- }, {
373
- path: string;
374
- version: 1;
375
- query: Record<string, unknown>;
376
- request_id: string | null;
377
- method: string;
378
- headers: Record<string, unknown>;
379
- route_template: string | null;
380
- body?: unknown;
381
- }>>>;
351
+ }, z.core.$strip>>>;
382
352
  response: z.ZodOptional<z.ZodNullable<z.ZodObject<{
383
353
  version: z.ZodLiteral<1>;
384
354
  status_code: z.ZodNumber;
385
355
  duration_ms: z.ZodNullable<z.ZodNumber>;
386
356
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
387
357
  body: z.ZodOptional<z.ZodUnknown>;
388
- }, "strip", z.ZodTypeAny, {
389
- version: 1;
390
- duration_ms: number | null;
391
- status_code: number;
392
- body?: unknown;
393
- headers?: Record<string, unknown> | undefined;
394
- }, {
395
- version: 1;
396
- duration_ms: number | null;
397
- status_code: number;
398
- body?: unknown;
399
- headers?: Record<string, unknown> | undefined;
400
- }>>>;
358
+ }, z.core.$strip>>>;
401
359
  logs: z.ZodOptional<z.ZodNullable<z.ZodObject<{
402
360
  version: z.ZodLiteral<1>;
403
361
  items: z.ZodArray<z.ZodObject<{
@@ -405,208 +363,50 @@ export declare const BundleV1Schema: z.ZodObject<{
405
363
  message: z.ZodString;
406
364
  timestamp: z.ZodString;
407
365
  attributes: z.ZodRecord<z.ZodString, z.ZodUnknown>;
408
- }, "strip", z.ZodTypeAny, {
409
- message: string;
410
- timestamp: string;
411
- level: string;
412
- attributes: Record<string, unknown>;
413
- }, {
414
- message: string;
415
- timestamp: string;
416
- level: string;
417
- attributes: Record<string, unknown>;
418
- }>, "many">;
419
- }, "strip", z.ZodTypeAny, {
420
- version: 1;
421
- items: {
422
- message: string;
423
- timestamp: string;
424
- level: string;
425
- attributes: Record<string, unknown>;
426
- }[];
427
- }, {
428
- version: 1;
429
- items: {
430
- message: string;
431
- timestamp: string;
432
- level: string;
433
- attributes: Record<string, unknown>;
434
- }[];
435
- }>>>;
366
+ }, z.core.$strip>>;
367
+ }, z.core.$strip>>>;
436
368
  frontend: z.ZodOptional<z.ZodNullable<z.ZodObject<{
437
369
  version: z.ZodLiteral<1>;
438
370
  route_changes: z.ZodArray<z.ZodObject<{
439
371
  from: z.ZodString;
440
372
  to: z.ZodString;
441
373
  ts: z.ZodString;
442
- }, "strip", z.ZodTypeAny, {
443
- to: string;
444
- from: string;
445
- ts: string;
446
- }, {
447
- to: string;
448
- from: string;
449
- ts: string;
450
- }>, "many">;
374
+ }, z.core.$strip>>;
451
375
  clicks: z.ZodArray<z.ZodObject<{
452
376
  selector: z.ZodString;
453
377
  label: z.ZodString;
454
378
  ts: z.ZodString;
455
- }, "strip", z.ZodTypeAny, {
456
- label: string;
457
- ts: string;
458
- selector: string;
459
- }, {
460
- label: string;
461
- ts: string;
462
- selector: string;
463
- }>, "many">;
379
+ }, z.core.$strip>>;
464
380
  form_submissions: z.ZodArray<z.ZodObject<{
465
381
  form: z.ZodString;
466
382
  fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
467
383
  ts: z.ZodString;
468
- }, "strip", z.ZodTypeAny, {
469
- ts: string;
470
- form: string;
471
- fields: Record<string, unknown>;
472
- }, {
473
- ts: string;
474
- form: string;
475
- fields: Record<string, unknown>;
476
- }>, "many">;
477
- console_logs: z.ZodArray<z.ZodUnknown, "many">;
384
+ }, z.core.$strip>>;
385
+ console_logs: z.ZodArray<z.ZodUnknown>;
478
386
  network_requests: z.ZodArray<z.ZodObject<{
479
387
  method: z.ZodString;
480
388
  url: z.ZodString;
481
389
  status: z.ZodNumber;
482
390
  ts: z.ZodString;
483
391
  duration_ms: z.ZodOptional<z.ZodNumber>;
484
- caller_trace: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
392
+ caller_trace: z.ZodOptional<z.ZodArray<z.ZodString>>;
485
393
  response_body: z.ZodOptional<z.ZodUnknown>;
486
394
  request_body: z.ZodOptional<z.ZodUnknown>;
487
395
  response_headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
488
396
  response_content_length: z.ZodOptional<z.ZodNumber>;
489
- }, "strip", z.ZodTypeAny, {
490
- status: number;
491
- url: string;
492
- method: string;
493
- ts: string;
494
- duration_ms?: number | undefined;
495
- response_headers?: Record<string, string> | undefined;
496
- response_body?: unknown;
497
- caller_trace?: string[] | undefined;
498
- request_body?: unknown;
499
- response_content_length?: number | undefined;
500
- }, {
501
- status: number;
502
- url: string;
503
- method: string;
504
- ts: string;
505
- duration_ms?: number | undefined;
506
- response_headers?: Record<string, string> | undefined;
507
- response_body?: unknown;
508
- caller_trace?: string[] | undefined;
509
- request_body?: unknown;
510
- response_content_length?: number | undefined;
511
- }>, "many">;
512
- exceptions: z.ZodArray<z.ZodUnknown, "many">;
397
+ }, z.core.$strip>>;
398
+ exceptions: z.ZodArray<z.ZodUnknown>;
513
399
  dom_context: z.ZodNullable<z.ZodObject<{
514
400
  mode: z.ZodLiteral<"lightweight">;
515
401
  html_excerpt: z.ZodString;
516
- }, "strip", z.ZodTypeAny, {
517
- mode: "lightweight";
518
- html_excerpt: string;
519
- }, {
520
- mode: "lightweight";
521
- html_excerpt: string;
522
- }>>;
523
- }, "strip", z.ZodTypeAny, {
524
- version: 1;
525
- dom_context: {
526
- mode: "lightweight";
527
- html_excerpt: string;
528
- } | null;
529
- route_changes: {
530
- to: string;
531
- from: string;
532
- ts: string;
533
- }[];
534
- clicks: {
535
- label: string;
536
- ts: string;
537
- selector: string;
538
- }[];
539
- form_submissions: {
540
- ts: string;
541
- form: string;
542
- fields: Record<string, unknown>;
543
- }[];
544
- console_logs: unknown[];
545
- network_requests: {
546
- status: number;
547
- url: string;
548
- method: string;
549
- ts: string;
550
- duration_ms?: number | undefined;
551
- response_headers?: Record<string, string> | undefined;
552
- response_body?: unknown;
553
- caller_trace?: string[] | undefined;
554
- request_body?: unknown;
555
- response_content_length?: number | undefined;
556
- }[];
557
- exceptions: unknown[];
558
- }, {
559
- version: 1;
560
- dom_context: {
561
- mode: "lightweight";
562
- html_excerpt: string;
563
- } | null;
564
- route_changes: {
565
- to: string;
566
- from: string;
567
- ts: string;
568
- }[];
569
- clicks: {
570
- label: string;
571
- ts: string;
572
- selector: string;
573
- }[];
574
- form_submissions: {
575
- ts: string;
576
- form: string;
577
- fields: Record<string, unknown>;
578
- }[];
579
- console_logs: unknown[];
580
- network_requests: {
581
- status: number;
582
- url: string;
583
- method: string;
584
- ts: string;
585
- duration_ms?: number | undefined;
586
- response_headers?: Record<string, string> | undefined;
587
- response_body?: unknown;
588
- caller_trace?: string[] | undefined;
589
- request_body?: unknown;
590
- response_content_length?: number | undefined;
591
- }[];
592
- exceptions: unknown[];
593
- }>>>;
402
+ }, z.core.$strip>>;
403
+ }, z.core.$strip>>>;
594
404
  environment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
595
405
  version: z.ZodLiteral<1>;
596
406
  os: z.ZodNullable<z.ZodString>;
597
407
  host: z.ZodNullable<z.ZodString>;
598
408
  container_id: z.ZodNullable<z.ZodString>;
599
- }, "strip", z.ZodTypeAny, {
600
- version: 1;
601
- os: string | null;
602
- host: string | null;
603
- container_id: string | null;
604
- }, {
605
- version: 1;
606
- os: string | null;
607
- host: string | null;
608
- container_id: string | null;
609
- }>>>;
409
+ }, z.core.$strip>>>;
610
410
  deploy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
611
411
  version: z.ZodLiteral<1>;
612
412
  commit_sha: z.ZodNullable<z.ZodString>;
@@ -614,21 +414,7 @@ export declare const BundleV1Schema: z.ZodObject<{
614
414
  branch: z.ZodNullable<z.ZodString>;
615
415
  deployed_at: z.ZodNullable<z.ZodString>;
616
416
  regression_window: z.ZodNullable<z.ZodBoolean>;
617
- }, "strip", z.ZodTypeAny, {
618
- version: 1;
619
- commit_sha: string | null;
620
- branch: string | null;
621
- deployed_at: string | null;
622
- deploy_version: string | null;
623
- regression_window: boolean | null;
624
- }, {
625
- version: 1;
626
- commit_sha: string | null;
627
- branch: string | null;
628
- deployed_at: string | null;
629
- deploy_version: string | null;
630
- regression_window: boolean | null;
631
- }>>>;
417
+ }, z.core.$strip>>>;
632
418
  runtime: z.ZodOptional<z.ZodNullable<z.ZodObject<{
633
419
  version: z.ZodLiteral<1>;
634
420
  name: z.ZodString;
@@ -639,7 +425,7 @@ export declare const BundleV1Schema: z.ZodObject<{
639
425
  cwd: z.ZodNullable<z.ZodString>;
640
426
  uptime_sec: z.ZodNullable<z.ZodNumber>;
641
427
  hostname: z.ZodNullable<z.ZodString>;
642
- thread_id: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
428
+ thread_id: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
643
429
  framework: z.ZodNullable<z.ZodString>;
644
430
  framework_version: z.ZodNullable<z.ZodString>;
645
431
  memory: z.ZodNullable<z.ZodObject<{
@@ -648,63 +434,9 @@ export declare const BundleV1Schema: z.ZodObject<{
648
434
  heap_used: z.ZodNullable<z.ZodNumber>;
649
435
  external: z.ZodNullable<z.ZodNumber>;
650
436
  peak: z.ZodNullable<z.ZodNumber>;
651
- }, "strict", z.ZodTypeAny, {
652
- rss: number | null;
653
- heap_total: number | null;
654
- heap_used: number | null;
655
- external: number | null;
656
- peak: number | null;
657
- }, {
658
- rss: number | null;
659
- heap_total: number | null;
660
- heap_used: number | null;
661
- external: number | null;
662
- peak: number | null;
663
- }>>;
437
+ }, z.core.$strict>>;
664
438
  framework_extras: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
665
- }, "strip", z.ZodTypeAny, {
666
- version: 1;
667
- name: string;
668
- framework: string | null;
669
- platform: string | null;
670
- arch: string | null;
671
- pid: number | null;
672
- cwd: string | null;
673
- uptime_sec: number | null;
674
- hostname: string | null;
675
- thread_id: string | number | null;
676
- framework_version: string | null;
677
- memory: {
678
- rss: number | null;
679
- heap_total: number | null;
680
- heap_used: number | null;
681
- external: number | null;
682
- peak: number | null;
683
- } | null;
684
- runtime_version: string | null;
685
- framework_extras?: Record<string, unknown> | null | undefined;
686
- }, {
687
- version: 1;
688
- name: string;
689
- framework: string | null;
690
- platform: string | null;
691
- arch: string | null;
692
- pid: number | null;
693
- cwd: string | null;
694
- uptime_sec: number | null;
695
- hostname: string | null;
696
- thread_id: string | number | null;
697
- framework_version: string | null;
698
- memory: {
699
- rss: number | null;
700
- heap_total: number | null;
701
- heap_used: number | null;
702
- external: number | null;
703
- peak: number | null;
704
- } | null;
705
- runtime_version: string | null;
706
- framework_extras?: Record<string, unknown> | null | undefined;
707
- }>>>;
439
+ }, z.core.$strip>>>;
708
440
  git: z.ZodOptional<z.ZodNullable<z.ZodObject<{
709
441
  version: z.ZodLiteral<1>;
710
442
  commit: z.ZodNullable<z.ZodString>;
@@ -712,54 +444,26 @@ export declare const BundleV1Schema: z.ZodObject<{
712
444
  branch: z.ZodNullable<z.ZodString>;
713
445
  repo: z.ZodNullable<z.ZodString>;
714
446
  dirty: z.ZodBoolean;
715
- source: z.ZodEnum<["config", "env", "local", "unknown"]>;
716
- }, "strip", z.ZodTypeAny, {
717
- dirty: boolean;
718
- version: 1;
719
- source: "unknown" | "config" | "env" | "local";
720
- branch: string | null;
721
- commit: string | null;
722
- commit_short: string | null;
723
- repo: string | null;
724
- }, {
725
- dirty: boolean;
726
- version: 1;
727
- source: "unknown" | "config" | "env" | "local";
728
- branch: string | null;
729
- commit: string | null;
730
- commit_short: string | null;
731
- repo: string | null;
732
- }>>>;
447
+ source: z.ZodEnum<{
448
+ unknown: "unknown";
449
+ local: "local";
450
+ config: "config";
451
+ env: "env";
452
+ }>;
453
+ }, z.core.$strip>>>;
733
454
  dependencies: z.ZodOptional<z.ZodNullable<z.ZodObject<{
734
455
  version: z.ZodLiteral<1>;
735
456
  items: z.ZodArray<z.ZodObject<{
736
457
  name: z.ZodString;
737
- status: z.ZodEnum<["ok", "degraded", "failed", "unknown"]>;
458
+ status: z.ZodEnum<{
459
+ unknown: "unknown";
460
+ failed: "failed";
461
+ degraded: "degraded";
462
+ ok: "ok";
463
+ }>;
738
464
  notes: z.ZodNullable<z.ZodString>;
739
- }, "strip", z.ZodTypeAny, {
740
- status: "unknown" | "failed" | "degraded" | "ok";
741
- name: string;
742
- notes: string | null;
743
- }, {
744
- status: "unknown" | "failed" | "degraded" | "ok";
745
- name: string;
746
- notes: string | null;
747
- }>, "many">;
748
- }, "strip", z.ZodTypeAny, {
749
- version: 1;
750
- items: {
751
- status: "unknown" | "failed" | "degraded" | "ok";
752
- name: string;
753
- notes: string | null;
754
- }[];
755
- }, {
756
- version: 1;
757
- items: {
758
- status: "unknown" | "failed" | "degraded" | "ok";
759
- name: string;
760
- notes: string | null;
761
- }[];
762
- }>>>;
465
+ }, z.core.$strip>>;
466
+ }, z.core.$strip>>>;
763
467
  probe_data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
764
468
  version: z.ZodLiteral<1>;
765
469
  items: z.ZodArray<z.ZodObject<{
@@ -767,525 +471,44 @@ export declare const BundleV1Schema: z.ZodObject<{
767
471
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
768
472
  timestamp: z.ZodString;
769
473
  activation_id: z.ZodNullable<z.ZodString>;
770
- }, "strip", z.ZodTypeAny, {
771
- label: string;
772
- data: Record<string, unknown>;
773
- timestamp: string;
774
- activation_id: string | null;
775
- }, {
776
- label: string;
777
- data: Record<string, unknown>;
778
- timestamp: string;
779
- activation_id: string | null;
780
- }>, "many">;
781
- }, "strip", z.ZodTypeAny, {
782
- version: 1;
783
- items: {
784
- label: string;
785
- data: Record<string, unknown>;
786
- timestamp: string;
787
- activation_id: string | null;
788
- }[];
789
- }, {
790
- version: 1;
791
- items: {
792
- label: string;
793
- data: Record<string, unknown>;
794
- timestamp: string;
795
- activation_id: string | null;
796
- }[];
797
- }>>>;
474
+ }, z.core.$strip>>;
475
+ }, z.core.$strip>>>;
798
476
  device: z.ZodOptional<z.ZodNullable<z.ZodObject<{
799
477
  version: z.ZodLiteral<1>;
800
478
  user_agent: z.ZodNullable<z.ZodString>;
801
479
  browser: z.ZodObject<{
802
480
  name: z.ZodNullable<z.ZodString>;
803
481
  version: z.ZodNullable<z.ZodString>;
804
- }, "strip", z.ZodTypeAny, {
805
- version: string | null;
806
- name: string | null;
807
- }, {
808
- version: string | null;
809
- name: string | null;
810
- }>;
482
+ }, z.core.$strip>;
811
483
  os: z.ZodObject<{
812
484
  name: z.ZodNullable<z.ZodString>;
813
485
  version: z.ZodNullable<z.ZodString>;
814
- }, "strip", z.ZodTypeAny, {
815
- version: string | null;
816
- name: string | null;
817
- }, {
818
- version: string | null;
819
- name: string | null;
486
+ }, z.core.$strip>;
487
+ device_type: z.ZodEnum<{
488
+ unknown: "unknown";
489
+ desktop: "desktop";
490
+ mobile: "mobile";
491
+ tablet: "tablet";
820
492
  }>;
821
- device_type: z.ZodEnum<["desktop", "mobile", "tablet", "unknown"]>;
822
493
  screen: z.ZodObject<{
823
494
  width: z.ZodNumber;
824
495
  height: z.ZodNumber;
825
- }, "strip", z.ZodTypeAny, {
826
- width: number;
827
- height: number;
828
- }, {
829
- width: number;
830
- height: number;
831
- }>;
496
+ }, z.core.$strip>;
832
497
  viewport: z.ZodObject<{
833
498
  width: z.ZodNumber;
834
499
  height: z.ZodNumber;
835
- }, "strip", z.ZodTypeAny, {
836
- width: number;
837
- height: number;
838
- }, {
839
- width: number;
840
- height: number;
841
- }>;
500
+ }, z.core.$strip>;
842
501
  device_pixel_ratio: z.ZodNullable<z.ZodNumber>;
843
502
  touch_capable: z.ZodNullable<z.ZodBoolean>;
844
503
  language: z.ZodNullable<z.ZodString>;
845
504
  connection_type: z.ZodNullable<z.ZodString>;
846
- color_scheme_preference: z.ZodNullable<z.ZodEnum<["light", "dark", "no-preference"]>>;
847
- }, "strip", z.ZodTypeAny, {
848
- version: 1;
849
- device_type: "unknown" | "desktop" | "mobile" | "tablet";
850
- language: string | null;
851
- browser: {
852
- version: string | null;
853
- name: string | null;
854
- };
855
- os: {
856
- version: string | null;
857
- name: string | null;
858
- };
859
- user_agent: string | null;
860
- screen: {
861
- width: number;
862
- height: number;
863
- };
864
- viewport: {
865
- width: number;
866
- height: number;
867
- };
868
- device_pixel_ratio: number | null;
869
- touch_capable: boolean | null;
870
- connection_type: string | null;
871
- color_scheme_preference: "light" | "dark" | "no-preference" | null;
872
- }, {
873
- version: 1;
874
- device_type: "unknown" | "desktop" | "mobile" | "tablet";
875
- language: string | null;
876
- browser: {
877
- version: string | null;
878
- name: string | null;
879
- };
880
- os: {
881
- version: string | null;
882
- name: string | null;
883
- };
884
- user_agent: string | null;
885
- screen: {
886
- width: number;
887
- height: number;
888
- };
889
- viewport: {
890
- width: number;
891
- height: number;
892
- };
893
- device_pixel_ratio: number | null;
894
- touch_capable: boolean | null;
895
- connection_type: string | null;
896
- color_scheme_preference: "light" | "dark" | "no-preference" | null;
897
- }>>>;
898
- }, "strip", z.ZodTypeAny, {
899
- environment?: {
900
- version: 1;
901
- os: string | null;
902
- host: string | null;
903
- container_id: string | null;
904
- } | null | undefined;
905
- runtime?: {
906
- version: 1;
907
- name: string;
908
- framework: string | null;
909
- platform: string | null;
910
- arch: string | null;
911
- pid: number | null;
912
- cwd: string | null;
913
- uptime_sec: number | null;
914
- hostname: string | null;
915
- thread_id: string | number | null;
916
- framework_version: string | null;
917
- memory: {
918
- rss: number | null;
919
- heap_total: number | null;
920
- heap_used: number | null;
921
- external: number | null;
922
- peak: number | null;
923
- } | null;
924
- runtime_version: string | null;
925
- framework_extras?: Record<string, unknown> | null | undefined;
926
- } | null | undefined;
927
- request?: {
928
- path: string;
929
- version: 1;
930
- query: Record<string, unknown>;
931
- request_id: string | null;
932
- method: string;
933
- headers: Record<string, unknown>;
934
- route_template: string | null;
935
- body?: unknown;
936
- } | null | undefined;
937
- response?: {
938
- version: 1;
939
- duration_ms: number | null;
940
- status_code: number;
941
- body?: unknown;
942
- headers?: Record<string, unknown> | undefined;
943
- } | null | undefined;
944
- probe_data?: {
945
- version: 1;
946
- items: {
947
- label: string;
948
- data: Record<string, unknown>;
949
- timestamp: string;
950
- activation_id: string | null;
951
- }[];
952
- } | null | undefined;
953
- device?: {
954
- version: 1;
955
- device_type: "unknown" | "desktop" | "mobile" | "tablet";
956
- language: string | null;
957
- browser: {
958
- version: string | null;
959
- name: string | null;
960
- };
961
- os: {
962
- version: string | null;
963
- name: string | null;
964
- };
965
- user_agent: string | null;
966
- screen: {
967
- width: number;
968
- height: number;
969
- };
970
- viewport: {
971
- width: number;
972
- height: number;
973
- };
974
- device_pixel_ratio: number | null;
975
- touch_capable: boolean | null;
976
- connection_type: string | null;
977
- color_scheme_preference: "light" | "dark" | "no-preference" | null;
978
- } | null | undefined;
979
- error?: {
980
- message: string;
981
- version: 1;
982
- name: string;
983
- stack: string;
984
- handled: boolean;
985
- top_frames: string[];
986
- } | null | undefined;
987
- resource_failure?: {
988
- path: string;
989
- type: string | null;
990
- version: 1;
991
- title: string;
992
- routes: {
993
- coverage: "occurrence_metadata" | "retained_samples";
994
- items: {
995
- route: string;
996
- occurrences: number;
997
- }[];
998
- recorded_occurrences: number;
999
- unattributed_occurrences: number;
1000
- omitted_routes: number;
1001
- };
1002
- host: string | null;
1003
- first_party: boolean | null;
1004
- role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
1005
- provider: string | null;
1006
- optional_candidate: boolean;
1007
- diagnosis: string;
1008
- interruption?: {
1009
- rel: "preload" | "modulepreload" | "prefetch";
1010
- ready_state: "loading" | "interactive";
1011
- visibility_state: "hidden" | "prerender" | "unloaded";
1012
- target_tag_name: "link";
1013
- } | undefined;
1014
- recovery_failures?: {
1015
- path: string;
1016
- source: "request_event" | "frontend_breadcrumb";
1017
- occurred_at: string;
1018
- method: string;
1019
- status_code: number;
1020
- delay_ms: number;
1021
- }[] | undefined;
1022
- } | undefined;
1023
- logs?: {
1024
- version: 1;
1025
- items: {
1026
- message: string;
1027
- timestamp: string;
1028
- level: string;
1029
- attributes: Record<string, unknown>;
1030
- }[];
1031
- } | null | undefined;
1032
- frontend?: {
1033
- version: 1;
1034
- dom_context: {
1035
- mode: "lightweight";
1036
- html_excerpt: string;
1037
- } | null;
1038
- route_changes: {
1039
- to: string;
1040
- from: string;
1041
- ts: string;
1042
- }[];
1043
- clicks: {
1044
- label: string;
1045
- ts: string;
1046
- selector: string;
1047
- }[];
1048
- form_submissions: {
1049
- ts: string;
1050
- form: string;
1051
- fields: Record<string, unknown>;
1052
- }[];
1053
- console_logs: unknown[];
1054
- network_requests: {
1055
- status: number;
1056
- url: string;
1057
- method: string;
1058
- ts: string;
1059
- duration_ms?: number | undefined;
1060
- response_headers?: Record<string, string> | undefined;
1061
- response_body?: unknown;
1062
- caller_trace?: string[] | undefined;
1063
- request_body?: unknown;
1064
- response_content_length?: number | undefined;
1065
- }[];
1066
- exceptions: unknown[];
1067
- } | null | undefined;
1068
- deploy?: {
1069
- version: 1;
1070
- commit_sha: string | null;
1071
- branch: string | null;
1072
- deployed_at: string | null;
1073
- deploy_version: string | null;
1074
- regression_window: boolean | null;
1075
- } | null | undefined;
1076
- git?: {
1077
- dirty: boolean;
1078
- version: 1;
1079
- source: "unknown" | "config" | "env" | "local";
1080
- branch: string | null;
1081
- commit: string | null;
1082
- commit_short: string | null;
1083
- repo: string | null;
1084
- } | null | undefined;
1085
- dependencies?: {
1086
- version: 1;
1087
- items: {
1088
- status: "unknown" | "failed" | "degraded" | "ok";
1089
- name: string;
1090
- notes: string | null;
1091
- }[];
1092
- } | null | undefined;
1093
- }, {
1094
- environment?: {
1095
- version: 1;
1096
- os: string | null;
1097
- host: string | null;
1098
- container_id: string | null;
1099
- } | null | undefined;
1100
- runtime?: {
1101
- version: 1;
1102
- name: string;
1103
- framework: string | null;
1104
- platform: string | null;
1105
- arch: string | null;
1106
- pid: number | null;
1107
- cwd: string | null;
1108
- uptime_sec: number | null;
1109
- hostname: string | null;
1110
- thread_id: string | number | null;
1111
- framework_version: string | null;
1112
- memory: {
1113
- rss: number | null;
1114
- heap_total: number | null;
1115
- heap_used: number | null;
1116
- external: number | null;
1117
- peak: number | null;
1118
- } | null;
1119
- runtime_version: string | null;
1120
- framework_extras?: Record<string, unknown> | null | undefined;
1121
- } | null | undefined;
1122
- request?: {
1123
- path: string;
1124
- version: 1;
1125
- query: Record<string, unknown>;
1126
- request_id: string | null;
1127
- method: string;
1128
- headers: Record<string, unknown>;
1129
- route_template: string | null;
1130
- body?: unknown;
1131
- } | null | undefined;
1132
- response?: {
1133
- version: 1;
1134
- duration_ms: number | null;
1135
- status_code: number;
1136
- body?: unknown;
1137
- headers?: Record<string, unknown> | undefined;
1138
- } | null | undefined;
1139
- probe_data?: {
1140
- version: 1;
1141
- items: {
1142
- label: string;
1143
- data: Record<string, unknown>;
1144
- timestamp: string;
1145
- activation_id: string | null;
1146
- }[];
1147
- } | null | undefined;
1148
- device?: {
1149
- version: 1;
1150
- device_type: "unknown" | "desktop" | "mobile" | "tablet";
1151
- language: string | null;
1152
- browser: {
1153
- version: string | null;
1154
- name: string | null;
1155
- };
1156
- os: {
1157
- version: string | null;
1158
- name: string | null;
1159
- };
1160
- user_agent: string | null;
1161
- screen: {
1162
- width: number;
1163
- height: number;
1164
- };
1165
- viewport: {
1166
- width: number;
1167
- height: number;
1168
- };
1169
- device_pixel_ratio: number | null;
1170
- touch_capable: boolean | null;
1171
- connection_type: string | null;
1172
- color_scheme_preference: "light" | "dark" | "no-preference" | null;
1173
- } | null | undefined;
1174
- error?: {
1175
- message: string;
1176
- version: 1;
1177
- name: string;
1178
- stack: string;
1179
- handled: boolean;
1180
- top_frames: string[];
1181
- } | null | undefined;
1182
- resource_failure?: {
1183
- path: string;
1184
- type: string | null;
1185
- version: 1;
1186
- title: string;
1187
- routes: {
1188
- coverage: "occurrence_metadata" | "retained_samples";
1189
- items: {
1190
- route: string;
1191
- occurrences: number;
1192
- }[];
1193
- recorded_occurrences: number;
1194
- unattributed_occurrences: number;
1195
- omitted_routes: number;
1196
- };
1197
- host: string | null;
1198
- first_party: boolean | null;
1199
- role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
1200
- provider: string | null;
1201
- optional_candidate: boolean;
1202
- diagnosis: string;
1203
- interruption?: {
1204
- rel: "preload" | "modulepreload" | "prefetch";
1205
- ready_state: "loading" | "interactive";
1206
- visibility_state: "hidden" | "prerender" | "unloaded";
1207
- target_tag_name: "link";
1208
- } | undefined;
1209
- recovery_failures?: {
1210
- path: string;
1211
- source: "request_event" | "frontend_breadcrumb";
1212
- occurred_at: string;
1213
- method: string;
1214
- status_code: number;
1215
- delay_ms: number;
1216
- }[] | undefined;
1217
- } | undefined;
1218
- logs?: {
1219
- version: 1;
1220
- items: {
1221
- message: string;
1222
- timestamp: string;
1223
- level: string;
1224
- attributes: Record<string, unknown>;
1225
- }[];
1226
- } | null | undefined;
1227
- frontend?: {
1228
- version: 1;
1229
- dom_context: {
1230
- mode: "lightweight";
1231
- html_excerpt: string;
1232
- } | null;
1233
- route_changes: {
1234
- to: string;
1235
- from: string;
1236
- ts: string;
1237
- }[];
1238
- clicks: {
1239
- label: string;
1240
- ts: string;
1241
- selector: string;
1242
- }[];
1243
- form_submissions: {
1244
- ts: string;
1245
- form: string;
1246
- fields: Record<string, unknown>;
1247
- }[];
1248
- console_logs: unknown[];
1249
- network_requests: {
1250
- status: number;
1251
- url: string;
1252
- method: string;
1253
- ts: string;
1254
- duration_ms?: number | undefined;
1255
- response_headers?: Record<string, string> | undefined;
1256
- response_body?: unknown;
1257
- caller_trace?: string[] | undefined;
1258
- request_body?: unknown;
1259
- response_content_length?: number | undefined;
1260
- }[];
1261
- exceptions: unknown[];
1262
- } | null | undefined;
1263
- deploy?: {
1264
- version: 1;
1265
- commit_sha: string | null;
1266
- branch: string | null;
1267
- deployed_at: string | null;
1268
- deploy_version: string | null;
1269
- regression_window: boolean | null;
1270
- } | null | undefined;
1271
- git?: {
1272
- dirty: boolean;
1273
- version: 1;
1274
- source: "unknown" | "config" | "env" | "local";
1275
- branch: string | null;
1276
- commit: string | null;
1277
- commit_short: string | null;
1278
- repo: string | null;
1279
- } | null | undefined;
1280
- dependencies?: {
1281
- version: 1;
1282
- items: {
1283
- status: "unknown" | "failed" | "degraded" | "ok";
1284
- name: string;
1285
- notes: string | null;
1286
- }[];
1287
- } | null | undefined;
1288
- }>;
505
+ color_scheme_preference: z.ZodNullable<z.ZodEnum<{
506
+ light: "light";
507
+ dark: "dark";
508
+ "no-preference": "no-preference";
509
+ }>>;
510
+ }, z.core.$strip>>>;
511
+ }, z.core.$strip>;
1289
512
  reproduction: z.ZodObject<{
1290
513
  possible: z.ZodBoolean;
1291
514
  confidence: z.ZodNumber;
@@ -1299,775 +522,41 @@ export declare const BundleV1Schema: z.ZodObject<{
1299
522
  headers: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1300
523
  query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1301
524
  body: z.ZodNullable<z.ZodUnknown>;
1302
- }, "strip", z.ZodTypeAny, {
1303
- url: string;
1304
- method: string;
1305
- headers: Record<string, unknown>;
1306
- query?: Record<string, unknown> | undefined;
1307
- body?: unknown;
1308
- }, {
1309
- url: string;
1310
- method: string;
1311
- headers: Record<string, unknown>;
1312
- query?: Record<string, unknown> | undefined;
1313
- body?: unknown;
1314
- }>>;
1315
- }, "strip", z.ZodTypeAny, {
1316
- curl: string | null;
1317
- httpie: string | null;
1318
- json_spec: {
1319
- url: string;
1320
- method: string;
1321
- headers: Record<string, unknown>;
1322
- query?: Record<string, unknown> | undefined;
1323
- body?: unknown;
1324
- } | null;
1325
- }, {
1326
- curl: string | null;
1327
- httpie: string | null;
1328
- json_spec: {
1329
- url: string;
1330
- method: string;
1331
- headers: Record<string, unknown>;
1332
- query?: Record<string, unknown> | undefined;
1333
- body?: unknown;
1334
- } | null;
1335
- }>>;
525
+ }, z.core.$strip>>;
526
+ }, z.core.$strip>>;
1336
527
  feasibility_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1337
528
  standard_http_bugs: z.ZodString;
1338
529
  frontend_interaction_plus_failing_request: z.ZodString;
1339
530
  background_jobs: z.ZodString;
1340
531
  race_conditions: z.ZodString;
1341
532
  external_outage_timing: z.ZodString;
1342
- }, "strip", z.ZodTypeAny, {
1343
- standard_http_bugs: string;
1344
- frontend_interaction_plus_failing_request: string;
1345
- background_jobs: string;
1346
- race_conditions: string;
1347
- external_outage_timing: string;
1348
- }, {
1349
- standard_http_bugs: string;
1350
- frontend_interaction_plus_failing_request: string;
1351
- background_jobs: string;
1352
- race_conditions: string;
1353
- external_outage_timing: string;
1354
- }>>>;
1355
- }, "strip", z.ZodTypeAny, {
1356
- confidence: number;
1357
- reason: string;
1358
- possible: boolean;
1359
- artifacts: {
1360
- curl: string | null;
1361
- httpie: string | null;
1362
- json_spec: {
1363
- url: string;
1364
- method: string;
1365
- headers: Record<string, unknown>;
1366
- query?: Record<string, unknown> | undefined;
1367
- body?: unknown;
1368
- } | null;
1369
- } | null;
1370
- feasibility_reference?: {
1371
- standard_http_bugs: string;
1372
- frontend_interaction_plus_failing_request: string;
1373
- background_jobs: string;
1374
- race_conditions: string;
1375
- external_outage_timing: string;
1376
- } | null | undefined;
1377
- }, {
1378
- confidence: number;
1379
- reason: string;
1380
- possible: boolean;
1381
- artifacts: {
1382
- curl: string | null;
1383
- httpie: string | null;
1384
- json_spec: {
1385
- url: string;
1386
- method: string;
1387
- headers: Record<string, unknown>;
1388
- query?: Record<string, unknown> | undefined;
1389
- body?: unknown;
1390
- } | null;
1391
- } | null;
1392
- feasibility_reference?: {
1393
- standard_http_bugs: string;
1394
- frontend_interaction_plus_failing_request: string;
1395
- background_jobs: string;
1396
- race_conditions: string;
1397
- external_outage_timing: string;
1398
- } | null | undefined;
1399
- }>;
533
+ }, z.core.$strip>>>;
534
+ }, z.core.$strip>;
1400
535
  verification: z.ZodObject<{
1401
536
  verification_type: z.ZodNullable<z.ZodString>;
1402
537
  synthetic: z.ZodBoolean;
1403
538
  local_verified: z.ZodBoolean;
1404
539
  production_verified: z.ZodBoolean;
1405
- }, "strip", z.ZodTypeAny, {
1406
- verification_type: string | null;
1407
- synthetic: boolean;
1408
- local_verified: boolean;
1409
- production_verified: boolean;
1410
- }, {
1411
- verification_type: string | null;
1412
- synthetic: boolean;
1413
- local_verified: boolean;
1414
- production_verified: boolean;
1415
- }>;
540
+ }, z.core.$strip>;
1416
541
  links: z.ZodObject<{
1417
542
  self: z.ZodNullable<z.ZodString>;
1418
543
  reproduction: z.ZodNullable<z.ZodString>;
1419
544
  incident: z.ZodNullable<z.ZodString>;
1420
545
  project: z.ZodNullable<z.ZodString>;
1421
546
  docs: z.ZodNullable<z.ZodString>;
1422
- }, "strip", z.ZodTypeAny, {
1423
- incident: string | null;
1424
- project: string | null;
1425
- self: string | null;
1426
- reproduction: string | null;
1427
- docs: string | null;
1428
- }, {
1429
- incident: string | null;
1430
- project: string | null;
1431
- self: string | null;
1432
- reproduction: string | null;
1433
- docs: string | null;
1434
- }>;
547
+ }, z.core.$strip>;
1435
548
  redaction: z.ZodObject<{
1436
549
  redacted: z.ZodBoolean;
1437
- fields: z.ZodArray<z.ZodString, "many">;
550
+ fields: z.ZodArray<z.ZodString>;
1438
551
  notes: z.ZodNullable<z.ZodString>;
1439
- }, "strip", z.ZodTypeAny, {
1440
- fields: string[];
1441
- notes: string | null;
1442
- redacted: boolean;
1443
- }, {
1444
- fields: string[];
1445
- notes: string | null;
1446
- redacted: boolean;
1447
- }>;
552
+ }, z.core.$strip>;
1448
553
  metadata: z.ZodObject<{
1449
554
  created_at: z.ZodString;
1450
555
  updated_at: z.ZodString;
1451
556
  generator_version: z.ZodString;
1452
557
  generation_number: z.ZodNumber;
1453
- }, "strip", z.ZodTypeAny, {
1454
- created_at: string;
1455
- updated_at: string;
1456
- generator_version: string;
1457
- generation_number: number;
1458
- }, {
1459
- created_at: string;
1460
- updated_at: string;
1461
- generator_version: string;
1462
- generation_number: number;
1463
- }>;
1464
- }, "strip", z.ZodTypeAny, {
1465
- project: {
1466
- id: string;
1467
- environment: string;
1468
- slug: string;
1469
- };
1470
- context: {
1471
- environment?: {
1472
- version: 1;
1473
- os: string | null;
1474
- host: string | null;
1475
- container_id: string | null;
1476
- } | null | undefined;
1477
- runtime?: {
1478
- version: 1;
1479
- name: string;
1480
- framework: string | null;
1481
- platform: string | null;
1482
- arch: string | null;
1483
- pid: number | null;
1484
- cwd: string | null;
1485
- uptime_sec: number | null;
1486
- hostname: string | null;
1487
- thread_id: string | number | null;
1488
- framework_version: string | null;
1489
- memory: {
1490
- rss: number | null;
1491
- heap_total: number | null;
1492
- heap_used: number | null;
1493
- external: number | null;
1494
- peak: number | null;
1495
- } | null;
1496
- runtime_version: string | null;
1497
- framework_extras?: Record<string, unknown> | null | undefined;
1498
- } | null | undefined;
1499
- request?: {
1500
- path: string;
1501
- version: 1;
1502
- query: Record<string, unknown>;
1503
- request_id: string | null;
1504
- method: string;
1505
- headers: Record<string, unknown>;
1506
- route_template: string | null;
1507
- body?: unknown;
1508
- } | null | undefined;
1509
- response?: {
1510
- version: 1;
1511
- duration_ms: number | null;
1512
- status_code: number;
1513
- body?: unknown;
1514
- headers?: Record<string, unknown> | undefined;
1515
- } | null | undefined;
1516
- probe_data?: {
1517
- version: 1;
1518
- items: {
1519
- label: string;
1520
- data: Record<string, unknown>;
1521
- timestamp: string;
1522
- activation_id: string | null;
1523
- }[];
1524
- } | null | undefined;
1525
- device?: {
1526
- version: 1;
1527
- device_type: "unknown" | "desktop" | "mobile" | "tablet";
1528
- language: string | null;
1529
- browser: {
1530
- version: string | null;
1531
- name: string | null;
1532
- };
1533
- os: {
1534
- version: string | null;
1535
- name: string | null;
1536
- };
1537
- user_agent: string | null;
1538
- screen: {
1539
- width: number;
1540
- height: number;
1541
- };
1542
- viewport: {
1543
- width: number;
1544
- height: number;
1545
- };
1546
- device_pixel_ratio: number | null;
1547
- touch_capable: boolean | null;
1548
- connection_type: string | null;
1549
- color_scheme_preference: "light" | "dark" | "no-preference" | null;
1550
- } | null | undefined;
1551
- error?: {
1552
- message: string;
1553
- version: 1;
1554
- name: string;
1555
- stack: string;
1556
- handled: boolean;
1557
- top_frames: string[];
1558
- } | null | undefined;
1559
- resource_failure?: {
1560
- path: string;
1561
- type: string | null;
1562
- version: 1;
1563
- title: string;
1564
- routes: {
1565
- coverage: "occurrence_metadata" | "retained_samples";
1566
- items: {
1567
- route: string;
1568
- occurrences: number;
1569
- }[];
1570
- recorded_occurrences: number;
1571
- unattributed_occurrences: number;
1572
- omitted_routes: number;
1573
- };
1574
- host: string | null;
1575
- first_party: boolean | null;
1576
- role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
1577
- provider: string | null;
1578
- optional_candidate: boolean;
1579
- diagnosis: string;
1580
- interruption?: {
1581
- rel: "preload" | "modulepreload" | "prefetch";
1582
- ready_state: "loading" | "interactive";
1583
- visibility_state: "hidden" | "prerender" | "unloaded";
1584
- target_tag_name: "link";
1585
- } | undefined;
1586
- recovery_failures?: {
1587
- path: string;
1588
- source: "request_event" | "frontend_breadcrumb";
1589
- occurred_at: string;
1590
- method: string;
1591
- status_code: number;
1592
- delay_ms: number;
1593
- }[] | undefined;
1594
- } | undefined;
1595
- logs?: {
1596
- version: 1;
1597
- items: {
1598
- message: string;
1599
- timestamp: string;
1600
- level: string;
1601
- attributes: Record<string, unknown>;
1602
- }[];
1603
- } | null | undefined;
1604
- frontend?: {
1605
- version: 1;
1606
- dom_context: {
1607
- mode: "lightweight";
1608
- html_excerpt: string;
1609
- } | null;
1610
- route_changes: {
1611
- to: string;
1612
- from: string;
1613
- ts: string;
1614
- }[];
1615
- clicks: {
1616
- label: string;
1617
- ts: string;
1618
- selector: string;
1619
- }[];
1620
- form_submissions: {
1621
- ts: string;
1622
- form: string;
1623
- fields: Record<string, unknown>;
1624
- }[];
1625
- console_logs: unknown[];
1626
- network_requests: {
1627
- status: number;
1628
- url: string;
1629
- method: string;
1630
- ts: string;
1631
- duration_ms?: number | undefined;
1632
- response_headers?: Record<string, string> | undefined;
1633
- response_body?: unknown;
1634
- caller_trace?: string[] | undefined;
1635
- request_body?: unknown;
1636
- response_content_length?: number | undefined;
1637
- }[];
1638
- exceptions: unknown[];
1639
- } | null | undefined;
1640
- deploy?: {
1641
- version: 1;
1642
- commit_sha: string | null;
1643
- branch: string | null;
1644
- deployed_at: string | null;
1645
- deploy_version: string | null;
1646
- regression_window: boolean | null;
1647
- } | null | undefined;
1648
- git?: {
1649
- dirty: boolean;
1650
- version: 1;
1651
- source: "unknown" | "config" | "env" | "local";
1652
- branch: string | null;
1653
- commit: string | null;
1654
- commit_short: string | null;
1655
- repo: string | null;
1656
- } | null | undefined;
1657
- dependencies?: {
1658
- version: 1;
1659
- items: {
1660
- status: "unknown" | "failed" | "degraded" | "ok";
1661
- name: string;
1662
- notes: string | null;
1663
- }[];
1664
- } | null | undefined;
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
- impact: {
1718
- regression_suspected: boolean;
1719
- customer_visible: boolean;
1720
- affected_users_estimate: number | null;
1721
- affected_requests_estimate: number | null;
1722
- business_criticality: "medium" | "low" | "high" | "critical";
1723
- };
1724
- reproduction: {
1725
- confidence: number;
1726
- reason: string;
1727
- possible: boolean;
1728
- artifacts: {
1729
- curl: string | null;
1730
- httpie: string | null;
1731
- json_spec: {
1732
- url: string;
1733
- method: string;
1734
- headers: Record<string, unknown>;
1735
- query?: Record<string, unknown> | undefined;
1736
- body?: unknown;
1737
- } | null;
1738
- } | null;
1739
- feasibility_reference?: {
1740
- standard_http_bugs: string;
1741
- frontend_interaction_plus_failing_request: string;
1742
- background_jobs: string;
1743
- race_conditions: string;
1744
- external_outage_timing: string;
1745
- } | null | undefined;
1746
- };
1747
- bundle_version: 1;
1748
- bundle_id: string;
1749
- captured_at: string;
1750
- sdk: {
1751
- version: string;
1752
- name: string;
1753
- };
1754
- verification: {
1755
- verification_type: string | null;
1756
- synthetic: boolean;
1757
- local_verified: boolean;
1758
- production_verified: boolean;
1759
- };
1760
- links: {
1761
- incident: string | null;
1762
- project: string | null;
1763
- self: string | null;
1764
- reproduction: string | null;
1765
- docs: string | null;
1766
- };
1767
- }, {
1768
- project: {
1769
- id: string;
1770
- environment: string;
1771
- slug: string;
1772
- };
1773
- context: {
1774
- environment?: {
1775
- version: 1;
1776
- os: string | null;
1777
- host: string | null;
1778
- container_id: string | null;
1779
- } | null | undefined;
1780
- runtime?: {
1781
- version: 1;
1782
- name: string;
1783
- framework: string | null;
1784
- platform: string | null;
1785
- arch: string | null;
1786
- pid: number | null;
1787
- cwd: string | null;
1788
- uptime_sec: number | null;
1789
- hostname: string | null;
1790
- thread_id: string | number | null;
1791
- framework_version: string | null;
1792
- memory: {
1793
- rss: number | null;
1794
- heap_total: number | null;
1795
- heap_used: number | null;
1796
- external: number | null;
1797
- peak: number | null;
1798
- } | null;
1799
- runtime_version: string | null;
1800
- framework_extras?: Record<string, unknown> | null | undefined;
1801
- } | null | undefined;
1802
- request?: {
1803
- path: string;
1804
- version: 1;
1805
- query: Record<string, unknown>;
1806
- request_id: string | null;
1807
- method: string;
1808
- headers: Record<string, unknown>;
1809
- route_template: string | null;
1810
- body?: unknown;
1811
- } | null | undefined;
1812
- response?: {
1813
- version: 1;
1814
- duration_ms: number | null;
1815
- status_code: number;
1816
- body?: unknown;
1817
- headers?: Record<string, unknown> | undefined;
1818
- } | null | undefined;
1819
- probe_data?: {
1820
- version: 1;
1821
- items: {
1822
- label: string;
1823
- data: Record<string, unknown>;
1824
- timestamp: string;
1825
- activation_id: string | null;
1826
- }[];
1827
- } | null | undefined;
1828
- device?: {
1829
- version: 1;
1830
- device_type: "unknown" | "desktop" | "mobile" | "tablet";
1831
- language: string | null;
1832
- browser: {
1833
- version: string | null;
1834
- name: string | null;
1835
- };
1836
- os: {
1837
- version: string | null;
1838
- name: string | null;
1839
- };
1840
- user_agent: string | null;
1841
- screen: {
1842
- width: number;
1843
- height: number;
1844
- };
1845
- viewport: {
1846
- width: number;
1847
- height: number;
1848
- };
1849
- device_pixel_ratio: number | null;
1850
- touch_capable: boolean | null;
1851
- connection_type: string | null;
1852
- color_scheme_preference: "light" | "dark" | "no-preference" | null;
1853
- } | null | undefined;
1854
- error?: {
1855
- message: string;
1856
- version: 1;
1857
- name: string;
1858
- stack: string;
1859
- handled: boolean;
1860
- top_frames: string[];
1861
- } | null | undefined;
1862
- resource_failure?: {
1863
- path: string;
1864
- type: string | null;
1865
- version: 1;
1866
- title: string;
1867
- routes: {
1868
- coverage: "occurrence_metadata" | "retained_samples";
1869
- items: {
1870
- route: string;
1871
- occurrences: number;
1872
- }[];
1873
- recorded_occurrences: number;
1874
- unattributed_occurrences: number;
1875
- omitted_routes: number;
1876
- };
1877
- host: string | null;
1878
- first_party: boolean | null;
1879
- role: "unknown" | "analytics" | "advertising" | "tag_manager" | "authentication" | "application_asset";
1880
- provider: string | null;
1881
- optional_candidate: boolean;
1882
- diagnosis: string;
1883
- interruption?: {
1884
- rel: "preload" | "modulepreload" | "prefetch";
1885
- ready_state: "loading" | "interactive";
1886
- visibility_state: "hidden" | "prerender" | "unloaded";
1887
- target_tag_name: "link";
1888
- } | undefined;
1889
- recovery_failures?: {
1890
- path: string;
1891
- source: "request_event" | "frontend_breadcrumb";
1892
- occurred_at: string;
1893
- method: string;
1894
- status_code: number;
1895
- delay_ms: number;
1896
- }[] | undefined;
1897
- } | undefined;
1898
- logs?: {
1899
- version: 1;
1900
- items: {
1901
- message: string;
1902
- timestamp: string;
1903
- level: string;
1904
- attributes: Record<string, unknown>;
1905
- }[];
1906
- } | null | undefined;
1907
- frontend?: {
1908
- version: 1;
1909
- dom_context: {
1910
- mode: "lightweight";
1911
- html_excerpt: string;
1912
- } | null;
1913
- route_changes: {
1914
- to: string;
1915
- from: string;
1916
- ts: string;
1917
- }[];
1918
- clicks: {
1919
- label: string;
1920
- ts: string;
1921
- selector: string;
1922
- }[];
1923
- form_submissions: {
1924
- ts: string;
1925
- form: string;
1926
- fields: Record<string, unknown>;
1927
- }[];
1928
- console_logs: unknown[];
1929
- network_requests: {
1930
- status: number;
1931
- url: string;
1932
- method: string;
1933
- ts: string;
1934
- duration_ms?: number | undefined;
1935
- response_headers?: Record<string, string> | undefined;
1936
- response_body?: unknown;
1937
- caller_trace?: string[] | undefined;
1938
- request_body?: unknown;
1939
- response_content_length?: number | undefined;
1940
- }[];
1941
- exceptions: unknown[];
1942
- } | null | undefined;
1943
- deploy?: {
1944
- version: 1;
1945
- commit_sha: string | null;
1946
- branch: string | null;
1947
- deployed_at: string | null;
1948
- deploy_version: string | null;
1949
- regression_window: boolean | null;
1950
- } | null | undefined;
1951
- git?: {
1952
- dirty: boolean;
1953
- version: 1;
1954
- source: "unknown" | "config" | "env" | "local";
1955
- branch: string | null;
1956
- commit: string | null;
1957
- commit_short: string | null;
1958
- repo: string | null;
1959
- } | null | undefined;
1960
- dependencies?: {
1961
- version: 1;
1962
- items: {
1963
- status: "unknown" | "failed" | "degraded" | "ok";
1964
- name: string;
1965
- notes: string | null;
1966
- }[];
1967
- } | null | undefined;
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
- impact: {
2021
- regression_suspected: boolean;
2022
- customer_visible: boolean;
2023
- affected_users_estimate: number | null;
2024
- affected_requests_estimate: number | null;
2025
- business_criticality: "medium" | "low" | "high" | "critical";
2026
- };
2027
- reproduction: {
2028
- confidence: number;
2029
- reason: string;
2030
- possible: boolean;
2031
- artifacts: {
2032
- curl: string | null;
2033
- httpie: string | null;
2034
- json_spec: {
2035
- url: string;
2036
- method: string;
2037
- headers: Record<string, unknown>;
2038
- query?: Record<string, unknown> | undefined;
2039
- body?: unknown;
2040
- } | null;
2041
- } | null;
2042
- feasibility_reference?: {
2043
- standard_http_bugs: string;
2044
- frontend_interaction_plus_failing_request: string;
2045
- background_jobs: string;
2046
- race_conditions: string;
2047
- external_outage_timing: string;
2048
- } | null | undefined;
2049
- };
2050
- bundle_version: 1;
2051
- bundle_id: string;
2052
- captured_at: string;
2053
- sdk: {
2054
- version: string;
2055
- name: string;
2056
- };
2057
- verification: {
2058
- verification_type: string | null;
2059
- synthetic: boolean;
2060
- local_verified: boolean;
2061
- production_verified: boolean;
2062
- };
2063
- links: {
2064
- incident: string | null;
2065
- project: string | null;
2066
- self: string | null;
2067
- reproduction: string | null;
2068
- docs: string | null;
2069
- };
2070
- }>;
558
+ }, z.core.$strip>;
559
+ }, z.core.$strip>;
2071
560
  export type BundleV1 = z.infer<typeof BundleV1Schema>;
2072
561
  export { MAX_BILLING_ADDITIONAL_CAPACITY_UNITS, TIER_CAPABILITIES, getTierCapabilities, isSelfHostMode, type TierName, type TierCapabilities } from "./tier-capabilities.js";
2073
562
  export { EventClassValues, EventClassSchema, type EventClass, CapturePresetValues, CapturePresetSchema, type CapturePreset, CaptureLogsSchema, CaptureRequestEventsSchema, CaptureBreadcrumbsSchema, CaptureProbeEventsSchema, ImmediateClientErrorStatusesSchema, ImmediateClientErrorPathRuleSchema, ImmediateClientErrorPathRulesSchema, HTTP_METHOD_VALUES, RECOMMENDED_IMMEDIATE_CLIENT_ERROR_STATUSES, type CaptureLogs, type CaptureRequestEvents, type CaptureBreadcrumbs, type CaptureProbeEvents, type HttpMethod, type ImmediateClientErrorPathRule, ResolvedCapturePolicySchema, type ResolvedCapturePolicy, CapturePolicyOverridesSchema, type CapturePolicyOverrides, CapturePolicyResponseSchema, type CapturePolicyResponse, CapturePolicySchema, type CapturePolicyRecord, CapturePolicyUpdateSchema, type CapturePolicyUpdate, PRESET_DEFAULTS, DEFAULT_PRESET_BY_TIER, RequestSignalClassificationValues, RequestSignalClassificationSchema, type RequestSignalClassification, normalizeImmediateClientErrorStatuses, normalizeImmediateClientErrorPathRules, getCapturePolicyOverrides, resolvePolicy, getDefaultPreset, classifyRequestStatus, isImmediateRequestIncident, matchesImmediateClientErrorPathRule, getRequestAnomalyThreshold, shouldCaptureEvent } from "./capture-policy.js";