@debugbundle/shared-types 2.6.0 → 3.1.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 (134) 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 +382 -2181
  22. package/dist/analytics.d.ts.map +1 -1
  23. package/dist/analytics.js +19 -11
  24. package/dist/analytics.js.map +1 -1
  25. package/dist/browser-resource-context.d.ts +35 -129
  26. package/dist/browser-resource-context.d.ts.map +1 -1
  27. package/dist/browser-resource-routes.d.ts +6 -27
  28. package/dist/browser-resource-routes.d.ts.map +1 -1
  29. package/dist/bundle-evidence.d.ts +101 -0
  30. package/dist/bundle-evidence.d.ts.map +1 -0
  31. package/dist/bundle-evidence.js +69 -0
  32. package/dist/bundle-evidence.js.map +1 -0
  33. package/dist/canonical-text-order.d.ts +3 -0
  34. package/dist/canonical-text-order.d.ts.map +1 -0
  35. package/dist/canonical-text-order.js +5 -0
  36. package/dist/canonical-text-order.js.map +1 -0
  37. package/dist/capture-policy.d.ts +311 -319
  38. package/dist/capture-policy.d.ts.map +1 -1
  39. package/dist/capture-policy.js +70 -29
  40. package/dist/capture-policy.js.map +1 -1
  41. package/dist/capture-rule-evaluation.d.ts +55 -154
  42. package/dist/capture-rule-evaluation.d.ts.map +1 -1
  43. package/dist/capture-rule-evaluation.js +79 -42
  44. package/dist/capture-rule-evaluation.js.map +1 -1
  45. package/dist/capture-rule-schemas.d.ts +797 -3226
  46. package/dist/capture-rule-schemas.d.ts.map +1 -1
  47. package/dist/capture-rule-schemas.js +40 -34
  48. package/dist/capture-rule-schemas.js.map +1 -1
  49. package/dist/capture-rule-suggestions.d.ts +195 -1189
  50. package/dist/capture-rule-suggestions.d.ts.map +1 -1
  51. package/dist/diagnostic-capture-budget.d.ts +22 -0
  52. package/dist/diagnostic-capture-budget.d.ts.map +1 -0
  53. package/dist/diagnostic-capture-budget.js +195 -0
  54. package/dist/diagnostic-capture-budget.js.map +1 -0
  55. package/dist/diagnostic-context.d.ts +163 -0
  56. package/dist/diagnostic-context.d.ts.map +1 -0
  57. package/dist/diagnostic-context.js +117 -0
  58. package/dist/diagnostic-context.js.map +1 -0
  59. package/dist/event-envelope.d.ts +524 -4326
  60. package/dist/event-envelope.d.ts.map +1 -1
  61. package/dist/event-envelope.js +63 -8
  62. package/dist/event-envelope.js.map +1 -1
  63. package/dist/evidence-bounds.d.ts +9 -0
  64. package/dist/evidence-bounds.d.ts.map +1 -0
  65. package/dist/evidence-bounds.js +51 -0
  66. package/dist/evidence-bounds.js.map +1 -0
  67. package/dist/evidence-capabilities.d.ts +15 -0
  68. package/dist/evidence-capabilities.d.ts.map +1 -0
  69. package/dist/evidence-capabilities.js +29 -0
  70. package/dist/evidence-capabilities.js.map +1 -0
  71. package/dist/evidence-emission.d.ts +18 -0
  72. package/dist/evidence-emission.d.ts.map +1 -0
  73. package/dist/evidence-emission.js +83 -0
  74. package/dist/evidence-emission.js.map +1 -0
  75. package/dist/evidence-interpretation.d.ts +68 -0
  76. package/dist/evidence-interpretation.d.ts.map +1 -0
  77. package/dist/evidence-interpretation.js +177 -0
  78. package/dist/evidence-interpretation.js.map +1 -0
  79. package/dist/exception-evidence.d.ts +96 -0
  80. package/dist/exception-evidence.d.ts.map +1 -0
  81. package/dist/exception-evidence.js +145 -0
  82. package/dist/exception-evidence.js.map +1 -0
  83. package/dist/first-purchase-eligibility.d.ts +9 -0
  84. package/dist/first-purchase-eligibility.d.ts.map +1 -0
  85. package/dist/first-purchase-eligibility.js +16 -0
  86. package/dist/first-purchase-eligibility.js.map +1 -0
  87. package/dist/improvement-settings.d.ts +29 -48
  88. package/dist/improvement-settings.d.ts.map +1 -1
  89. package/dist/index.d.ts +325 -1834
  90. package/dist/index.d.ts.map +1 -1
  91. package/dist/index.js +24 -3
  92. package/dist/index.js.map +1 -1
  93. package/dist/ingestion-wire.d.ts +9 -0
  94. package/dist/ingestion-wire.d.ts.map +1 -0
  95. package/dist/ingestion-wire.js +56 -0
  96. package/dist/ingestion-wire.js.map +1 -0
  97. package/dist/json-schema.d.ts +4 -0
  98. package/dist/json-schema.d.ts.map +1 -0
  99. package/dist/json-schema.js +49 -0
  100. package/dist/json-schema.js.map +1 -0
  101. package/dist/notification-preferences.d.ts +398 -1152
  102. package/dist/notification-preferences.d.ts.map +1 -1
  103. package/dist/notification-preferences.js +3 -3
  104. package/dist/notification-preferences.js.map +1 -1
  105. package/dist/project-color-tags.d.ts +20 -1
  106. package/dist/project-color-tags.d.ts.map +1 -1
  107. package/dist/project-connection.d.ts +36 -0
  108. package/dist/project-connection.d.ts.map +1 -0
  109. package/dist/project-connection.js +17 -0
  110. package/dist/project-connection.js.map +1 -0
  111. package/dist/project-consolidation.d.ts +305 -0
  112. package/dist/project-consolidation.d.ts.map +1 -0
  113. package/dist/project-consolidation.js +138 -0
  114. package/dist/project-consolidation.js.map +1 -0
  115. package/dist/project-profile.d.ts +57 -0
  116. package/dist/project-profile.d.ts.map +1 -0
  117. package/dist/project-profile.js +51 -0
  118. package/dist/project-profile.js.map +1 -0
  119. package/dist/project-services.d.ts +84 -0
  120. package/dist/project-services.d.ts.map +1 -0
  121. package/dist/project-services.js +76 -0
  122. package/dist/project-services.js.map +1 -0
  123. package/dist/public-status.d.ts +122 -568
  124. package/dist/public-status.d.ts.map +1 -1
  125. package/dist/public-status.js +8 -8
  126. package/dist/sdk-config-limits.d.ts +5 -0
  127. package/dist/sdk-config-limits.d.ts.map +1 -0
  128. package/dist/sdk-config-limits.js +5 -0
  129. package/dist/sdk-config-limits.js.map +1 -0
  130. package/dist/stack-frames.d.ts +11 -0
  131. package/dist/stack-frames.d.ts.map +1 -0
  132. package/dist/stack-frames.js +107 -0
  133. package/dist/stack-frames.js.map +1 -0
  134. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,33 +1,34 @@
