@neat.is/types 0.2.5

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.
@@ -0,0 +1,1731 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const Provenance: {
4
+ readonly EXTRACTED: "EXTRACTED";
5
+ readonly INFERRED: "INFERRED";
6
+ readonly OBSERVED: "OBSERVED";
7
+ readonly STALE: "STALE";
8
+ readonly FRONTIER: "FRONTIER";
9
+ };
10
+ type ProvenanceValue = (typeof Provenance)[keyof typeof Provenance];
11
+ declare const EdgeType: {
12
+ readonly CALLS: "CALLS";
13
+ readonly DEPENDS_ON: "DEPENDS_ON";
14
+ readonly CONNECTS_TO: "CONNECTS_TO";
15
+ readonly CONFIGURED_BY: "CONFIGURED_BY";
16
+ readonly PUBLISHES_TO: "PUBLISHES_TO";
17
+ readonly CONSUMES_FROM: "CONSUMES_FROM";
18
+ readonly RUNS_ON: "RUNS_ON";
19
+ };
20
+ type EdgeTypeValue = (typeof EdgeType)[keyof typeof EdgeType];
21
+ declare const NodeType: {
22
+ readonly ServiceNode: "ServiceNode";
23
+ readonly DatabaseNode: "DatabaseNode";
24
+ readonly ConfigNode: "ConfigNode";
25
+ readonly InfraNode: "InfraNode";
26
+ readonly FrontierNode: "FrontierNode";
27
+ };
28
+ type NodeTypeValue = (typeof NodeType)[keyof typeof NodeType];
29
+
30
+ declare const NodeTypeSchema: z.ZodEnum<["ServiceNode", "DatabaseNode", "ConfigNode", "InfraNode", "FrontierNode"]>;
31
+
32
+ declare const CompatibleDriverSchema: z.ZodObject<{
33
+ name: z.ZodString;
34
+ minVersion: z.ZodString;
35
+ }, "strip", z.ZodTypeAny, {
36
+ name: string;
37
+ minVersion: string;
38
+ }, {
39
+ name: string;
40
+ minVersion: string;
41
+ }>;
42
+ type CompatibleDriver = z.infer<typeof CompatibleDriverSchema>;
43
+ declare const DiscoveredViaSchema: z.ZodEnum<["static", "otel", "merged"]>;
44
+ type DiscoveredVia = z.infer<typeof DiscoveredViaSchema>;
45
+ declare const ServiceNodeSchema: z.ZodObject<{
46
+ id: z.ZodString;
47
+ type: z.ZodLiteral<"ServiceNode">;
48
+ name: z.ZodString;
49
+ language: z.ZodString;
50
+ discoveredVia: z.ZodOptional<z.ZodEnum<["static", "otel", "merged"]>>;
51
+ version: z.ZodOptional<z.ZodString>;
52
+ dbConnectionTarget: z.ZodOptional<z.ZodString>;
53
+ repoPath: z.ZodOptional<z.ZodString>;
54
+ dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
55
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
56
+ nodeEngine: z.ZodOptional<z.ZodString>;
57
+ incompatibilities: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
58
+ kind: z.ZodOptional<z.ZodLiteral<"driver-engine">>;
59
+ driver: z.ZodString;
60
+ driverVersion: z.ZodString;
61
+ engine: z.ZodString;
62
+ engineVersion: z.ZodString;
63
+ reason: z.ZodString;
64
+ }, "strip", z.ZodTypeAny, {
65
+ driver: string;
66
+ driverVersion: string;
67
+ engine: string;
68
+ engineVersion: string;
69
+ reason: string;
70
+ kind?: "driver-engine" | undefined;
71
+ }, {
72
+ driver: string;
73
+ driverVersion: string;
74
+ engine: string;
75
+ engineVersion: string;
76
+ reason: string;
77
+ kind?: "driver-engine" | undefined;
78
+ }>, z.ZodObject<{
79
+ kind: z.ZodLiteral<"node-engine">;
80
+ package: z.ZodString;
81
+ packageVersion: z.ZodOptional<z.ZodString>;
82
+ requiredNodeVersion: z.ZodString;
83
+ declaredNodeEngine: z.ZodOptional<z.ZodString>;
84
+ reason: z.ZodString;
85
+ }, "strip", z.ZodTypeAny, {
86
+ kind: "node-engine";
87
+ reason: string;
88
+ package: string;
89
+ requiredNodeVersion: string;
90
+ packageVersion?: string | undefined;
91
+ declaredNodeEngine?: string | undefined;
92
+ }, {
93
+ kind: "node-engine";
94
+ reason: string;
95
+ package: string;
96
+ requiredNodeVersion: string;
97
+ packageVersion?: string | undefined;
98
+ declaredNodeEngine?: string | undefined;
99
+ }>, z.ZodObject<{
100
+ kind: z.ZodLiteral<"package-conflict">;
101
+ package: z.ZodString;
102
+ packageVersion: z.ZodOptional<z.ZodString>;
103
+ requires: z.ZodObject<{
104
+ name: z.ZodString;
105
+ minVersion: z.ZodString;
106
+ }, "strip", z.ZodTypeAny, {
107
+ name: string;
108
+ minVersion: string;
109
+ }, {
110
+ name: string;
111
+ minVersion: string;
112
+ }>;
113
+ foundVersion: z.ZodOptional<z.ZodString>;
114
+ reason: z.ZodString;
115
+ }, "strip", z.ZodTypeAny, {
116
+ kind: "package-conflict";
117
+ reason: string;
118
+ package: string;
119
+ requires: {
120
+ name: string;
121
+ minVersion: string;
122
+ };
123
+ packageVersion?: string | undefined;
124
+ foundVersion?: string | undefined;
125
+ }, {
126
+ kind: "package-conflict";
127
+ reason: string;
128
+ package: string;
129
+ requires: {
130
+ name: string;
131
+ minVersion: string;
132
+ };
133
+ packageVersion?: string | undefined;
134
+ foundVersion?: string | undefined;
135
+ }>, z.ZodObject<{
136
+ kind: z.ZodLiteral<"deprecated-api">;
137
+ package: z.ZodString;
138
+ packageVersion: z.ZodOptional<z.ZodString>;
139
+ reason: z.ZodString;
140
+ }, "strip", z.ZodTypeAny, {
141
+ kind: "deprecated-api";
142
+ reason: string;
143
+ package: string;
144
+ packageVersion?: string | undefined;
145
+ }, {
146
+ kind: "deprecated-api";
147
+ reason: string;
148
+ package: string;
149
+ packageVersion?: string | undefined;
150
+ }>]>, "many">>;
151
+ }, "strip", z.ZodTypeAny, {
152
+ name: string;
153
+ type: "ServiceNode";
154
+ id: string;
155
+ language: string;
156
+ discoveredVia?: "static" | "otel" | "merged" | undefined;
157
+ version?: string | undefined;
158
+ dbConnectionTarget?: string | undefined;
159
+ repoPath?: string | undefined;
160
+ dependencies?: Record<string, string> | undefined;
161
+ aliases?: string[] | undefined;
162
+ nodeEngine?: string | undefined;
163
+ incompatibilities?: ({
164
+ driver: string;
165
+ driverVersion: string;
166
+ engine: string;
167
+ engineVersion: string;
168
+ reason: string;
169
+ kind?: "driver-engine" | undefined;
170
+ } | {
171
+ kind: "node-engine";
172
+ reason: string;
173
+ package: string;
174
+ requiredNodeVersion: string;
175
+ packageVersion?: string | undefined;
176
+ declaredNodeEngine?: string | undefined;
177
+ } | {
178
+ kind: "package-conflict";
179
+ reason: string;
180
+ package: string;
181
+ requires: {
182
+ name: string;
183
+ minVersion: string;
184
+ };
185
+ packageVersion?: string | undefined;
186
+ foundVersion?: string | undefined;
187
+ } | {
188
+ kind: "deprecated-api";
189
+ reason: string;
190
+ package: string;
191
+ packageVersion?: string | undefined;
192
+ })[] | undefined;
193
+ }, {
194
+ name: string;
195
+ type: "ServiceNode";
196
+ id: string;
197
+ language: string;
198
+ discoveredVia?: "static" | "otel" | "merged" | undefined;
199
+ version?: string | undefined;
200
+ dbConnectionTarget?: string | undefined;
201
+ repoPath?: string | undefined;
202
+ dependencies?: Record<string, string> | undefined;
203
+ aliases?: string[] | undefined;
204
+ nodeEngine?: string | undefined;
205
+ incompatibilities?: ({
206
+ driver: string;
207
+ driverVersion: string;
208
+ engine: string;
209
+ engineVersion: string;
210
+ reason: string;
211
+ kind?: "driver-engine" | undefined;
212
+ } | {
213
+ kind: "node-engine";
214
+ reason: string;
215
+ package: string;
216
+ requiredNodeVersion: string;
217
+ packageVersion?: string | undefined;
218
+ declaredNodeEngine?: string | undefined;
219
+ } | {
220
+ kind: "package-conflict";
221
+ reason: string;
222
+ package: string;
223
+ requires: {
224
+ name: string;
225
+ minVersion: string;
226
+ };
227
+ packageVersion?: string | undefined;
228
+ foundVersion?: string | undefined;
229
+ } | {
230
+ kind: "deprecated-api";
231
+ reason: string;
232
+ package: string;
233
+ packageVersion?: string | undefined;
234
+ })[] | undefined;
235
+ }>;
236
+ type ServiceNode = z.infer<typeof ServiceNodeSchema>;
237
+ declare const DatabaseNodeSchema: z.ZodObject<{
238
+ id: z.ZodString;
239
+ type: z.ZodLiteral<"DatabaseNode">;
240
+ name: z.ZodString;
241
+ engine: z.ZodString;
242
+ engineVersion: z.ZodString;
243
+ compatibleDrivers: z.ZodArray<z.ZodObject<{
244
+ name: z.ZodString;
245
+ minVersion: z.ZodString;
246
+ }, "strip", z.ZodTypeAny, {
247
+ name: string;
248
+ minVersion: string;
249
+ }, {
250
+ name: string;
251
+ minVersion: string;
252
+ }>, "many">;
253
+ host: z.ZodOptional<z.ZodString>;
254
+ port: z.ZodOptional<z.ZodNumber>;
255
+ discoveredVia: z.ZodOptional<z.ZodEnum<["static", "otel", "merged"]>>;
256
+ }, "strip", z.ZodTypeAny, {
257
+ name: string;
258
+ type: "DatabaseNode";
259
+ id: string;
260
+ engine: string;
261
+ engineVersion: string;
262
+ compatibleDrivers: {
263
+ name: string;
264
+ minVersion: string;
265
+ }[];
266
+ discoveredVia?: "static" | "otel" | "merged" | undefined;
267
+ host?: string | undefined;
268
+ port?: number | undefined;
269
+ }, {
270
+ name: string;
271
+ type: "DatabaseNode";
272
+ id: string;
273
+ engine: string;
274
+ engineVersion: string;
275
+ compatibleDrivers: {
276
+ name: string;
277
+ minVersion: string;
278
+ }[];
279
+ discoveredVia?: "static" | "otel" | "merged" | undefined;
280
+ host?: string | undefined;
281
+ port?: number | undefined;
282
+ }>;
283
+ type DatabaseNode = z.infer<typeof DatabaseNodeSchema>;
284
+ declare const ConfigNodeSchema: z.ZodObject<{
285
+ id: z.ZodString;
286
+ type: z.ZodLiteral<"ConfigNode">;
287
+ name: z.ZodString;
288
+ path: z.ZodString;
289
+ fileType: z.ZodString;
290
+ }, "strip", z.ZodTypeAny, {
291
+ name: string;
292
+ path: string;
293
+ type: "ConfigNode";
294
+ id: string;
295
+ fileType: string;
296
+ }, {
297
+ name: string;
298
+ path: string;
299
+ type: "ConfigNode";
300
+ id: string;
301
+ fileType: string;
302
+ }>;
303
+ type ConfigNode = z.infer<typeof ConfigNodeSchema>;
304
+ declare const InfraNodeSchema: z.ZodObject<{
305
+ id: z.ZodString;
306
+ type: z.ZodLiteral<"InfraNode">;
307
+ name: z.ZodString;
308
+ provider: z.ZodString;
309
+ region: z.ZodOptional<z.ZodString>;
310
+ kind: z.ZodOptional<z.ZodString>;
311
+ }, "strip", z.ZodTypeAny, {
312
+ name: string;
313
+ type: "InfraNode";
314
+ id: string;
315
+ provider: string;
316
+ kind?: string | undefined;
317
+ region?: string | undefined;
318
+ }, {
319
+ name: string;
320
+ type: "InfraNode";
321
+ id: string;
322
+ provider: string;
323
+ kind?: string | undefined;
324
+ region?: string | undefined;
325
+ }>;
326
+ type InfraNode = z.infer<typeof InfraNodeSchema>;
327
+ declare const FrontierNodeSchema: z.ZodObject<{
328
+ id: z.ZodString;
329
+ type: z.ZodLiteral<"FrontierNode">;
330
+ name: z.ZodString;
331
+ host: z.ZodString;
332
+ firstObserved: z.ZodOptional<z.ZodString>;
333
+ lastObserved: z.ZodOptional<z.ZodString>;
334
+ }, "strip", z.ZodTypeAny, {
335
+ name: string;
336
+ type: "FrontierNode";
337
+ id: string;
338
+ host: string;
339
+ firstObserved?: string | undefined;
340
+ lastObserved?: string | undefined;
341
+ }, {
342
+ name: string;
343
+ type: "FrontierNode";
344
+ id: string;
345
+ host: string;
346
+ firstObserved?: string | undefined;
347
+ lastObserved?: string | undefined;
348
+ }>;
349
+ type FrontierNode = z.infer<typeof FrontierNodeSchema>;
350
+ declare const GraphNodeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
351
+ id: z.ZodString;
352
+ type: z.ZodLiteral<"ServiceNode">;
353
+ name: z.ZodString;
354
+ language: z.ZodString;
355
+ discoveredVia: z.ZodOptional<z.ZodEnum<["static", "otel", "merged"]>>;
356
+ version: z.ZodOptional<z.ZodString>;
357
+ dbConnectionTarget: z.ZodOptional<z.ZodString>;
358
+ repoPath: z.ZodOptional<z.ZodString>;
359
+ dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
360
+ aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
361
+ nodeEngine: z.ZodOptional<z.ZodString>;
362
+ incompatibilities: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
363
+ kind: z.ZodOptional<z.ZodLiteral<"driver-engine">>;
364
+ driver: z.ZodString;
365
+ driverVersion: z.ZodString;
366
+ engine: z.ZodString;
367
+ engineVersion: z.ZodString;
368
+ reason: z.ZodString;
369
+ }, "strip", z.ZodTypeAny, {
370
+ driver: string;
371
+ driverVersion: string;
372
+ engine: string;
373
+ engineVersion: string;
374
+ reason: string;
375
+ kind?: "driver-engine" | undefined;
376
+ }, {
377
+ driver: string;
378
+ driverVersion: string;
379
+ engine: string;
380
+ engineVersion: string;
381
+ reason: string;
382
+ kind?: "driver-engine" | undefined;
383
+ }>, z.ZodObject<{
384
+ kind: z.ZodLiteral<"node-engine">;
385
+ package: z.ZodString;
386
+ packageVersion: z.ZodOptional<z.ZodString>;
387
+ requiredNodeVersion: z.ZodString;
388
+ declaredNodeEngine: z.ZodOptional<z.ZodString>;
389
+ reason: z.ZodString;
390
+ }, "strip", z.ZodTypeAny, {
391
+ kind: "node-engine";
392
+ reason: string;
393
+ package: string;
394
+ requiredNodeVersion: string;
395
+ packageVersion?: string | undefined;
396
+ declaredNodeEngine?: string | undefined;
397
+ }, {
398
+ kind: "node-engine";
399
+ reason: string;
400
+ package: string;
401
+ requiredNodeVersion: string;
402
+ packageVersion?: string | undefined;
403
+ declaredNodeEngine?: string | undefined;
404
+ }>, z.ZodObject<{
405
+ kind: z.ZodLiteral<"package-conflict">;
406
+ package: z.ZodString;
407
+ packageVersion: z.ZodOptional<z.ZodString>;
408
+ requires: z.ZodObject<{
409
+ name: z.ZodString;
410
+ minVersion: z.ZodString;
411
+ }, "strip", z.ZodTypeAny, {
412
+ name: string;
413
+ minVersion: string;
414
+ }, {
415
+ name: string;
416
+ minVersion: string;
417
+ }>;
418
+ foundVersion: z.ZodOptional<z.ZodString>;
419
+ reason: z.ZodString;
420
+ }, "strip", z.ZodTypeAny, {
421
+ kind: "package-conflict";
422
+ reason: string;
423
+ package: string;
424
+ requires: {
425
+ name: string;
426
+ minVersion: string;
427
+ };
428
+ packageVersion?: string | undefined;
429
+ foundVersion?: string | undefined;
430
+ }, {
431
+ kind: "package-conflict";
432
+ reason: string;
433
+ package: string;
434
+ requires: {
435
+ name: string;
436
+ minVersion: string;
437
+ };
438
+ packageVersion?: string | undefined;
439
+ foundVersion?: string | undefined;
440
+ }>, z.ZodObject<{
441
+ kind: z.ZodLiteral<"deprecated-api">;
442
+ package: z.ZodString;
443
+ packageVersion: z.ZodOptional<z.ZodString>;
444
+ reason: z.ZodString;
445
+ }, "strip", z.ZodTypeAny, {
446
+ kind: "deprecated-api";
447
+ reason: string;
448
+ package: string;
449
+ packageVersion?: string | undefined;
450
+ }, {
451
+ kind: "deprecated-api";
452
+ reason: string;
453
+ package: string;
454
+ packageVersion?: string | undefined;
455
+ }>]>, "many">>;
456
+ }, "strip", z.ZodTypeAny, {
457
+ name: string;
458
+ type: "ServiceNode";
459
+ id: string;
460
+ language: string;
461
+ discoveredVia?: "static" | "otel" | "merged" | undefined;
462
+ version?: string | undefined;
463
+ dbConnectionTarget?: string | undefined;
464
+ repoPath?: string | undefined;
465
+ dependencies?: Record<string, string> | undefined;
466
+ aliases?: string[] | undefined;
467
+ nodeEngine?: string | undefined;
468
+ incompatibilities?: ({
469
+ driver: string;
470
+ driverVersion: string;
471
+ engine: string;
472
+ engineVersion: string;
473
+ reason: string;
474
+ kind?: "driver-engine" | undefined;
475
+ } | {
476
+ kind: "node-engine";
477
+ reason: string;
478
+ package: string;
479
+ requiredNodeVersion: string;
480
+ packageVersion?: string | undefined;
481
+ declaredNodeEngine?: string | undefined;
482
+ } | {
483
+ kind: "package-conflict";
484
+ reason: string;
485
+ package: string;
486
+ requires: {
487
+ name: string;
488
+ minVersion: string;
489
+ };
490
+ packageVersion?: string | undefined;
491
+ foundVersion?: string | undefined;
492
+ } | {
493
+ kind: "deprecated-api";
494
+ reason: string;
495
+ package: string;
496
+ packageVersion?: string | undefined;
497
+ })[] | undefined;
498
+ }, {
499
+ name: string;
500
+ type: "ServiceNode";
501
+ id: string;
502
+ language: string;
503
+ discoveredVia?: "static" | "otel" | "merged" | undefined;
504
+ version?: string | undefined;
505
+ dbConnectionTarget?: string | undefined;
506
+ repoPath?: string | undefined;
507
+ dependencies?: Record<string, string> | undefined;
508
+ aliases?: string[] | undefined;
509
+ nodeEngine?: string | undefined;
510
+ incompatibilities?: ({
511
+ driver: string;
512
+ driverVersion: string;
513
+ engine: string;
514
+ engineVersion: string;
515
+ reason: string;
516
+ kind?: "driver-engine" | undefined;
517
+ } | {
518
+ kind: "node-engine";
519
+ reason: string;
520
+ package: string;
521
+ requiredNodeVersion: string;
522
+ packageVersion?: string | undefined;
523
+ declaredNodeEngine?: string | undefined;
524
+ } | {
525
+ kind: "package-conflict";
526
+ reason: string;
527
+ package: string;
528
+ requires: {
529
+ name: string;
530
+ minVersion: string;
531
+ };
532
+ packageVersion?: string | undefined;
533
+ foundVersion?: string | undefined;
534
+ } | {
535
+ kind: "deprecated-api";
536
+ reason: string;
537
+ package: string;
538
+ packageVersion?: string | undefined;
539
+ })[] | undefined;
540
+ }>, z.ZodObject<{
541
+ id: z.ZodString;
542
+ type: z.ZodLiteral<"DatabaseNode">;
543
+ name: z.ZodString;
544
+ engine: z.ZodString;
545
+ engineVersion: z.ZodString;
546
+ compatibleDrivers: z.ZodArray<z.ZodObject<{
547
+ name: z.ZodString;
548
+ minVersion: z.ZodString;
549
+ }, "strip", z.ZodTypeAny, {
550
+ name: string;
551
+ minVersion: string;
552
+ }, {
553
+ name: string;
554
+ minVersion: string;
555
+ }>, "many">;
556
+ host: z.ZodOptional<z.ZodString>;
557
+ port: z.ZodOptional<z.ZodNumber>;
558
+ discoveredVia: z.ZodOptional<z.ZodEnum<["static", "otel", "merged"]>>;
559
+ }, "strip", z.ZodTypeAny, {
560
+ name: string;
561
+ type: "DatabaseNode";
562
+ id: string;
563
+ engine: string;
564
+ engineVersion: string;
565
+ compatibleDrivers: {
566
+ name: string;
567
+ minVersion: string;
568
+ }[];
569
+ discoveredVia?: "static" | "otel" | "merged" | undefined;
570
+ host?: string | undefined;
571
+ port?: number | undefined;
572
+ }, {
573
+ name: string;
574
+ type: "DatabaseNode";
575
+ id: string;
576
+ engine: string;
577
+ engineVersion: string;
578
+ compatibleDrivers: {
579
+ name: string;
580
+ minVersion: string;
581
+ }[];
582
+ discoveredVia?: "static" | "otel" | "merged" | undefined;
583
+ host?: string | undefined;
584
+ port?: number | undefined;
585
+ }>, z.ZodObject<{
586
+ id: z.ZodString;
587
+ type: z.ZodLiteral<"ConfigNode">;
588
+ name: z.ZodString;
589
+ path: z.ZodString;
590
+ fileType: z.ZodString;
591
+ }, "strip", z.ZodTypeAny, {
592
+ name: string;
593
+ path: string;
594
+ type: "ConfigNode";
595
+ id: string;
596
+ fileType: string;
597
+ }, {
598
+ name: string;
599
+ path: string;
600
+ type: "ConfigNode";
601
+ id: string;
602
+ fileType: string;
603
+ }>, z.ZodObject<{
604
+ id: z.ZodString;
605
+ type: z.ZodLiteral<"InfraNode">;
606
+ name: z.ZodString;
607
+ provider: z.ZodString;
608
+ region: z.ZodOptional<z.ZodString>;
609
+ kind: z.ZodOptional<z.ZodString>;
610
+ }, "strip", z.ZodTypeAny, {
611
+ name: string;
612
+ type: "InfraNode";
613
+ id: string;
614
+ provider: string;
615
+ kind?: string | undefined;
616
+ region?: string | undefined;
617
+ }, {
618
+ name: string;
619
+ type: "InfraNode";
620
+ id: string;
621
+ provider: string;
622
+ kind?: string | undefined;
623
+ region?: string | undefined;
624
+ }>, z.ZodObject<{
625
+ id: z.ZodString;
626
+ type: z.ZodLiteral<"FrontierNode">;
627
+ name: z.ZodString;
628
+ host: z.ZodString;
629
+ firstObserved: z.ZodOptional<z.ZodString>;
630
+ lastObserved: z.ZodOptional<z.ZodString>;
631
+ }, "strip", z.ZodTypeAny, {
632
+ name: string;
633
+ type: "FrontierNode";
634
+ id: string;
635
+ host: string;
636
+ firstObserved?: string | undefined;
637
+ lastObserved?: string | undefined;
638
+ }, {
639
+ name: string;
640
+ type: "FrontierNode";
641
+ id: string;
642
+ host: string;
643
+ firstObserved?: string | undefined;
644
+ lastObserved?: string | undefined;
645
+ }>]>;
646
+ type GraphNode = z.infer<typeof GraphNodeSchema>;
647
+
648
+ declare const ProvenanceSchema: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE", "FRONTIER"]>;
649
+ declare const EdgeTypeSchema: z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON"]>;
650
+ declare const EdgeEvidenceSchema: z.ZodObject<{
651
+ file: z.ZodString;
652
+ line: z.ZodNumber;
653
+ snippet: z.ZodString;
654
+ }, "strip", z.ZodTypeAny, {
655
+ file: string;
656
+ line: number;
657
+ snippet: string;
658
+ }, {
659
+ file: string;
660
+ line: number;
661
+ snippet: string;
662
+ }>;
663
+ type EdgeEvidence = z.infer<typeof EdgeEvidenceSchema>;
664
+ declare const EdgeSignalSchema: z.ZodObject<{
665
+ spanCount: z.ZodNumber;
666
+ errorCount: z.ZodNumber;
667
+ lastObservedAgeMs: z.ZodOptional<z.ZodNumber>;
668
+ }, "strip", z.ZodTypeAny, {
669
+ spanCount: number;
670
+ errorCount: number;
671
+ lastObservedAgeMs?: number | undefined;
672
+ }, {
673
+ spanCount: number;
674
+ errorCount: number;
675
+ lastObservedAgeMs?: number | undefined;
676
+ }>;
677
+ type EdgeSignal = z.infer<typeof EdgeSignalSchema>;
678
+ declare const GraphEdgeSchema: z.ZodObject<{
679
+ id: z.ZodString;
680
+ source: z.ZodString;
681
+ target: z.ZodString;
682
+ type: z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON"]>;
683
+ provenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE", "FRONTIER"]>;
684
+ confidence: z.ZodOptional<z.ZodNumber>;
685
+ lastObserved: z.ZodOptional<z.ZodString>;
686
+ callCount: z.ZodOptional<z.ZodNumber>;
687
+ evidence: z.ZodOptional<z.ZodObject<{
688
+ file: z.ZodString;
689
+ line: z.ZodNumber;
690
+ snippet: z.ZodString;
691
+ }, "strip", z.ZodTypeAny, {
692
+ file: string;
693
+ line: number;
694
+ snippet: string;
695
+ }, {
696
+ file: string;
697
+ line: number;
698
+ snippet: string;
699
+ }>>;
700
+ signal: z.ZodOptional<z.ZodObject<{
701
+ spanCount: z.ZodNumber;
702
+ errorCount: z.ZodNumber;
703
+ lastObservedAgeMs: z.ZodOptional<z.ZodNumber>;
704
+ }, "strip", z.ZodTypeAny, {
705
+ spanCount: number;
706
+ errorCount: number;
707
+ lastObservedAgeMs?: number | undefined;
708
+ }, {
709
+ spanCount: number;
710
+ errorCount: number;
711
+ lastObservedAgeMs?: number | undefined;
712
+ }>>;
713
+ }, "strip", z.ZodTypeAny, {
714
+ type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
715
+ id: string;
716
+ source: string;
717
+ target: string;
718
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER";
719
+ lastObserved?: string | undefined;
720
+ confidence?: number | undefined;
721
+ callCount?: number | undefined;
722
+ evidence?: {
723
+ file: string;
724
+ line: number;
725
+ snippet: string;
726
+ } | undefined;
727
+ signal?: {
728
+ spanCount: number;
729
+ errorCount: number;
730
+ lastObservedAgeMs?: number | undefined;
731
+ } | undefined;
732
+ }, {
733
+ type: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
734
+ id: string;
735
+ source: string;
736
+ target: string;
737
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER";
738
+ lastObserved?: string | undefined;
739
+ confidence?: number | undefined;
740
+ callCount?: number | undefined;
741
+ evidence?: {
742
+ file: string;
743
+ line: number;
744
+ snippet: string;
745
+ } | undefined;
746
+ signal?: {
747
+ spanCount: number;
748
+ errorCount: number;
749
+ lastObservedAgeMs?: number | undefined;
750
+ } | undefined;
751
+ }>;
752
+ type GraphEdge = z.infer<typeof GraphEdgeSchema>;
753
+
754
+ declare const ErrorEventSchema: z.ZodObject<{
755
+ id: z.ZodString;
756
+ timestamp: z.ZodString;
757
+ service: z.ZodString;
758
+ traceId: z.ZodString;
759
+ spanId: z.ZodString;
760
+ errorType: z.ZodOptional<z.ZodString>;
761
+ errorMessage: z.ZodString;
762
+ exceptionType: z.ZodOptional<z.ZodString>;
763
+ exceptionStacktrace: z.ZodOptional<z.ZodString>;
764
+ affectedNode: z.ZodString;
765
+ }, "strip", z.ZodTypeAny, {
766
+ id: string;
767
+ timestamp: string;
768
+ service: string;
769
+ traceId: string;
770
+ spanId: string;
771
+ errorMessage: string;
772
+ affectedNode: string;
773
+ errorType?: string | undefined;
774
+ exceptionType?: string | undefined;
775
+ exceptionStacktrace?: string | undefined;
776
+ }, {
777
+ id: string;
778
+ timestamp: string;
779
+ service: string;
780
+ traceId: string;
781
+ spanId: string;
782
+ errorMessage: string;
783
+ affectedNode: string;
784
+ errorType?: string | undefined;
785
+ exceptionType?: string | undefined;
786
+ exceptionStacktrace?: string | undefined;
787
+ }>;
788
+ type ErrorEvent = z.infer<typeof ErrorEventSchema>;
789
+
790
+ declare const RootCauseResultSchema: z.ZodObject<{
791
+ rootCauseNode: z.ZodString;
792
+ rootCauseReason: z.ZodString;
793
+ traversalPath: z.ZodArray<z.ZodString, "many">;
794
+ edgeProvenances: z.ZodArray<z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE", "FRONTIER"]>, "many">;
795
+ confidence: z.ZodNumber;
796
+ fixRecommendation: z.ZodOptional<z.ZodString>;
797
+ }, "strip", z.ZodTypeAny, {
798
+ confidence: number;
799
+ rootCauseNode: string;
800
+ rootCauseReason: string;
801
+ traversalPath: string[];
802
+ edgeProvenances: ("EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER")[];
803
+ fixRecommendation?: string | undefined;
804
+ }, {
805
+ confidence: number;
806
+ rootCauseNode: string;
807
+ rootCauseReason: string;
808
+ traversalPath: string[];
809
+ edgeProvenances: ("EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER")[];
810
+ fixRecommendation?: string | undefined;
811
+ }>;
812
+ type RootCauseResult = z.infer<typeof RootCauseResultSchema>;
813
+ declare const BlastRadiusAffectedNodeSchema: z.ZodObject<{
814
+ nodeId: z.ZodString;
815
+ distance: z.ZodNumber;
816
+ edgeProvenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE", "FRONTIER"]>;
817
+ path: z.ZodArray<z.ZodString, "many">;
818
+ confidence: z.ZodNumber;
819
+ }, "strip", z.ZodTypeAny, {
820
+ path: string[];
821
+ confidence: number;
822
+ nodeId: string;
823
+ distance: number;
824
+ edgeProvenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER";
825
+ }, {
826
+ path: string[];
827
+ confidence: number;
828
+ nodeId: string;
829
+ distance: number;
830
+ edgeProvenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER";
831
+ }>;
832
+ type BlastRadiusAffectedNode = z.infer<typeof BlastRadiusAffectedNodeSchema>;
833
+ declare const BlastRadiusResultSchema: z.ZodObject<{
834
+ origin: z.ZodString;
835
+ affectedNodes: z.ZodArray<z.ZodObject<{
836
+ nodeId: z.ZodString;
837
+ distance: z.ZodNumber;
838
+ edgeProvenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE", "FRONTIER"]>;
839
+ path: z.ZodArray<z.ZodString, "many">;
840
+ confidence: z.ZodNumber;
841
+ }, "strip", z.ZodTypeAny, {
842
+ path: string[];
843
+ confidence: number;
844
+ nodeId: string;
845
+ distance: number;
846
+ edgeProvenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER";
847
+ }, {
848
+ path: string[];
849
+ confidence: number;
850
+ nodeId: string;
851
+ distance: number;
852
+ edgeProvenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER";
853
+ }>, "many">;
854
+ totalAffected: z.ZodNumber;
855
+ }, "strip", z.ZodTypeAny, {
856
+ origin: string;
857
+ affectedNodes: {
858
+ path: string[];
859
+ confidence: number;
860
+ nodeId: string;
861
+ distance: number;
862
+ edgeProvenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER";
863
+ }[];
864
+ totalAffected: number;
865
+ }, {
866
+ origin: string;
867
+ affectedNodes: {
868
+ path: string[];
869
+ confidence: number;
870
+ nodeId: string;
871
+ distance: number;
872
+ edgeProvenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER";
873
+ }[];
874
+ totalAffected: number;
875
+ }>;
876
+ type BlastRadiusResult = z.infer<typeof BlastRadiusResultSchema>;
877
+ declare const TransitiveDependencySchema: z.ZodObject<{
878
+ nodeId: z.ZodString;
879
+ distance: z.ZodNumber;
880
+ edgeType: z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON"]>;
881
+ provenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE", "FRONTIER"]>;
882
+ }, "strip", z.ZodTypeAny, {
883
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER";
884
+ nodeId: string;
885
+ distance: number;
886
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
887
+ }, {
888
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER";
889
+ nodeId: string;
890
+ distance: number;
891
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
892
+ }>;
893
+ type TransitiveDependency = z.infer<typeof TransitiveDependencySchema>;
894
+ declare const TransitiveDependenciesResultSchema: z.ZodObject<{
895
+ origin: z.ZodString;
896
+ depth: z.ZodNumber;
897
+ dependencies: z.ZodArray<z.ZodObject<{
898
+ nodeId: z.ZodString;
899
+ distance: z.ZodNumber;
900
+ edgeType: z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON"]>;
901
+ provenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE", "FRONTIER"]>;
902
+ }, "strip", z.ZodTypeAny, {
903
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER";
904
+ nodeId: string;
905
+ distance: number;
906
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
907
+ }, {
908
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER";
909
+ nodeId: string;
910
+ distance: number;
911
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
912
+ }>, "many">;
913
+ total: z.ZodNumber;
914
+ }, "strip", z.ZodTypeAny, {
915
+ dependencies: {
916
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER";
917
+ nodeId: string;
918
+ distance: number;
919
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
920
+ }[];
921
+ origin: string;
922
+ depth: number;
923
+ total: number;
924
+ }, {
925
+ dependencies: {
926
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER";
927
+ nodeId: string;
928
+ distance: number;
929
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
930
+ }[];
931
+ origin: string;
932
+ depth: number;
933
+ total: number;
934
+ }>;
935
+ type TransitiveDependenciesResult = z.infer<typeof TransitiveDependenciesResultSchema>;
936
+
937
+ declare function serviceId(name: string): string;
938
+ declare function parseServiceId(id: string): string | null;
939
+ declare function databaseId(host: string): string;
940
+ declare function parseDatabaseId(id: string): string | null;
941
+ declare function configId(relPath: string): string;
942
+ declare function parseConfigId(id: string): string | null;
943
+ declare function infraId(kind: string, name: string): string;
944
+ declare function parseInfraId(id: string): {
945
+ kind: string;
946
+ name: string;
947
+ } | null;
948
+ declare function frontierId(host: string): string;
949
+ declare function parseFrontierId(id: string): string | null;
950
+ declare function extractedEdgeId(source: string, target: string, type: string): string;
951
+ declare function observedEdgeId(source: string, target: string, type: string): string;
952
+ declare function inferredEdgeId(source: string, target: string, type: string): string;
953
+ declare function frontierEdgeId(source: string, target: string, type: string): string;
954
+ declare function parseEdgeId(id: string): {
955
+ type: string;
956
+ provenance: 'EXTRACTED' | 'OBSERVED' | 'INFERRED' | 'FRONTIER';
957
+ source: string;
958
+ target: string;
959
+ } | null;
960
+ declare const PROV_RANK: Readonly<Record<'OBSERVED' | 'INFERRED' | 'EXTRACTED' | 'STALE' | 'FRONTIER', number>>;
961
+
962
+ declare const PolicySeveritySchema: z.ZodEnum<["info", "warning", "error", "critical"]>;
963
+ type PolicySeverity = z.infer<typeof PolicySeveritySchema>;
964
+ declare const PolicyActionSchema: z.ZodEnum<["log", "alert", "block"]>;
965
+ type PolicyAction = z.infer<typeof PolicyActionSchema>;
966
+ declare const StructuralRuleSchema: z.ZodObject<{
967
+ type: z.ZodLiteral<"structural">;
968
+ fromNodeType: z.ZodEnum<["ServiceNode", "DatabaseNode", "ConfigNode", "InfraNode", "FrontierNode"]>;
969
+ edgeType: z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON"]>;
970
+ toNodeType: z.ZodEnum<["ServiceNode", "DatabaseNode", "ConfigNode", "InfraNode", "FrontierNode"]>;
971
+ }, "strip", z.ZodTypeAny, {
972
+ type: "structural";
973
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
974
+ fromNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
975
+ toNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
976
+ }, {
977
+ type: "structural";
978
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
979
+ fromNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
980
+ toNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
981
+ }>;
982
+ type StructuralRule = z.infer<typeof StructuralRuleSchema>;
983
+ declare const CompatibilityRuleSchema: z.ZodObject<{
984
+ type: z.ZodLiteral<"compatibility">;
985
+ kind: z.ZodOptional<z.ZodEnum<["driver-engine", "node-engine", "package-conflict", "deprecated-api"]>>;
986
+ }, "strip", z.ZodTypeAny, {
987
+ type: "compatibility";
988
+ kind?: "driver-engine" | "node-engine" | "package-conflict" | "deprecated-api" | undefined;
989
+ }, {
990
+ type: "compatibility";
991
+ kind?: "driver-engine" | "node-engine" | "package-conflict" | "deprecated-api" | undefined;
992
+ }>;
993
+ type CompatibilityRule = z.infer<typeof CompatibilityRuleSchema>;
994
+ declare const ProvenanceRuleSchema: z.ZodObject<{
995
+ type: z.ZodLiteral<"provenance">;
996
+ edgeType: z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON"]>;
997
+ targetNodeId: z.ZodOptional<z.ZodString>;
998
+ required: z.ZodUnion<[z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE", "FRONTIER"]>, z.ZodArray<z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE", "FRONTIER"]>, "many">]>;
999
+ }, "strip", z.ZodTypeAny, {
1000
+ type: "provenance";
1001
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1002
+ required: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER" | ("EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER")[];
1003
+ targetNodeId?: string | undefined;
1004
+ }, {
1005
+ type: "provenance";
1006
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1007
+ required: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER" | ("EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER")[];
1008
+ targetNodeId?: string | undefined;
1009
+ }>;
1010
+ type ProvenanceRule = z.infer<typeof ProvenanceRuleSchema>;
1011
+ declare const OwnershipRuleSchema: z.ZodObject<{
1012
+ type: z.ZodLiteral<"ownership">;
1013
+ nodeType: z.ZodEnum<["ServiceNode", "DatabaseNode", "ConfigNode", "InfraNode", "FrontierNode"]>;
1014
+ field: z.ZodDefault<z.ZodString>;
1015
+ }, "strip", z.ZodTypeAny, {
1016
+ type: "ownership";
1017
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1018
+ field: string;
1019
+ }, {
1020
+ type: "ownership";
1021
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1022
+ field?: string | undefined;
1023
+ }>;
1024
+ type OwnershipRule = z.infer<typeof OwnershipRuleSchema>;
1025
+ declare const BlastRadiusRuleSchema: z.ZodObject<{
1026
+ type: z.ZodLiteral<"blast-radius">;
1027
+ nodeType: z.ZodEnum<["ServiceNode", "DatabaseNode", "ConfigNode", "InfraNode", "FrontierNode"]>;
1028
+ maxAffected: z.ZodNumber;
1029
+ depth: z.ZodOptional<z.ZodNumber>;
1030
+ }, "strip", z.ZodTypeAny, {
1031
+ type: "blast-radius";
1032
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1033
+ maxAffected: number;
1034
+ depth?: number | undefined;
1035
+ }, {
1036
+ type: "blast-radius";
1037
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1038
+ maxAffected: number;
1039
+ depth?: number | undefined;
1040
+ }>;
1041
+ type BlastRadiusRule = z.infer<typeof BlastRadiusRuleSchema>;
1042
+ declare const PolicyRuleSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1043
+ type: z.ZodLiteral<"structural">;
1044
+ fromNodeType: z.ZodEnum<["ServiceNode", "DatabaseNode", "ConfigNode", "InfraNode", "FrontierNode"]>;
1045
+ edgeType: z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON"]>;
1046
+ toNodeType: z.ZodEnum<["ServiceNode", "DatabaseNode", "ConfigNode", "InfraNode", "FrontierNode"]>;
1047
+ }, "strip", z.ZodTypeAny, {
1048
+ type: "structural";
1049
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1050
+ fromNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1051
+ toNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1052
+ }, {
1053
+ type: "structural";
1054
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1055
+ fromNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1056
+ toNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1057
+ }>, z.ZodObject<{
1058
+ type: z.ZodLiteral<"compatibility">;
1059
+ kind: z.ZodOptional<z.ZodEnum<["driver-engine", "node-engine", "package-conflict", "deprecated-api"]>>;
1060
+ }, "strip", z.ZodTypeAny, {
1061
+ type: "compatibility";
1062
+ kind?: "driver-engine" | "node-engine" | "package-conflict" | "deprecated-api" | undefined;
1063
+ }, {
1064
+ type: "compatibility";
1065
+ kind?: "driver-engine" | "node-engine" | "package-conflict" | "deprecated-api" | undefined;
1066
+ }>, z.ZodObject<{
1067
+ type: z.ZodLiteral<"provenance">;
1068
+ edgeType: z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON"]>;
1069
+ targetNodeId: z.ZodOptional<z.ZodString>;
1070
+ required: z.ZodUnion<[z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE", "FRONTIER"]>, z.ZodArray<z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE", "FRONTIER"]>, "many">]>;
1071
+ }, "strip", z.ZodTypeAny, {
1072
+ type: "provenance";
1073
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1074
+ required: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER" | ("EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER")[];
1075
+ targetNodeId?: string | undefined;
1076
+ }, {
1077
+ type: "provenance";
1078
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1079
+ required: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER" | ("EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER")[];
1080
+ targetNodeId?: string | undefined;
1081
+ }>, z.ZodObject<{
1082
+ type: z.ZodLiteral<"ownership">;
1083
+ nodeType: z.ZodEnum<["ServiceNode", "DatabaseNode", "ConfigNode", "InfraNode", "FrontierNode"]>;
1084
+ field: z.ZodDefault<z.ZodString>;
1085
+ }, "strip", z.ZodTypeAny, {
1086
+ type: "ownership";
1087
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1088
+ field: string;
1089
+ }, {
1090
+ type: "ownership";
1091
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1092
+ field?: string | undefined;
1093
+ }>, z.ZodObject<{
1094
+ type: z.ZodLiteral<"blast-radius">;
1095
+ nodeType: z.ZodEnum<["ServiceNode", "DatabaseNode", "ConfigNode", "InfraNode", "FrontierNode"]>;
1096
+ maxAffected: z.ZodNumber;
1097
+ depth: z.ZodOptional<z.ZodNumber>;
1098
+ }, "strip", z.ZodTypeAny, {
1099
+ type: "blast-radius";
1100
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1101
+ maxAffected: number;
1102
+ depth?: number | undefined;
1103
+ }, {
1104
+ type: "blast-radius";
1105
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1106
+ maxAffected: number;
1107
+ depth?: number | undefined;
1108
+ }>]>;
1109
+ type PolicyRule = z.infer<typeof PolicyRuleSchema>;
1110
+ declare const PolicySchema: z.ZodObject<{
1111
+ id: z.ZodString;
1112
+ name: z.ZodString;
1113
+ description: z.ZodOptional<z.ZodString>;
1114
+ severity: z.ZodEnum<["info", "warning", "error", "critical"]>;
1115
+ onViolation: z.ZodOptional<z.ZodEnum<["log", "alert", "block"]>>;
1116
+ rule: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1117
+ type: z.ZodLiteral<"structural">;
1118
+ fromNodeType: z.ZodEnum<["ServiceNode", "DatabaseNode", "ConfigNode", "InfraNode", "FrontierNode"]>;
1119
+ edgeType: z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON"]>;
1120
+ toNodeType: z.ZodEnum<["ServiceNode", "DatabaseNode", "ConfigNode", "InfraNode", "FrontierNode"]>;
1121
+ }, "strip", z.ZodTypeAny, {
1122
+ type: "structural";
1123
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1124
+ fromNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1125
+ toNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1126
+ }, {
1127
+ type: "structural";
1128
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1129
+ fromNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1130
+ toNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1131
+ }>, z.ZodObject<{
1132
+ type: z.ZodLiteral<"compatibility">;
1133
+ kind: z.ZodOptional<z.ZodEnum<["driver-engine", "node-engine", "package-conflict", "deprecated-api"]>>;
1134
+ }, "strip", z.ZodTypeAny, {
1135
+ type: "compatibility";
1136
+ kind?: "driver-engine" | "node-engine" | "package-conflict" | "deprecated-api" | undefined;
1137
+ }, {
1138
+ type: "compatibility";
1139
+ kind?: "driver-engine" | "node-engine" | "package-conflict" | "deprecated-api" | undefined;
1140
+ }>, z.ZodObject<{
1141
+ type: z.ZodLiteral<"provenance">;
1142
+ edgeType: z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON"]>;
1143
+ targetNodeId: z.ZodOptional<z.ZodString>;
1144
+ required: z.ZodUnion<[z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE", "FRONTIER"]>, z.ZodArray<z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE", "FRONTIER"]>, "many">]>;
1145
+ }, "strip", z.ZodTypeAny, {
1146
+ type: "provenance";
1147
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1148
+ required: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER" | ("EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER")[];
1149
+ targetNodeId?: string | undefined;
1150
+ }, {
1151
+ type: "provenance";
1152
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1153
+ required: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER" | ("EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER")[];
1154
+ targetNodeId?: string | undefined;
1155
+ }>, z.ZodObject<{
1156
+ type: z.ZodLiteral<"ownership">;
1157
+ nodeType: z.ZodEnum<["ServiceNode", "DatabaseNode", "ConfigNode", "InfraNode", "FrontierNode"]>;
1158
+ field: z.ZodDefault<z.ZodString>;
1159
+ }, "strip", z.ZodTypeAny, {
1160
+ type: "ownership";
1161
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1162
+ field: string;
1163
+ }, {
1164
+ type: "ownership";
1165
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1166
+ field?: string | undefined;
1167
+ }>, z.ZodObject<{
1168
+ type: z.ZodLiteral<"blast-radius">;
1169
+ nodeType: z.ZodEnum<["ServiceNode", "DatabaseNode", "ConfigNode", "InfraNode", "FrontierNode"]>;
1170
+ maxAffected: z.ZodNumber;
1171
+ depth: z.ZodOptional<z.ZodNumber>;
1172
+ }, "strip", z.ZodTypeAny, {
1173
+ type: "blast-radius";
1174
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1175
+ maxAffected: number;
1176
+ depth?: number | undefined;
1177
+ }, {
1178
+ type: "blast-radius";
1179
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1180
+ maxAffected: number;
1181
+ depth?: number | undefined;
1182
+ }>]>;
1183
+ }, "strip", z.ZodTypeAny, {
1184
+ name: string;
1185
+ id: string;
1186
+ severity: "info" | "warning" | "error" | "critical";
1187
+ rule: {
1188
+ type: "structural";
1189
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1190
+ fromNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1191
+ toNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1192
+ } | {
1193
+ type: "compatibility";
1194
+ kind?: "driver-engine" | "node-engine" | "package-conflict" | "deprecated-api" | undefined;
1195
+ } | {
1196
+ type: "provenance";
1197
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1198
+ required: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER" | ("EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER")[];
1199
+ targetNodeId?: string | undefined;
1200
+ } | {
1201
+ type: "ownership";
1202
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1203
+ field: string;
1204
+ } | {
1205
+ type: "blast-radius";
1206
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1207
+ maxAffected: number;
1208
+ depth?: number | undefined;
1209
+ };
1210
+ description?: string | undefined;
1211
+ onViolation?: "log" | "alert" | "block" | undefined;
1212
+ }, {
1213
+ name: string;
1214
+ id: string;
1215
+ severity: "info" | "warning" | "error" | "critical";
1216
+ rule: {
1217
+ type: "structural";
1218
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1219
+ fromNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1220
+ toNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1221
+ } | {
1222
+ type: "compatibility";
1223
+ kind?: "driver-engine" | "node-engine" | "package-conflict" | "deprecated-api" | undefined;
1224
+ } | {
1225
+ type: "provenance";
1226
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1227
+ required: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER" | ("EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER")[];
1228
+ targetNodeId?: string | undefined;
1229
+ } | {
1230
+ type: "ownership";
1231
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1232
+ field?: string | undefined;
1233
+ } | {
1234
+ type: "blast-radius";
1235
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1236
+ maxAffected: number;
1237
+ depth?: number | undefined;
1238
+ };
1239
+ description?: string | undefined;
1240
+ onViolation?: "log" | "alert" | "block" | undefined;
1241
+ }>;
1242
+ type Policy = z.infer<typeof PolicySchema>;
1243
+ declare const PolicyFileSchema: z.ZodEffects<z.ZodObject<{
1244
+ version: z.ZodLiteral<1>;
1245
+ policies: z.ZodArray<z.ZodObject<{
1246
+ id: z.ZodString;
1247
+ name: z.ZodString;
1248
+ description: z.ZodOptional<z.ZodString>;
1249
+ severity: z.ZodEnum<["info", "warning", "error", "critical"]>;
1250
+ onViolation: z.ZodOptional<z.ZodEnum<["log", "alert", "block"]>>;
1251
+ rule: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1252
+ type: z.ZodLiteral<"structural">;
1253
+ fromNodeType: z.ZodEnum<["ServiceNode", "DatabaseNode", "ConfigNode", "InfraNode", "FrontierNode"]>;
1254
+ edgeType: z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON"]>;
1255
+ toNodeType: z.ZodEnum<["ServiceNode", "DatabaseNode", "ConfigNode", "InfraNode", "FrontierNode"]>;
1256
+ }, "strip", z.ZodTypeAny, {
1257
+ type: "structural";
1258
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1259
+ fromNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1260
+ toNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1261
+ }, {
1262
+ type: "structural";
1263
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1264
+ fromNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1265
+ toNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1266
+ }>, z.ZodObject<{
1267
+ type: z.ZodLiteral<"compatibility">;
1268
+ kind: z.ZodOptional<z.ZodEnum<["driver-engine", "node-engine", "package-conflict", "deprecated-api"]>>;
1269
+ }, "strip", z.ZodTypeAny, {
1270
+ type: "compatibility";
1271
+ kind?: "driver-engine" | "node-engine" | "package-conflict" | "deprecated-api" | undefined;
1272
+ }, {
1273
+ type: "compatibility";
1274
+ kind?: "driver-engine" | "node-engine" | "package-conflict" | "deprecated-api" | undefined;
1275
+ }>, z.ZodObject<{
1276
+ type: z.ZodLiteral<"provenance">;
1277
+ edgeType: z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON"]>;
1278
+ targetNodeId: z.ZodOptional<z.ZodString>;
1279
+ required: z.ZodUnion<[z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE", "FRONTIER"]>, z.ZodArray<z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE", "FRONTIER"]>, "many">]>;
1280
+ }, "strip", z.ZodTypeAny, {
1281
+ type: "provenance";
1282
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1283
+ required: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER" | ("EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER")[];
1284
+ targetNodeId?: string | undefined;
1285
+ }, {
1286
+ type: "provenance";
1287
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1288
+ required: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER" | ("EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER")[];
1289
+ targetNodeId?: string | undefined;
1290
+ }>, z.ZodObject<{
1291
+ type: z.ZodLiteral<"ownership">;
1292
+ nodeType: z.ZodEnum<["ServiceNode", "DatabaseNode", "ConfigNode", "InfraNode", "FrontierNode"]>;
1293
+ field: z.ZodDefault<z.ZodString>;
1294
+ }, "strip", z.ZodTypeAny, {
1295
+ type: "ownership";
1296
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1297
+ field: string;
1298
+ }, {
1299
+ type: "ownership";
1300
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1301
+ field?: string | undefined;
1302
+ }>, z.ZodObject<{
1303
+ type: z.ZodLiteral<"blast-radius">;
1304
+ nodeType: z.ZodEnum<["ServiceNode", "DatabaseNode", "ConfigNode", "InfraNode", "FrontierNode"]>;
1305
+ maxAffected: z.ZodNumber;
1306
+ depth: z.ZodOptional<z.ZodNumber>;
1307
+ }, "strip", z.ZodTypeAny, {
1308
+ type: "blast-radius";
1309
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1310
+ maxAffected: number;
1311
+ depth?: number | undefined;
1312
+ }, {
1313
+ type: "blast-radius";
1314
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1315
+ maxAffected: number;
1316
+ depth?: number | undefined;
1317
+ }>]>;
1318
+ }, "strip", z.ZodTypeAny, {
1319
+ name: string;
1320
+ id: string;
1321
+ severity: "info" | "warning" | "error" | "critical";
1322
+ rule: {
1323
+ type: "structural";
1324
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1325
+ fromNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1326
+ toNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1327
+ } | {
1328
+ type: "compatibility";
1329
+ kind?: "driver-engine" | "node-engine" | "package-conflict" | "deprecated-api" | undefined;
1330
+ } | {
1331
+ type: "provenance";
1332
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1333
+ required: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER" | ("EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER")[];
1334
+ targetNodeId?: string | undefined;
1335
+ } | {
1336
+ type: "ownership";
1337
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1338
+ field: string;
1339
+ } | {
1340
+ type: "blast-radius";
1341
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1342
+ maxAffected: number;
1343
+ depth?: number | undefined;
1344
+ };
1345
+ description?: string | undefined;
1346
+ onViolation?: "log" | "alert" | "block" | undefined;
1347
+ }, {
1348
+ name: string;
1349
+ id: string;
1350
+ severity: "info" | "warning" | "error" | "critical";
1351
+ rule: {
1352
+ type: "structural";
1353
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1354
+ fromNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1355
+ toNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1356
+ } | {
1357
+ type: "compatibility";
1358
+ kind?: "driver-engine" | "node-engine" | "package-conflict" | "deprecated-api" | undefined;
1359
+ } | {
1360
+ type: "provenance";
1361
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1362
+ required: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER" | ("EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER")[];
1363
+ targetNodeId?: string | undefined;
1364
+ } | {
1365
+ type: "ownership";
1366
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1367
+ field?: string | undefined;
1368
+ } | {
1369
+ type: "blast-radius";
1370
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1371
+ maxAffected: number;
1372
+ depth?: number | undefined;
1373
+ };
1374
+ description?: string | undefined;
1375
+ onViolation?: "log" | "alert" | "block" | undefined;
1376
+ }>, "many">;
1377
+ }, "strip", z.ZodTypeAny, {
1378
+ version: 1;
1379
+ policies: {
1380
+ name: string;
1381
+ id: string;
1382
+ severity: "info" | "warning" | "error" | "critical";
1383
+ rule: {
1384
+ type: "structural";
1385
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1386
+ fromNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1387
+ toNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1388
+ } | {
1389
+ type: "compatibility";
1390
+ kind?: "driver-engine" | "node-engine" | "package-conflict" | "deprecated-api" | undefined;
1391
+ } | {
1392
+ type: "provenance";
1393
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1394
+ required: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER" | ("EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER")[];
1395
+ targetNodeId?: string | undefined;
1396
+ } | {
1397
+ type: "ownership";
1398
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1399
+ field: string;
1400
+ } | {
1401
+ type: "blast-radius";
1402
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1403
+ maxAffected: number;
1404
+ depth?: number | undefined;
1405
+ };
1406
+ description?: string | undefined;
1407
+ onViolation?: "log" | "alert" | "block" | undefined;
1408
+ }[];
1409
+ }, {
1410
+ version: 1;
1411
+ policies: {
1412
+ name: string;
1413
+ id: string;
1414
+ severity: "info" | "warning" | "error" | "critical";
1415
+ rule: {
1416
+ type: "structural";
1417
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1418
+ fromNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1419
+ toNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1420
+ } | {
1421
+ type: "compatibility";
1422
+ kind?: "driver-engine" | "node-engine" | "package-conflict" | "deprecated-api" | undefined;
1423
+ } | {
1424
+ type: "provenance";
1425
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1426
+ required: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER" | ("EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER")[];
1427
+ targetNodeId?: string | undefined;
1428
+ } | {
1429
+ type: "ownership";
1430
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1431
+ field?: string | undefined;
1432
+ } | {
1433
+ type: "blast-radius";
1434
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1435
+ maxAffected: number;
1436
+ depth?: number | undefined;
1437
+ };
1438
+ description?: string | undefined;
1439
+ onViolation?: "log" | "alert" | "block" | undefined;
1440
+ }[];
1441
+ }>, {
1442
+ version: 1;
1443
+ policies: {
1444
+ name: string;
1445
+ id: string;
1446
+ severity: "info" | "warning" | "error" | "critical";
1447
+ rule: {
1448
+ type: "structural";
1449
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1450
+ fromNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1451
+ toNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1452
+ } | {
1453
+ type: "compatibility";
1454
+ kind?: "driver-engine" | "node-engine" | "package-conflict" | "deprecated-api" | undefined;
1455
+ } | {
1456
+ type: "provenance";
1457
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1458
+ required: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER" | ("EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER")[];
1459
+ targetNodeId?: string | undefined;
1460
+ } | {
1461
+ type: "ownership";
1462
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1463
+ field: string;
1464
+ } | {
1465
+ type: "blast-radius";
1466
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1467
+ maxAffected: number;
1468
+ depth?: number | undefined;
1469
+ };
1470
+ description?: string | undefined;
1471
+ onViolation?: "log" | "alert" | "block" | undefined;
1472
+ }[];
1473
+ }, {
1474
+ version: 1;
1475
+ policies: {
1476
+ name: string;
1477
+ id: string;
1478
+ severity: "info" | "warning" | "error" | "critical";
1479
+ rule: {
1480
+ type: "structural";
1481
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1482
+ fromNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1483
+ toNodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1484
+ } | {
1485
+ type: "compatibility";
1486
+ kind?: "driver-engine" | "node-engine" | "package-conflict" | "deprecated-api" | undefined;
1487
+ } | {
1488
+ type: "provenance";
1489
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1490
+ required: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER" | ("EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER")[];
1491
+ targetNodeId?: string | undefined;
1492
+ } | {
1493
+ type: "ownership";
1494
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1495
+ field?: string | undefined;
1496
+ } | {
1497
+ type: "blast-radius";
1498
+ nodeType: "ServiceNode" | "DatabaseNode" | "ConfigNode" | "InfraNode" | "FrontierNode";
1499
+ maxAffected: number;
1500
+ depth?: number | undefined;
1501
+ };
1502
+ description?: string | undefined;
1503
+ onViolation?: "log" | "alert" | "block" | undefined;
1504
+ }[];
1505
+ }>;
1506
+ type PolicyFile = z.infer<typeof PolicyFileSchema>;
1507
+ declare const HypotheticalActionSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1508
+ kind: z.ZodLiteral<"promote-frontier">;
1509
+ frontierId: z.ZodString;
1510
+ }, "strip", z.ZodTypeAny, {
1511
+ kind: "promote-frontier";
1512
+ frontierId: string;
1513
+ }, {
1514
+ kind: "promote-frontier";
1515
+ frontierId: string;
1516
+ }>, z.ZodObject<{
1517
+ kind: z.ZodLiteral<"add-edge">;
1518
+ source: z.ZodString;
1519
+ target: z.ZodString;
1520
+ edgeType: z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON"]>;
1521
+ provenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE", "FRONTIER"]>;
1522
+ }, "strip", z.ZodTypeAny, {
1523
+ kind: "add-edge";
1524
+ source: string;
1525
+ target: string;
1526
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER";
1527
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1528
+ }, {
1529
+ kind: "add-edge";
1530
+ source: string;
1531
+ target: string;
1532
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER";
1533
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1534
+ }>]>;
1535
+ type HypotheticalAction = z.infer<typeof HypotheticalActionSchema>;
1536
+ declare const PoliciesCheckBodySchema: z.ZodObject<{
1537
+ hypotheticalAction: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1538
+ kind: z.ZodLiteral<"promote-frontier">;
1539
+ frontierId: z.ZodString;
1540
+ }, "strip", z.ZodTypeAny, {
1541
+ kind: "promote-frontier";
1542
+ frontierId: string;
1543
+ }, {
1544
+ kind: "promote-frontier";
1545
+ frontierId: string;
1546
+ }>, z.ZodObject<{
1547
+ kind: z.ZodLiteral<"add-edge">;
1548
+ source: z.ZodString;
1549
+ target: z.ZodString;
1550
+ edgeType: z.ZodEnum<["CALLS", "DEPENDS_ON", "CONNECTS_TO", "CONFIGURED_BY", "PUBLISHES_TO", "CONSUMES_FROM", "RUNS_ON"]>;
1551
+ provenance: z.ZodEnum<["EXTRACTED", "INFERRED", "OBSERVED", "STALE", "FRONTIER"]>;
1552
+ }, "strip", z.ZodTypeAny, {
1553
+ kind: "add-edge";
1554
+ source: string;
1555
+ target: string;
1556
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER";
1557
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1558
+ }, {
1559
+ kind: "add-edge";
1560
+ source: string;
1561
+ target: string;
1562
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER";
1563
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1564
+ }>]>>;
1565
+ }, "strip", z.ZodTypeAny, {
1566
+ hypotheticalAction?: {
1567
+ kind: "promote-frontier";
1568
+ frontierId: string;
1569
+ } | {
1570
+ kind: "add-edge";
1571
+ source: string;
1572
+ target: string;
1573
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER";
1574
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1575
+ } | undefined;
1576
+ }, {
1577
+ hypotheticalAction?: {
1578
+ kind: "promote-frontier";
1579
+ frontierId: string;
1580
+ } | {
1581
+ kind: "add-edge";
1582
+ source: string;
1583
+ target: string;
1584
+ provenance: "EXTRACTED" | "INFERRED" | "OBSERVED" | "STALE" | "FRONTIER";
1585
+ edgeType: "CALLS" | "DEPENDS_ON" | "CONNECTS_TO" | "CONFIGURED_BY" | "PUBLISHES_TO" | "CONSUMES_FROM" | "RUNS_ON";
1586
+ } | undefined;
1587
+ }>;
1588
+ type PoliciesCheckBody = z.infer<typeof PoliciesCheckBodySchema>;
1589
+ declare const CheckPoliciesScopeSchema: z.ZodUnion<[z.ZodEnum<["all", "unresolved"]>, z.ZodObject<{
1590
+ policyId: z.ZodString;
1591
+ }, "strip", z.ZodTypeAny, {
1592
+ policyId: string;
1593
+ }, {
1594
+ policyId: string;
1595
+ }>]>;
1596
+ type CheckPoliciesScope = z.infer<typeof CheckPoliciesScopeSchema>;
1597
+ declare const PolicyViolationSchema: z.ZodObject<{
1598
+ id: z.ZodString;
1599
+ policyId: z.ZodString;
1600
+ policyName: z.ZodString;
1601
+ severity: z.ZodEnum<["info", "warning", "error", "critical"]>;
1602
+ onViolation: z.ZodEnum<["log", "alert", "block"]>;
1603
+ ruleType: z.ZodEnum<["structural", "compatibility", "provenance", "ownership", "blast-radius"]>;
1604
+ subject: z.ZodEffects<z.ZodObject<{
1605
+ nodeId: z.ZodOptional<z.ZodString>;
1606
+ edgeId: z.ZodOptional<z.ZodString>;
1607
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1608
+ }, "strip", z.ZodTypeAny, {
1609
+ path?: string[] | undefined;
1610
+ nodeId?: string | undefined;
1611
+ edgeId?: string | undefined;
1612
+ }, {
1613
+ path?: string[] | undefined;
1614
+ nodeId?: string | undefined;
1615
+ edgeId?: string | undefined;
1616
+ }>, {
1617
+ path?: string[] | undefined;
1618
+ nodeId?: string | undefined;
1619
+ edgeId?: string | undefined;
1620
+ }, {
1621
+ path?: string[] | undefined;
1622
+ nodeId?: string | undefined;
1623
+ edgeId?: string | undefined;
1624
+ }>;
1625
+ message: z.ZodString;
1626
+ observedAt: z.ZodString;
1627
+ }, "strip", z.ZodTypeAny, {
1628
+ message: string;
1629
+ id: string;
1630
+ severity: "info" | "warning" | "error" | "critical";
1631
+ onViolation: "log" | "alert" | "block";
1632
+ policyId: string;
1633
+ policyName: string;
1634
+ ruleType: "provenance" | "structural" | "compatibility" | "ownership" | "blast-radius";
1635
+ subject: {
1636
+ path?: string[] | undefined;
1637
+ nodeId?: string | undefined;
1638
+ edgeId?: string | undefined;
1639
+ };
1640
+ observedAt: string;
1641
+ }, {
1642
+ message: string;
1643
+ id: string;
1644
+ severity: "info" | "warning" | "error" | "critical";
1645
+ onViolation: "log" | "alert" | "block";
1646
+ policyId: string;
1647
+ policyName: string;
1648
+ ruleType: "provenance" | "structural" | "compatibility" | "ownership" | "blast-radius";
1649
+ subject: {
1650
+ path?: string[] | undefined;
1651
+ nodeId?: string | undefined;
1652
+ edgeId?: string | undefined;
1653
+ };
1654
+ observedAt: string;
1655
+ }>;
1656
+ type PolicyViolation = z.infer<typeof PolicyViolationSchema>;
1657
+
1658
+ declare const RegistryStatusSchema: z.ZodEnum<["active", "paused", "broken"]>;
1659
+ type RegistryStatus = z.infer<typeof RegistryStatusSchema>;
1660
+ declare const RegistryEntrySchema: z.ZodObject<{
1661
+ name: z.ZodString;
1662
+ path: z.ZodString;
1663
+ registeredAt: z.ZodString;
1664
+ lastSeenAt: z.ZodOptional<z.ZodString>;
1665
+ languages: z.ZodArray<z.ZodString, "many">;
1666
+ status: z.ZodEnum<["active", "paused", "broken"]>;
1667
+ }, "strip", z.ZodTypeAny, {
1668
+ name: string;
1669
+ path: string;
1670
+ status: "active" | "paused" | "broken";
1671
+ registeredAt: string;
1672
+ languages: string[];
1673
+ lastSeenAt?: string | undefined;
1674
+ }, {
1675
+ name: string;
1676
+ path: string;
1677
+ status: "active" | "paused" | "broken";
1678
+ registeredAt: string;
1679
+ languages: string[];
1680
+ lastSeenAt?: string | undefined;
1681
+ }>;
1682
+ type RegistryEntry = z.infer<typeof RegistryEntrySchema>;
1683
+ declare const RegistryFileSchema: z.ZodObject<{
1684
+ version: z.ZodLiteral<1>;
1685
+ projects: z.ZodArray<z.ZodObject<{
1686
+ name: z.ZodString;
1687
+ path: z.ZodString;
1688
+ registeredAt: z.ZodString;
1689
+ lastSeenAt: z.ZodOptional<z.ZodString>;
1690
+ languages: z.ZodArray<z.ZodString, "many">;
1691
+ status: z.ZodEnum<["active", "paused", "broken"]>;
1692
+ }, "strip", z.ZodTypeAny, {
1693
+ name: string;
1694
+ path: string;
1695
+ status: "active" | "paused" | "broken";
1696
+ registeredAt: string;
1697
+ languages: string[];
1698
+ lastSeenAt?: string | undefined;
1699
+ }, {
1700
+ name: string;
1701
+ path: string;
1702
+ status: "active" | "paused" | "broken";
1703
+ registeredAt: string;
1704
+ languages: string[];
1705
+ lastSeenAt?: string | undefined;
1706
+ }>, "many">;
1707
+ }, "strip", z.ZodTypeAny, {
1708
+ version: 1;
1709
+ projects: {
1710
+ name: string;
1711
+ path: string;
1712
+ status: "active" | "paused" | "broken";
1713
+ registeredAt: string;
1714
+ languages: string[];
1715
+ lastSeenAt?: string | undefined;
1716
+ }[];
1717
+ }, {
1718
+ version: 1;
1719
+ projects: {
1720
+ name: string;
1721
+ path: string;
1722
+ status: "active" | "paused" | "broken";
1723
+ registeredAt: string;
1724
+ languages: string[];
1725
+ lastSeenAt?: string | undefined;
1726
+ }[];
1727
+ }>;
1728
+ type RegistryFile = z.infer<typeof RegistryFileSchema>;
1729
+ declare const EMPTY_REGISTRY: RegistryFile;
1730
+
1731
+ export { type BlastRadiusAffectedNode, BlastRadiusAffectedNodeSchema, type BlastRadiusResult, BlastRadiusResultSchema, type BlastRadiusRule, BlastRadiusRuleSchema, type CheckPoliciesScope, CheckPoliciesScopeSchema, type CompatibilityRule, CompatibilityRuleSchema, type CompatibleDriver, CompatibleDriverSchema, type ConfigNode, ConfigNodeSchema, type DatabaseNode, DatabaseNodeSchema, type DiscoveredVia, DiscoveredViaSchema, EMPTY_REGISTRY, type EdgeEvidence, EdgeEvidenceSchema, type EdgeSignal, EdgeSignalSchema, EdgeType, EdgeTypeSchema, type EdgeTypeValue, type ErrorEvent, ErrorEventSchema, type FrontierNode, FrontierNodeSchema, type GraphEdge, GraphEdgeSchema, type GraphNode, GraphNodeSchema, type HypotheticalAction, HypotheticalActionSchema, type InfraNode, InfraNodeSchema, NodeType, NodeTypeSchema, type NodeTypeValue, type OwnershipRule, OwnershipRuleSchema, PROV_RANK, type PoliciesCheckBody, PoliciesCheckBodySchema, type Policy, type PolicyAction, PolicyActionSchema, type PolicyFile, PolicyFileSchema, type PolicyRule, PolicyRuleSchema, PolicySchema, type PolicySeverity, PolicySeveritySchema, type PolicyViolation, PolicyViolationSchema, Provenance, type ProvenanceRule, ProvenanceRuleSchema, ProvenanceSchema, type ProvenanceValue, type RegistryEntry, RegistryEntrySchema, type RegistryFile, RegistryFileSchema, type RegistryStatus, RegistryStatusSchema, type RootCauseResult, RootCauseResultSchema, type ServiceNode, ServiceNodeSchema, type StructuralRule, StructuralRuleSchema, type TransitiveDependenciesResult, TransitiveDependenciesResultSchema, type TransitiveDependency, TransitiveDependencySchema, configId, databaseId, extractedEdgeId, frontierEdgeId, frontierId, inferredEdgeId, infraId, observedEdgeId, parseConfigId, parseDatabaseId, parseEdgeId, parseFrontierId, parseInfraId, parseServiceId, serviceId };