@neat.is/types 0.10.6-dev.20261007 → 0.10.6-dev.20261008
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +18 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1378 -37
- package/dist/index.d.ts +1378 -37
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -207,6 +207,12 @@ var EdgeAnomalySchema = z2.union([
|
|
|
207
207
|
z2.object({ source: z2.string(), rule: z2.string() }),
|
|
208
208
|
z2.boolean()
|
|
209
209
|
]);
|
|
210
|
+
var EdgeErrorExemplarSchema = z2.object({
|
|
211
|
+
exceptionType: z2.string().optional(),
|
|
212
|
+
message: z2.string().optional(),
|
|
213
|
+
at: z2.string().optional(),
|
|
214
|
+
httpStatusCode: z2.number().optional()
|
|
215
|
+
});
|
|
210
216
|
var EdgeSignalSchema = z2.object({
|
|
211
217
|
spanCount: z2.number().int().nonnegative(),
|
|
212
218
|
errorCount: z2.number().int().nonnegative(),
|
|
@@ -222,7 +228,12 @@ var EdgeSignalSchema = z2.object({
|
|
|
222
228
|
latencyHist: z2.record(z2.string(), z2.number().int().nonnegative()).optional(),
|
|
223
229
|
// A pre-thresholded external alert riding on the edge (ADR-190). Optional and
|
|
224
230
|
// empty until an alert source is wired.
|
|
225
|
-
anomalous: EdgeAnomalySchema.optional()
|
|
231
|
+
anomalous: EdgeAnomalySchema.optional(),
|
|
232
|
+
// A bounded last-error exemplar (ADR-236) — the most recent failing
|
|
233
|
+
// observation's exception type/message/status, so the edge carries WHAT
|
|
234
|
+
// failed, not just how many times. Additive optional growth (ADR-031); absent
|
|
235
|
+
// on a clean edge, on a legacy edge, and on a connector edge with no detail.
|
|
236
|
+
lastError: EdgeErrorExemplarSchema.optional()
|
|
226
237
|
});
|
|
227
238
|
var GraphEdgeSchema = z2.object({
|
|
228
239
|
id: z2.string(),
|
|
@@ -1443,6 +1454,10 @@ var ObservedFailingDivergenceSchema = z9.object({
|
|
|
1443
1454
|
spanCount: z9.number().int().nonnegative().optional(),
|
|
1444
1455
|
errorCount: z9.number().int().nonnegative().optional(),
|
|
1445
1456
|
errorRate: z9.number().min(0).max(1).optional(),
|
|
1457
|
+
// The failing edge's bounded last-error exemplar (ADR-236) — WHAT failed,
|
|
1458
|
+
// alongside the error-rate evidence. Edge locus only; absent when the edge
|
|
1459
|
+
// carried no exception/status detail.
|
|
1460
|
+
lastError: EdgeErrorExemplarSchema.optional(),
|
|
1446
1461
|
// Incident locus (the declared external call whose incident shows a failure).
|
|
1447
1462
|
location: z9.string().optional(),
|
|
1448
1463
|
incidentId: z9.string().optional(),
|
|
@@ -1769,6 +1784,7 @@ export {
|
|
|
1769
1784
|
EMPTY_REGISTRY,
|
|
1770
1785
|
EXTRACTED_CONFIDENCE,
|
|
1771
1786
|
EdgeAnomalySchema,
|
|
1787
|
+
EdgeErrorExemplarSchema,
|
|
1772
1788
|
EdgeEvidenceSchema,
|
|
1773
1789
|
EdgeSignalSchema,
|
|
1774
1790
|
EdgeType,
|