1
1
  import { z } from "zod";
2
- export { EventTypeValues, EventTypeSchema, MobileDeviceInfoSchema, RuntimeMemoryStatsSchema, EventEnvelopeSchema, type EventEnvelope, createEventEnvelope } from "./event-envelope.js";
2
+ export * from "./project-services.js";
3
+ export * from "./project-consolidation.js";
4
+ export * from "./bundle-evidence.js";
5
+ export * from "./evidence-interpretation.js";
6
+ export { truncateUtf8, withinUtf8Budget } from "./evidence-bounds.js";
7
+ export * from "./evidence-emission.js";
8
+ export * from "./ingestion-wire.js";
9
+ export { DiagnosticCaptureBudget } from "./diagnostic-capture-budget.js";
10
+ export { parseNormalizedStackFrames, selectUsefulFrame, type ParsedStack } from "./stack-frames.js";
11
+ export * from "./diagnostic-context.js";
12
+ export { EXCEPTION_EVIDENCE_LIMITS, EvidenceFrameSchema, ExceptionEvidenceV1Schema, type EvidenceFrame, type ExceptionEvidenceV1 } from "./exception-evidence.js";
13
+ export { EvidenceCapabilityValues, EvidenceCapabilitiesSchema, intersectEvidenceCapabilities, type EvidenceCapabilities } from "./evidence-capabilities.js";
14
+ export { EventTypeValues, EventTypeSchema, MobileDeviceInfoSchema, RuntimeMemoryStatsSchema, EventEnvelopeSchema, EVENT_INGESTION_MAX_BODY_BYTES, EVENT_ENVELOPE_MAX_WIRE_BYTES, type EventEnvelope, createEventEnvelope } from "./event-envelope.js";
3
15
  export declare const BundleV1Schema: z.ZodObject<{
4
16
  bundle_version: z.ZodLiteral<1>;
5
17
  bundle_id: z.ZodString;
6
- bundle_type: z.ZodEnum<["failure", "improvement"]>;
18
+ bundle_type: z.ZodEnum<{
19
+ failure: "failure";
20
+ improvement: "improvement";
21
+ }>;
7
22
  captured_at: z.ZodString;
8
23
  sdk: z.ZodObject<{
9
24
  name: z.ZodString;
10
25
  version: z.ZodString;
11
- }, "strip", z.ZodTypeAny, {
12
- version: string;
13
- name: string;
14
- }, {
15
- version: string;
16
- name: string;
17
- }>;
26
+ }, z.core.$strip>;
18
27
  project: z.ZodObject<{
19
28
  id: z.ZodString;
20
29
  slug: z.ZodString;
21
30
  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
- }>;
31
+ }, z.core.$strip>;
31
32
  service: z.ZodObject<{
32
33
  id: z.ZodString;
33
34
  name: z.ZodString;
@@ -35,153 +36,186 @@ export declare const BundleV1Schema: z.ZodObject<{
35
36
  framework: z.ZodNullable<z.ZodString>;
36
37
  version: z.ZodNullable<z.ZodString>;
37
38
  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
- }>;
39
+ }, z.core.$strip>;
53
40
  signal: z.ZodObject<{
54
41
  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"]>;
42
+ signal_type: z.ZodEnum<{
43
+ frontend_exception: "frontend_exception";
44
+ exception: "exception";
45
+ warning: "warning";
46
+ fatal_error: "fatal_error";
47
+ request_failure: "request_failure";
48
+ deprecation: "deprecation";
49
+ performance_issue: "performance_issue";
50
+ retry_loop: "retry_loop";
51
+ slow_query: "slow_query";
52
+ }>;
53
+ severity: z.ZodEnum<{
54
+ medium: "medium";
55
+ low: "low";
56
+ high: "high";
57
+ critical: "critical";
58
+ }>;
57
59
  fingerprint: z.ZodString;
58
60
  first_seen_at: z.ZodString;
59
61
  last_seen_at: z.ZodString;
60
62
  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
- }>;
63
+ source_event_types: z.ZodArray<z.ZodString>;
64
+ }, z.core.$strip>;
81
65
  summary: z.ZodObject<{
82
66
  title: z.ZodString;
83
67
  description: z.ZodString;
84
68
  likely_cause: z.ZodNullable<z.ZodString>;
85
69
  confidence: z.ZodNumber;
86
70
  recommended_action: z.ZodNullable<z.ZodString>;
87
- severity: z.ZodEnum<["low", "medium", "high", "critical"]>;
71
+ severity: z.ZodEnum<{
72
+ medium: "medium";
73
+ low: "low";
74
+ high: "high";
75
+ critical: "critical";
76
+ }>;
88
77
  error_type: z.ZodNullable<z.ZodString>;
89
78
  error_message: z.ZodNullable<z.ZodString>;
90
79
  first_application_frame: z.ZodNullable<z.ZodObject<{
91
80
  file: z.ZodNullable<z.ZodString>;
92
81
  line: z.ZodNullable<z.ZodNumber>;
93
82
  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
- }>>;
83
+ }, z.core.$strip>>;
103
84
  primary_signal: z.ZodNullable<z.ZodString>;
