@neat.is/types 0.4.28-dev.20260707 → 0.4.28-dev.20260709
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 +54 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +243 -1
- package/dist/index.d.ts +243 -1
- package/dist/index.js +51 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -60,6 +60,9 @@ __export(index_exports, {
|
|
|
60
60
|
HypotheticalActionSchema: () => HypotheticalActionSchema,
|
|
61
61
|
IncidentsResponseSchema: () => IncidentsResponseSchema,
|
|
62
62
|
InfraNodeSchema: () => InfraNodeSchema,
|
|
63
|
+
LogEntrySchema: () => LogEntrySchema,
|
|
64
|
+
LogSourceSchema: () => LogSourceSchema,
|
|
65
|
+
LogsResponseSchema: () => LogsResponseSchema,
|
|
63
66
|
MCP_TOOL_NAMES: () => MCP_TOOL_NAMES,
|
|
64
67
|
MissingExtractedDivergenceSchema: () => MissingExtractedDivergenceSchema,
|
|
65
68
|
MissingObservedDivergenceSchema: () => MissingObservedDivergenceSchema,
|
|
@@ -242,6 +245,12 @@ var ServiceNodeSchema = import_zod2.z.object({
|
|
|
242
245
|
// Astro). Optional enrichment — `undefined` for lib-only packages and
|
|
243
246
|
// ambiguous repos. See ADR-074 §3 / docs/contracts/framework-installers.md.
|
|
244
247
|
framework: import_zod2.z.string().optional(),
|
|
248
|
+
// The hosting platform a static extractor recognized this service as
|
|
249
|
+
// deployed to (`'cloudflare'` today) — a free string, same discipline as
|
|
250
|
+
// `framework`, so a future platform needs no schema change. This is the
|
|
251
|
+
// frontend's icon key at the service-rollup level (ADR-133,
|
|
252
|
+
// docs/contracts/static-extraction.md).
|
|
253
|
+
platform: import_zod2.z.string().optional(),
|
|
245
254
|
discoveredVia: DiscoveredViaSchema.optional(),
|
|
246
255
|
version: import_zod2.z.string().optional(),
|
|
247
256
|
dbConnectionTarget: import_zod2.z.string().optional(),
|
|
@@ -343,7 +352,19 @@ var FileNodeSchema = import_zod2.z.object({
|
|
|
343
352
|
// preserved for diagnostic when ingest resolved it through a source map to
|
|
344
353
|
// this original `src/...ts` (file-awareness.md §4 / `code.original_filepath`).
|
|
345
354
|
// Absent when the call site was already source-grained.
|
|
346
|
-
originalPath: import_zod2.z.string().optional()
|
|
355
|
+
originalPath: import_zod2.z.string().optional(),
|
|
356
|
+
// The hosting platform this file is the entry point for (`'cloudflare'`
|
|
357
|
+
// today) — set on a Worker/Pages-Function's entry file only, mirroring
|
|
358
|
+
// ServiceNode's own `platform` field. See `platformName` below.
|
|
359
|
+
platform: import_zod2.z.string().optional(),
|
|
360
|
+
// The platform's own name for this file's service, when the platform names
|
|
361
|
+
// things differently than NEAT's manifest-derived serviceId (a Cloudflare
|
|
362
|
+
// Worker's wrangler.toml/jsonc `name`, not `package.json#name`). This is the
|
|
363
|
+
// only identifier the platform's own telemetry carries, so it's what a
|
|
364
|
+
// connector's resolveTarget looks up against to fuse an OBSERVED signal onto
|
|
365
|
+
// this exact FileNode (ADR-133, docs/contracts/static-extraction.md /
|
|
366
|
+
// docs/contracts/connectors.md).
|
|
367
|
+
platformName: import_zod2.z.string().optional()
|
|
347
368
|
});
|
|
348
369
|
var RouteNodeSchema = import_zod2.z.object({
|
|
349
370
|
id: import_zod2.z.string(),
|
|
@@ -498,6 +519,30 @@ var StaleEventSchema = import_zod4.z.object({
|
|
|
498
519
|
lastObserved: import_zod4.z.string(),
|
|
499
520
|
transitionedAt: import_zod4.z.string()
|
|
500
521
|
});
|
|
522
|
+
var LogSourceSchema = import_zod4.z.enum([
|
|
523
|
+
"native",
|
|
524
|
+
"supabase",
|
|
525
|
+
"railway",
|
|
526
|
+
"firebase",
|
|
527
|
+
"cloudflare",
|
|
528
|
+
"vercel"
|
|
529
|
+
]);
|
|
530
|
+
var LogEntrySchema = import_zod4.z.object({
|
|
531
|
+
id: import_zod4.z.string(),
|
|
532
|
+
projectName: import_zod4.z.string(),
|
|
533
|
+
source: LogSourceSchema,
|
|
534
|
+
serviceName: import_zod4.z.string().optional(),
|
|
535
|
+
nodeId: import_zod4.z.string().optional(),
|
|
536
|
+
// ISO8601, the event's own time — never ingest/poll time.
|
|
537
|
+
timestamp: import_zod4.z.string().datetime(),
|
|
538
|
+
// Normalized upstream to 'debug' | 'info' | 'warn' | 'error' by whichever
|
|
539
|
+
// producer wrote the entry; kept as a plain string here rather than a
|
|
540
|
+
// locked enum because normalization is a producer concern, not this
|
|
541
|
+
// schema's.
|
|
542
|
+
severity: import_zod4.z.string().optional(),
|
|
543
|
+
message: import_zod4.z.string(),
|
|
544
|
+
attributes: import_zod4.z.record(import_zod4.z.string(), import_zod4.z.unknown()).optional()
|
|
545
|
+
});
|
|
501
546
|
|
|
502
547
|
// src/results.ts
|
|
503
548
|
var import_zod5 = require("zod");
|
|
@@ -1003,6 +1048,11 @@ var listEnvelope = (itemSchema) => import_zod9.z.object({
|
|
|
1003
1048
|
});
|
|
1004
1049
|
var IncidentsResponseSchema = listEnvelope(ErrorEventSchema);
|
|
1005
1050
|
var StaleEventsResponseSchema = listEnvelope(StaleEventSchema);
|
|
1051
|
+
var LogsResponseSchema = import_zod9.z.object({
|
|
1052
|
+
count: import_zod9.z.number().int().nonnegative(),
|
|
1053
|
+
total: import_zod9.z.number().int().nonnegative(),
|
|
1054
|
+
logs: import_zod9.z.array(LogEntrySchema)
|
|
1055
|
+
});
|
|
1006
1056
|
var PoliciesViolationsResponseSchema = import_zod9.z.object({
|
|
1007
1057
|
violations: import_zod9.z.array(PolicyViolationSchema)
|
|
1008
1058
|
});
|
|
@@ -1168,6 +1218,9 @@ function passesExtractedFloor(confidence) {
|
|
|
1168
1218
|
HypotheticalActionSchema,
|
|
1169
1219
|
IncidentsResponseSchema,
|
|
1170
1220
|
InfraNodeSchema,
|
|
1221
|
+
LogEntrySchema,
|
|
1222
|
+
LogSourceSchema,
|
|
1223
|
+
LogsResponseSchema,
|
|
1171
1224
|
MCP_TOOL_NAMES,
|
|
1172
1225
|
MissingExtractedDivergenceSchema,
|
|
1173
1226
|
MissingObservedDivergenceSchema,
|