104
85
  signals: z.ZodObject<{
105
86
  new_deploy: z.ZodBoolean;
106
87
  regression_suspected: z.ZodBoolean;
107
88
  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
- }>;
89
+ }, z.core.$strip>;
90
+ }, z.core.$strip>;
158
91
  impact: z.ZodObject<{
159
92
  affected_users_estimate: z.ZodNullable<z.ZodNumber>;
160
93
  affected_requests_estimate: z.ZodNullable<z.ZodNumber>;
161
- business_criticality: z.ZodEnum<["low", "medium", "high", "critical"]>;
94
+ business_criticality: z.ZodEnum<{
95
+ medium: "medium";
96
+ low: "low";
97
+ high: "high";
98
+ critical: "critical";
99
+ }>;
162
100
  customer_visible: z.ZodBoolean;
163
101
  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
- }>;
102
+ }, z.core.$strip>;
177
103
  context: z.ZodObject<{
104
+ evidence: z.ZodOptional<z.ZodObject<{
105
+ version: z.ZodLiteral<1>;
106
+ primary_event_id: z.ZodString;
107
+ retained_event_count: z.ZodNumber;
108
+ retained_first_at: z.ZodNullable<z.ZodString>;
109
+ retained_last_at: z.ZodNullable<z.ZodString>;
110
+ observations: z.ZodArray<z.ZodObject<{
111
+ source_event_id: z.ZodString;
112
+ occurred_at: z.ZodString;
113
+ kind: z.ZodEnum<{
114
+ recovery: "recovery";
115
+ resource_observation: "resource_observation";
116
+ exception: "exception";
117
+ probe: "probe";
118
+ }>;
119
+ availability: z.ZodEnum<{
120
+ unknown: "unknown";
121
+ truncated: "truncated";
122
+ unsupported: "unsupported";
123
+ observed: "observed";
124
+ not_retained: "not_retained";
125
+ }>;
126
+ }, z.core.$strict>>;
127
+ }, z.core.$strict>>;
128
+ recovery: z.ZodOptional<z.ZodObject<{
129
+ version: z.ZodLiteral<1>;
130
+ outcome: z.ZodEnum<{
131
+ unknown: "unknown";
132
+ recovered: "recovered";
133
+ persisted: "persisted";
134
+ conflicting: "conflicting";
135
+ }>;
136
+ truncated: z.ZodBoolean;
137
+ attempts: z.ZodArray<z.ZodObject<{
138
+ attempt_id: z.ZodString;
139
+ outcome: z.ZodEnum<{
140
+ unknown: "unknown";
141
+ recovered: "recovered";
142
+ persisted: "persisted";
143
+ conflicting: "conflicting";
144
+ }>;
145
+ observations: z.ZodArray<z.ZodObject<{
146
+ source_event_id: z.ZodString;
147
+ occurred_at: z.ZodString;
148
+ state: z.ZodEnum<{
149
+ attempt_started: "attempt_started";
150
+ attempt_completed: "attempt_completed";
151
+ attempt_failed: "attempt_failed";
152
+ recovery_observed: "recovery_observed";
153
+ failure_persisted: "failure_persisted";
154
+ }>;
155
+ operation: z.ZodOptional<z.ZodString>;
156
+ status_code: z.ZodOptional<z.ZodNumber>;
157
+ duration_ms: z.ZodOptional<z.ZodNumber>;
158
+ }, z.core.$strict>>;
159
+ }, z.core.$strict>>;
160
+ }, z.core.$strict>>;
161
+ resource_observations: z.ZodOptional<z.ZodObject<{
162
+ version: z.ZodLiteral<1>;
163
+ items: z.ZodArray<z.ZodObject<{
164
+ source_event_id: z.ZodString;
165
+ observation: z.ZodDiscriminatedUnion<[z.ZodObject<{
166
+ kind: z.ZodLiteral<"timing">;
167
+ observed_at: z.ZodString;
168
+ source_url: z.ZodNullable<z.ZodString>;
169
+ availability: z.ZodEnum<{
170
+ unknown: "unknown";
171
+ unsupported: "unsupported";
172
+ observed: "observed";
173
+ no_match: "no_match";
174
+ withheld: "withheld";
175
+ ambiguous: "ambiguous";
176
+ }>;
177
+ response_status: z.ZodNullable<z.ZodNumber>;
178
+ duration_ms: z.ZodNullable<z.ZodNumber>;
179
+ transfer_size_bytes: z.ZodNullable<z.ZodNumber>;
180
+ }, z.core.$strict>, z.ZodObject<{
181
+ kind: z.ZodLiteral<"csp">;
182
+ observed_at: z.ZodString;
183
+ source_url: z.ZodNullable<z.ZodString>;
184
+ effective_directive: z.ZodString;
185
+ disposition: z.ZodEnum<{
186
+ enforce: "enforce";
187
+ report: "report";
188
+ }>;
189
+ document_status_code: z.ZodNullable<z.ZodNumber>;
190
+ }, z.core.$strict>], "kind">;
191
+ }, z.core.$strict>>;
192
+ }, z.core.$strict>>;
193
+ execution: z.ZodOptional<z.ZodObject<{
194
+ version: z.ZodLiteral<1>;
195
+ kind: z.ZodEnum<{
196
+ unknown: "unknown";
197
+ request: "request";
198
+ command: "command";
199
+ job: "job";
200
+ }>;
201
+ name: z.ZodNullable<z.ZodString>;
202
+ elapsed_ms: z.ZodNullable<z.ZodNumber>;
203
+ limit_ms: z.ZodNullable<z.ZodNumber>;
204
+ }, z.core.$strict>>;
178
205
  resource_failure: z.ZodOptional<z.ZodObject<{
179
206
  version: z.ZodLiteral<1>;
180
207
  host: z.ZodNullable<z.ZodString>;
181
208
  path: z.ZodString;
182
209
  type: z.ZodNullable<z.ZodString>;
183
210
  first_party: z.ZodNullable<z.ZodBoolean>;
184
- role: z.ZodEnum<["analytics", "advertising", "tag_manager", "authentication", "application_asset", "unknown"]>;
211
+ role: z.ZodEnum<{
212
+ unknown: "unknown";
213
+ analytics: "analytics";
214
+ advertising: "advertising";
215
+ tag_manager: "tag_manager";
216
+ authentication: "authentication";
217
+ application_asset: "application_asset";
218
+ }>;
185
219
  provider: z.ZodNullable<z.ZodString>;
186
220
  title: z.ZodString;
187
221
  optional_candidate: z.ZodBoolean;
@@ -190,167 +224,123 @@ export declare const BundleV1Schema: z.ZodObject<{
190
224
  items: z.ZodArray<z.ZodObject<{
191
225
  route: z.ZodString;
192
226
  occurrences: z.ZodNumber;
193
- }, "strip", z.ZodTypeAny, {
194
- route: string;
195
- occurrences: number;
196
- }, {
197
- route: string;
198
- occurrences: number;
199
- }>, "many">;
227
+ }, z.core.$strip>>;
200
228
  recorded_occurrences: z.ZodNumber;
201
229
  unattributed_occurrences: z.ZodNumber;
202
230
  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
- }>;
231
+ coverage: z.ZodEnum<{
232
+ occurrence_metadata: "occurrence_metadata";
233
+ retained_samples: "retained_samples";
234
+ }>;
235
+ }, z.core.$strip>;
223
236
  interruption: z.ZodOptional<z.ZodObject<{
224
- visibility_state: z.ZodEnum<["hidden", "prerender", "unloaded"]>;
225
- ready_state: z.ZodEnum<["loading", "interactive"]>;
237
+ visibility_state: z.ZodEnum<{
238
+ hidden: "hidden";
239
+ prerender: "prerender";
240
+ unloaded: "unloaded";
241
+ }>;
242
+ ready_state: z.ZodEnum<{
243
+ loading: "loading";
244
+ interactive: "interactive";
245
+ }>;
226
246
  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
- }>>;
247
+ rel: z.ZodEnum<{
248
+ preload: "preload";
249
+ modulepreload: "modulepreload";
250
+ prefetch: "prefetch";
251
+ }>;
252
+ }, z.core.$strip>>;
239
253
  recovery_failures: z.ZodOptional<z.ZodArray<z.ZodObject<{
240
- source: z.ZodEnum<["request_event", "frontend_breadcrumb"]>;
254
+ source: z.ZodEnum<{
255
+ request_event: "request_event";
256
+ frontend_breadcrumb: "frontend_breadcrumb";
257
+ }>;
241
258
  method: z.ZodString;
242
259
  path: z.ZodString;
243
260
  status_code: z.ZodNumber;
244
261
  occurred_at: z.ZodString;
245
262
  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
- }>>;
263
+ }, z.core.$strip>>>;
264
+ }, z.core.$strip>>;
332
265
  error: z.ZodOptional<z.ZodNullable<z.ZodNullable<z.ZodObject<{
333
266
  version: z.ZodLiteral<1>;
334
267
  name: z.ZodString;
335
268
  message: z.ZodString;
336
269
  stack: z.ZodString;
337
270
  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
- }>>>>;
271
+ top_frames: z.ZodArray<z.ZodString>;
272
+ exception_evidence: z.ZodOptional<z.ZodObject<{
273
+ version: z.ZodLiteral<1>;
274
+ runtime: z.ZodEnum<{
275
+ unknown: "unknown";
276
+ browser: "browser";
277
+ node: "node";
278
+ python: "python";
279
+ php: "php";
280
+ jvm: "jvm";
281
+ go: "go";
282
+ ruby: "ruby";
283
+ dotnet: "dotnet";
284
+ android: "android";
285
+ swift: "swift";
286
+ react_native: "react_native";
287
+ }>;
288
+ root_id: z.ZodNumber;
289
+ nodes: z.ZodArray<z.ZodObject<{
290
+ id: z.ZodNumber;
291
+ name: z.ZodString;
292
+ message: z.ZodString;
293
+ stack: z.ZodNullable<z.ZodString>;
294
+ trace_origin: z.ZodEnum<{
295
+ unknown: "unknown";
296
+ unavailable: "unavailable";
297
+ throw: "throw";
298
+ native_fatal: "native_fatal";
299
+ capture: "capture";
300
+ runtime_reported: "runtime_reported";
301
+ }>;
302
+ parsing_status: z.ZodEnum<{
303
+ unavailable: "unavailable";
304
+ parsed: "parsed";
305
+ partial: "partial";
306
+ unparsed: "unparsed";
307
+ truncated: "truncated";
308
+ }>;
309
+ frames: z.ZodArray<z.ZodObject<{
310
+ function: z.ZodNullable<z.ZodString>;
311
+ file: z.ZodNullable<z.ZodString>;
312
+ line: z.ZodNullable<z.ZodNumber>;
313
+ column: z.ZodNullable<z.ZodNumber>;
314
+ classification: z.ZodEnum<{
315
+ unknown: "unknown";
316
+ framework: "framework";
317
+ application: "application";
318
+ sdk: "sdk";
319
+ }>;
320
+ }, z.core.$strict>>;
321
+ relationships: z.ZodArray<z.ZodObject<{
322
+ kind: z.ZodEnum<{
323
+ context: "context";
324
+ cause: "cause";
325
+ aggregate: "aggregate";
326
+ suppressed: "suppressed";
327
+ }>;
328
+ target_id: z.ZodNumber;
329
+ }, z.core.$strict>>;
330
+ }, z.core.$strict>>;
331
+ truncated: z.ZodBoolean;
332
+ unavailable_reason: z.ZodNullable<z.ZodEnum<{
333
+ unknown: "unknown";
334
+ unsupported: "unsupported";
335
+ unsafe: "unsafe";
336
+ budget_exceeded: "budget_exceeded";
337
+ }>>;
338
+ }, z.core.$strict>>;
339
+ exception_evidence_source: z.ZodOptional<z.ZodEnum<{
340
+ sdk: "sdk";
341
+ retained_stack: "retained_stack";
342
+ }>>;
343
+ }, z.core.$strip>>>>;
354
344
  request: z.ZodOptional<z.ZodNullable<z.ZodObject<{
355
345
  version: z.ZodLiteral<1>;
356
346
  method: z.ZodString;
@@ -360,44 +350,14 @@ export declare const BundleV1Schema: z.ZodObject<{
360
350
  headers: z.ZodRecord<z.ZodString, z.ZodUnknown>;
361
351
  body: z.ZodNullable<z.ZodUnknown>;
362
352
  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
- }>>>;
353
+ }, z.core.$strip>>>;
382
354
  response: z.ZodOptional<z.ZodNullable<z.ZodObject<{
383
355
  version: z.ZodLiteral<1>;
384
356
  status_code: z.ZodNumber;
385
357
  duration_ms: z.ZodNullable<z.ZodNumber>;
386
358
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
387
359
  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
- }>>>;
360
+ }, z.core.$strip>>>;
401
361
  logs: z.ZodOptional<z.ZodNullable<z.ZodObject<{
402
362
  version: z.ZodLiteral<1>;
403
363
  items: z.ZodArray<z.ZodObject<{
@@ -405,208 +365,50 @@ export declare const BundleV1Schema: z.ZodObject<{
405
365
  message: z.ZodString;
406
366
  timestamp: z.ZodString;
407
367
  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
- }>>>;
368
+ }, z.core.$strip>>;
369
+ }, z.core.$strip>>>;
436
370
  frontend: z.ZodOptional<z.ZodNullable<z.ZodObject<{
437
371
  version: z.ZodLiteral<1>;
438
372
  route_changes: z.ZodArray<z.ZodObject<{
439
373
  from: z.ZodString;
440
374
  to: z.ZodString;
441
375
  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">;
376
+ }, z.core.$strip>>;
451
377
  clicks: z.ZodArray<z.ZodObject<{
452
378
  selector: z.ZodString;
453
379
  label: z.ZodString;
454
380
  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">;
381
+ }, z.core.$strip>>;
464
382
  form_submissions: z.ZodArray<z.ZodObject<{
465
383
  form: z.ZodString;
466
384
  fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
467
385
  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">;
386
+ }, z.core.$strip>>;
387
+ console_logs: z.ZodArray<z.ZodUnknown>;
478
388
  network_requests: z.ZodArray<z.ZodObject<{
479
389
  method: z.ZodString;
480
390
  url: z.ZodString;
481
391
  status: z.ZodNumber;
482
392
  ts: z.ZodString;
483
393
  duration_ms: z.ZodOptional<z.ZodNumber>;
484
- caller_trace: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
394
+ caller_trace: z.ZodOptional<z.ZodArray<z.ZodString>>;
485
395
  response_body: z.ZodOptional<z.ZodUnknown>;
486
396
  request_body: z.ZodOptional<z.ZodUnknown>;
487
397
  response_headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
488
398
  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">;
399
+ }, z.core.$strip>>;
400
+ exceptions: z.ZodArray<z.ZodUnknown>;
513
401
  dom_context: z.ZodNullable<z.ZodObject<{
514
402
  mode: z.ZodLiteral<"lightweight">;
515
403
  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
- }>>>;
404
+ }, z.core.$strip>>;
405
+ }, z.core.$strip>>>;
594
406
  environment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
595
407
  version: z.ZodLiteral<1>;
596
408
  os: z.ZodNullable<z.ZodString>;
597
409
  host: z.ZodNullable<z.ZodString>;
598
410
  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
- }>>>;
411
+ }, z.core.$strip>>>;
610
412
  deploy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
611
413
  version: z.ZodLiteral<1>;
612
414
  commit_sha: z.ZodNullable<z.ZodString>;
@@ -614,21 +416,7 @@ export declare const BundleV1Schema: z.ZodObject<{
614
416
  branch: z.ZodNullable<z.ZodString>;
615
417
  deployed_at: z.ZodNullable<z.ZodString>;
616
418
  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
- }>>>;
419
+ }, z.core.$strip>>>;
632
420
  runtime: z.ZodOptional<z.ZodNullable<z.ZodObject<{
633
421
  version: z.ZodLiteral<1>;
634
422
  name: z.ZodString;
@@ -639,7 +427,7 @@ export declare const BundleV1Schema: z.ZodObject<{
639
427
  cwd: z.ZodNullable<z.ZodString>;
640
428
  uptime_sec: z.ZodNullable<z.ZodNumber>;
641
429
  hostname: z.ZodNullable<z.ZodString>;
642
- thread_id: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
430
+ thread_id: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
643
431
  framework: z.ZodNullable<z.ZodString>;
644
432
  framework_version: z.ZodNullable<z.ZodString>;
645
433
  memory: z.ZodNullable<z.ZodObject<{
@@ -648,63 +436,9 @@ export declare const BundleV1Schema: z.ZodObject<{
648
436
  heap_used: z.ZodNullable<z.ZodNumber>;
649
437
  external: z.ZodNullable<z.ZodNumber>;
650
438
  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
- }>>;
439
+ }, z.core.$strict>>;
664
440
  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
- }>>>;
441
+ }, z.core.$strip>>>;
708
442
  git: z.ZodOptional<z.ZodNullable<z.ZodObject<{
709
443
  version: z.ZodLiteral<1>;
710
444
  commit: z.ZodNullable<z.ZodString>;
@@ -712,54 +446,26 @@ export declare const BundleV1Schema: z.ZodObject<{
712
446
  branch: z.ZodNullable<z.ZodString>;
713
447
  repo: z.ZodNullable<z.ZodString>;
714
448
  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
- }>>>;
449
+ source: z.ZodEnum<{
450
+ unknown: "unknown";
451
+ local: "local";
452
+ config: "config";
453
+ env: "env";
454
+ }>;
455
+ }, z.core.$strip>>>;
733
456
  dependencies: z.ZodOptional<z.ZodNullable<z.ZodObject<{
734
457
  version: z.ZodLiteral<1>;
735
458
  items: z.ZodArray<z.ZodObject<{
736
459
  name: z.ZodString;
737
- status: z.ZodEnum<["ok", "degraded", "failed", "unknown"]>;
460
+ status: z.ZodEnum<{
461
+ unknown: "unknown";
462
+ failed: "failed";
463
+ degraded: "degraded";
464
+ ok: "ok";
465
+ }>;
738
466
  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
- }>>>;
467
+ }, z.core.$strip>>;
468
+ }, z.core.$strip>>>;
763
469
  probe_data: z.ZodOptional<z.ZodNullable<z.ZodObject<{
764
470
  version: z.ZodLiteral<1>;
765
471
  items: z.ZodArray<z.ZodObject<{
@@ -767,525 +473,44 @@ export declare const BundleV1Schema: z.ZodObject<{
767
473
  data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
768
474
  timestamp: z.ZodString;
769
475
  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
- }>>>;
476
+ }, z.core.$strip>>;
477
+ }, z.core.$strip>>>;
798
478
  device: z.ZodOptional<z.ZodNullable<z.ZodObject<{
799
479
  version: z.ZodLiteral<1>;
800
480
  user_agent: z.ZodNullable<z.ZodString>;
801
481
  browser: z.ZodObject<{
802
482
  name: z.ZodNullable<z.ZodString>;
803
483
  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
- }>;
484
+ }, z.core.$strip>;
811
485
  os: z.ZodObject<{
812
486
  name: z.ZodNullable<z.ZodString>;
813
487
  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;
488
+ }, z.core.$strip>;
489
+ device_type: z.ZodEnum<{
490
+ unknown: "unknown";
491
+ desktop: "desktop";
492
+ mobile: "mobile";
493
+ tablet: "tablet";
820
494
  }>;
821
- device_type: z.ZodEnum<["desktop", "mobile", "tablet", "unknown"]>;
822
495
  screen: z.ZodObject<{
823
496
  width: z.ZodNumber;
824
497
  height: z.ZodNumber;
825
- }, "strip", z.ZodTypeAny, {
826
- width: number;
827
- height: number;
828
- }, {
829
- width: number;
830
- height: number;
831
- }>;
498
+ }, z.core.$strip>;
832
499
  viewport: z.ZodObject<{
833
500
  width: z.ZodNumber;
834
501
  height: z.ZodNumber;
835
- }, "strip", z.ZodTypeAny, {
836
- width: number;
837
- height: number;
838
- }, {
839
- width: number;
840
- height: number;
841
- }>;
502
+ }, z.core.$strip>;
842
503
  device_pixel_ratio: z.ZodNullable<z.ZodNumber>;
843
504
  touch_capable: z.ZodNullable<z.ZodBoolean>;
844
505
  language: z.ZodNullable<z.ZodString>;
845
506
  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
- }>;
507
+ color_scheme_preference: z.ZodNullable<z.ZodEnum<{
508
+ light: "light";
509
+ dark: "dark";
510
+ "no-preference": "no-preference";
511
+ }>>;
512
+ }, z.core.$strip>>>;
513
+ }, z.core.$strip>;
1289
514
  reproduction: z.ZodObject<{
1290
515
  possible: z.ZodBoolean;
1291
516
  confidence: z.ZodNumber;
@@ -1299,775 +524,41 @@ export declare const BundleV1Schema: z.ZodObject<{
1299
524
  headers: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1300
525
  query: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1301
526
  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
- }>>;
527
+ }, z.core.$strip>>;
528
+ }, z.core.$strip>>;
1336
529
  feasibility_reference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1337
530
  standard_http_bugs: z.ZodString;
1338
531
  frontend_interaction_plus_failing_request: z.ZodString;
1339
532
  background_jobs: z.ZodString;
1340
533
  race_conditions: z.ZodString;
1341
534
  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
- }>;
535
+ }, z.core.$strip>>>;
536
+ }, z.core.$strip>;
1400
537
  verification: z.ZodObject<{
1401
538
  verification_type: z.ZodNullable<z.ZodString>;
1402
539
  synthetic: z.ZodBoolean;
1403
540
  local_verified: z.ZodBoolean;
1404
541
  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
- }>;
542
+ }, z.core.$strip>;
1416
543
  links: z.ZodObject<{
1417
544
  self: z.ZodNullable<z.ZodString>;
1418
545
  reproduction: z.ZodNullable<z.ZodString>;
1419
546
  incident: z.ZodNullable<z.ZodString>;
1420
547
  project: z.ZodNullable<z.ZodString>;
1421
548
  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
- }>;
549
+ }, z.core.$strip>;
1435
550
  redaction: z.ZodObject<{
1436
551
  redacted: z.ZodBoolean;
1437
- fields: z.ZodArray<z.ZodString, "many">;
552
+ fields: z.ZodArray<z.ZodString>;
1438
553
  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
- }>;
554
+ }, z.core.$strip>;
1448
555
  metadata: z.ZodObject<{
1449
556
  created_at: z.ZodString;
1450
557
  updated_at: z.ZodString;
1451
558
  generator_version: z.ZodString;
1452
559
  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
- }>;
560
+ }, z.core.$strip>;
561
+ }, z.core.$strip>;
2071
562
  export type BundleV1 = z.infer<typeof BundleV1Schema>;
2072
563
  export { MAX_BILLING_ADDITIONAL_CAPACITY_UNITS, TIER_CAPABILITIES, getTierCapabilities, isSelfHostMode, type TierName, type TierCapabilities } from "./tier-capabilities.js";
2073
564
  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";