@scoutflo/topology-contracts 0.10.7-hyperdx.2 → 0.11.0-flat.2
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/src/investigation/context.d.ts +1339 -0
- package/dist/src/investigation/context.js +10 -1
- package/dist/src/investigation/context.js.map +1 -1
- package/dist/src/investigation/flat.d.ts +3127 -0
- package/dist/src/investigation/flat.js +371 -0
- package/dist/src/investigation/flat.js.map +1 -0
- package/dist/src/investigation/index.d.ts +2 -1
- package/dist/src/investigation/index.js +1 -0
- package/dist/src/investigation/index.js.map +1 -1
- package/dist/test/flat.test.d.ts +120 -0
- package/dist/test/flat.test.js +202 -0
- package/dist/test/flat.test.js.map +1 -0
- package/dist/test/investigation-context.test.js +12 -0
- package/dist/test/investigation-context.test.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.flatTopologyResponseSchema = exports.flatEvidenceRouteSchema = exports.flatRouteTargetSchema = exports.flatAccessRefSchema = exports.flatRelationshipSchema = exports.flatEntitySchema = exports.flatSafeAttributesSchema = exports.flatEntityKey = exports.flatEntityRefSchema = exports.FLAT_TOPOLOGY_LIMITS = void 0;
|
|
4
|
+
exports.flatJsonMetrics = flatJsonMetrics;
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
exports.FLAT_TOPOLOGY_LIMITS = Object.freeze({
|
|
7
|
+
dependency_hops: 3,
|
|
8
|
+
dependency_entities: 50,
|
|
9
|
+
dependency_edges: 75,
|
|
10
|
+
fanout: 25,
|
|
11
|
+
callers: 10,
|
|
12
|
+
attachment_steps: 4,
|
|
13
|
+
attachment_entities: 40,
|
|
14
|
+
attachment_edges: 65,
|
|
15
|
+
entities: 100,
|
|
16
|
+
relationships: 150,
|
|
17
|
+
route_subjects: 60,
|
|
18
|
+
route_targets: 4,
|
|
19
|
+
queries: 40,
|
|
20
|
+
timeout_ms: 5000,
|
|
21
|
+
metadata_depth: 6,
|
|
22
|
+
metadata_entries: 50,
|
|
23
|
+
metadata_bytes: 8192,
|
|
24
|
+
response_bytes: 1048576,
|
|
25
|
+
containers: 4000,
|
|
26
|
+
});
|
|
27
|
+
const text = zod_1.z.string().trim().min(1).max(1024);
|
|
28
|
+
exports.flatEntityRefSchema = zod_1.z
|
|
29
|
+
.object({ entity_type: zod_1.z.enum(["service", "resource"]), id: text })
|
|
30
|
+
.strict();
|
|
31
|
+
const flatEntityKey = (ref) => JSON.stringify([ref.entity_type, ref.id]);
|
|
32
|
+
exports.flatEntityKey = flatEntityKey;
|
|
33
|
+
// Iterative preflight prevents cyclic/oversized inputs from reaching Zod's recursive traversal.
|
|
34
|
+
function flatJsonMetrics(value) {
|
|
35
|
+
const stack = [
|
|
36
|
+
{ value, depth: 0 },
|
|
37
|
+
], seen = new WeakSet();
|
|
38
|
+
let containers = 0, depth = 0, stringBytes = 0;
|
|
39
|
+
while (stack.length) {
|
|
40
|
+
const item = stack.pop();
|
|
41
|
+
if (item.exit) {
|
|
42
|
+
seen.delete(item.value);
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
depth = Math.max(depth, item.depth);
|
|
46
|
+
if (depth > 32)
|
|
47
|
+
throw new Error("json_depth");
|
|
48
|
+
if (typeof item.value === "string")
|
|
49
|
+
stringBytes += Buffer.byteLength(item.value);
|
|
50
|
+
if (stringBytes > 1048576)
|
|
51
|
+
throw new Error("json_bytes");
|
|
52
|
+
if (item.value !== null && typeof item.value === "object") {
|
|
53
|
+
if (seen.has(item.value))
|
|
54
|
+
throw new Error("repeated_object");
|
|
55
|
+
seen.add(item.value);
|
|
56
|
+
stack.push({ ...item, exit: true });
|
|
57
|
+
containers++;
|
|
58
|
+
if (containers > 4000)
|
|
59
|
+
throw new Error("json_containers");
|
|
60
|
+
const entries = Object.entries(item.value);
|
|
61
|
+
if (entries.length > 4000)
|
|
62
|
+
throw new Error("json_entries");
|
|
63
|
+
for (const [key, child] of entries) {
|
|
64
|
+
stringBytes += Buffer.byteLength(key);
|
|
65
|
+
stack.push({ value: child, depth: item.depth + 1 });
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
else if (item.value !== null &&
|
|
69
|
+
!["string", "boolean", "number"].includes(typeof item.value))
|
|
70
|
+
throw new Error("non_json");
|
|
71
|
+
else if (typeof item.value === "number" && !Number.isFinite(item.value))
|
|
72
|
+
throw new Error("non_json");
|
|
73
|
+
}
|
|
74
|
+
return { bytes: Buffer.byteLength(JSON.stringify(value)), containers, depth };
|
|
75
|
+
}
|
|
76
|
+
const unsafeKey = /password|secret|token|credential|authorization|private.?key|kubeconfig|^__proto__$|^constructor$|^prototype$/i;
|
|
77
|
+
exports.flatSafeAttributesSchema = zod_1.z
|
|
78
|
+
.record(zod_1.z.unknown())
|
|
79
|
+
.superRefine((value, ctx) => {
|
|
80
|
+
const fail = () => ctx.addIssue({
|
|
81
|
+
code: "custom",
|
|
82
|
+
message: "unsafe or oversized attributes",
|
|
83
|
+
});
|
|
84
|
+
try {
|
|
85
|
+
const m = flatJsonMetrics(value);
|
|
86
|
+
if (m.depth > 6 || m.bytes > 8192)
|
|
87
|
+
fail();
|
|
88
|
+
const queue = [value];
|
|
89
|
+
while (queue.length) {
|
|
90
|
+
const item = queue.pop();
|
|
91
|
+
if (item && typeof item === "object") {
|
|
92
|
+
if (Object.keys(item).length > 50)
|
|
93
|
+
fail();
|
|
94
|
+
for (const [key, child] of Object.entries(item)) {
|
|
95
|
+
if (unsafeKey.test(key))
|
|
96
|
+
fail();
|
|
97
|
+
queue.push(child);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
catch {
|
|
103
|
+
fail();
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
const reason = zod_1.z.enum([
|
|
107
|
+
"hop_limit",
|
|
108
|
+
"entity_limit",
|
|
109
|
+
"edge_limit",
|
|
110
|
+
"fanout_limit",
|
|
111
|
+
"attachment_limit",
|
|
112
|
+
"target_limit",
|
|
113
|
+
"payload_limit",
|
|
114
|
+
"metadata_limit",
|
|
115
|
+
"query_limit",
|
|
116
|
+
"timeout",
|
|
117
|
+
"source_incomplete",
|
|
118
|
+
"selector_conflict",
|
|
119
|
+
"selector_missing",
|
|
120
|
+
"unsupported_provider",
|
|
121
|
+
"invalid_access_ref",
|
|
122
|
+
"ambiguous_access",
|
|
123
|
+
"snapshot_expired",
|
|
124
|
+
"not_requested",
|
|
125
|
+
]);
|
|
126
|
+
const reasons = zod_1.z.array(reason).max(20);
|
|
127
|
+
exports.flatEntitySchema = zod_1.z
|
|
128
|
+
.object({
|
|
129
|
+
ref: exports.flatEntityRefSchema,
|
|
130
|
+
name: text,
|
|
131
|
+
resource_type: text.optional(),
|
|
132
|
+
provider: text.optional(),
|
|
133
|
+
detail: zod_1.z.enum(["full", "reference"]),
|
|
134
|
+
attributes: exports.flatSafeAttributesSchema,
|
|
135
|
+
metadata_truncated: zod_1.z.boolean(),
|
|
136
|
+
})
|
|
137
|
+
.strict();
|
|
138
|
+
exports.flatRelationshipSchema = zod_1.z
|
|
139
|
+
.object({
|
|
140
|
+
id: text,
|
|
141
|
+
from: exports.flatEntityRefSchema,
|
|
142
|
+
to: exports.flatEntityRefSchema,
|
|
143
|
+
relation: text,
|
|
144
|
+
relation_class: zod_1.z.enum(["structural", "associative"]),
|
|
145
|
+
diagnostic_criticality: zod_1.z
|
|
146
|
+
.enum(["blocking", "degrading", "optional"])
|
|
147
|
+
.optional(),
|
|
148
|
+
attribute_schema_key: text.optional(),
|
|
149
|
+
attributes: exports.flatSafeAttributesSchema,
|
|
150
|
+
metadata_truncated: zod_1.z.boolean(),
|
|
151
|
+
})
|
|
152
|
+
.strict();
|
|
153
|
+
exports.flatAccessRefSchema = zod_1.z
|
|
154
|
+
.object({ provider: text, external_id: text, source_collection: text })
|
|
155
|
+
.strict();
|
|
156
|
+
exports.flatRouteTargetSchema = zod_1.z
|
|
157
|
+
.object({
|
|
158
|
+
target: exports.flatEntityRefSchema,
|
|
159
|
+
access_ref: exports.flatAccessRefSchema,
|
|
160
|
+
via_relationship_ids: zod_1.z.array(text).max(4),
|
|
161
|
+
mapping_source: zod_1.z.enum(["relationship_path", "root_ref", "access_ref"]),
|
|
162
|
+
query_context: exports.flatSafeAttributesSchema,
|
|
163
|
+
query_context_status: zod_1.z.enum(["complete", "incomplete", "not_required"]),
|
|
164
|
+
reasons,
|
|
165
|
+
})
|
|
166
|
+
.strict()
|
|
167
|
+
.superRefine((target, ctx) => {
|
|
168
|
+
if (target.query_context_status === "complete" && target.reasons.length)
|
|
169
|
+
ctx.addIssue({
|
|
170
|
+
code: "custom",
|
|
171
|
+
message: "complete context cannot carry rejection reasons",
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
const lookup = zod_1.z
|
|
175
|
+
.object({
|
|
176
|
+
status: zod_1.z.enum([
|
|
177
|
+
"mapped",
|
|
178
|
+
"unmapped",
|
|
179
|
+
"ambiguous",
|
|
180
|
+
"lookup_incomplete",
|
|
181
|
+
"not_applicable",
|
|
182
|
+
]),
|
|
183
|
+
targets: zod_1.z.array(exports.flatRouteTargetSchema).max(4),
|
|
184
|
+
reasons,
|
|
185
|
+
})
|
|
186
|
+
.strict()
|
|
187
|
+
.superRefine((lane, ctx) => {
|
|
188
|
+
if ((lane.status === "mapped" && !lane.targets.length) ||
|
|
189
|
+
(["unmapped", "ambiguous", "not_applicable"].includes(lane.status) &&
|
|
190
|
+
lane.targets.length))
|
|
191
|
+
ctx.addIssue({
|
|
192
|
+
code: "custom",
|
|
193
|
+
message: "lookup status disagrees with targets",
|
|
194
|
+
});
|
|
195
|
+
if (lane.status === "lookup_incomplete" && !lane.reasons.length)
|
|
196
|
+
ctx.addIssue({
|
|
197
|
+
code: "custom",
|
|
198
|
+
message: "incomplete lookup requires a reason",
|
|
199
|
+
});
|
|
200
|
+
});
|
|
201
|
+
exports.flatEvidenceRouteSchema = zod_1.z
|
|
202
|
+
.object({
|
|
203
|
+
subject: exports.flatEntityRefSchema,
|
|
204
|
+
monitoring: lookup,
|
|
205
|
+
runtime: lookup,
|
|
206
|
+
deployment: lookup,
|
|
207
|
+
})
|
|
208
|
+
.strict();
|
|
209
|
+
const coverage = zod_1.z
|
|
210
|
+
.object({
|
|
211
|
+
complete: zod_1.z.boolean(),
|
|
212
|
+
reasons,
|
|
213
|
+
frontier: zod_1.z
|
|
214
|
+
.array(zod_1.z
|
|
215
|
+
.object({
|
|
216
|
+
at: exports.flatEntityRefSchema,
|
|
217
|
+
lane: zod_1.z.enum([
|
|
218
|
+
"dependency",
|
|
219
|
+
"caller",
|
|
220
|
+
"monitoring",
|
|
221
|
+
"runtime",
|
|
222
|
+
"deployment",
|
|
223
|
+
]),
|
|
224
|
+
reason,
|
|
225
|
+
continuation: zod_1.z.string().min(1).max(4096).optional(),
|
|
226
|
+
continuation_anchor: exports.flatEntityRefSchema.optional(),
|
|
227
|
+
})
|
|
228
|
+
.strict())
|
|
229
|
+
.max(100),
|
|
230
|
+
})
|
|
231
|
+
.strict()
|
|
232
|
+
.superRefine((value, ctx) => {
|
|
233
|
+
if (value.complete && (value.reasons.length || value.frontier.length))
|
|
234
|
+
ctx.addIssue({
|
|
235
|
+
code: "custom",
|
|
236
|
+
message: "complete coverage contains omissions",
|
|
237
|
+
});
|
|
238
|
+
if (!value.complete && !value.reasons.length)
|
|
239
|
+
ctx.addIssue({
|
|
240
|
+
code: "custom",
|
|
241
|
+
message: "incomplete coverage requires a reason",
|
|
242
|
+
});
|
|
243
|
+
});
|
|
244
|
+
const appliedLimits = zod_1.z
|
|
245
|
+
.object(Object.fromEntries(Object.entries(exports.FLAT_TOPOLOGY_LIMITS).map(([key, max]) => [
|
|
246
|
+
key,
|
|
247
|
+
zod_1.z
|
|
248
|
+
.number()
|
|
249
|
+
.int()
|
|
250
|
+
.nonnegative()
|
|
251
|
+
.max(key === "dependency_hops" ? 8 : max),
|
|
252
|
+
])))
|
|
253
|
+
.strict();
|
|
254
|
+
const base = zod_1.z
|
|
255
|
+
.object({
|
|
256
|
+
schema_version: zod_1.z.literal("topology.flat.v1"),
|
|
257
|
+
profile: zod_1.z.literal("troubleshoot.v1"),
|
|
258
|
+
topology_version_id: text,
|
|
259
|
+
scope: zod_1.z.object({ account_id: text, workspace_id: text }).strict(),
|
|
260
|
+
snapshot: zod_1.z.string().min(1).max(4096).optional(),
|
|
261
|
+
read_window: zod_1.z
|
|
262
|
+
.object({
|
|
263
|
+
started_at: zod_1.z.string().datetime(),
|
|
264
|
+
completed_at: zod_1.z.string().datetime(),
|
|
265
|
+
})
|
|
266
|
+
.strict(),
|
|
267
|
+
observation_coverage: zod_1.z.enum(["complete", "partial", "unknown"]),
|
|
268
|
+
anchor: exports.flatEntityRefSchema,
|
|
269
|
+
entities: zod_1.z.array(exports.flatEntitySchema).max(100),
|
|
270
|
+
relationships: zod_1.z.array(exports.flatRelationshipSchema).max(150),
|
|
271
|
+
evidence_routes: zod_1.z.array(exports.flatEvidenceRouteSchema).max(60),
|
|
272
|
+
coverage: zod_1.z
|
|
273
|
+
.object({
|
|
274
|
+
dependencies: coverage,
|
|
275
|
+
callers: coverage,
|
|
276
|
+
attachments: coverage,
|
|
277
|
+
})
|
|
278
|
+
.strict(),
|
|
279
|
+
applied_limits: appliedLimits,
|
|
280
|
+
})
|
|
281
|
+
.strict()
|
|
282
|
+
.superRefine((slice, ctx) => {
|
|
283
|
+
const issue = (message) => ctx.addIssue({ code: "custom", message });
|
|
284
|
+
const entities = new Set(slice.entities.map((e) => (0, exports.flatEntityKey)(e.ref))), edges = new Map(slice.relationships.map((e) => [e.id, e]));
|
|
285
|
+
if (entities.size !== slice.entities.length ||
|
|
286
|
+
edges.size !== slice.relationships.length ||
|
|
287
|
+
new Set(slice.evidence_routes.map((r) => (0, exports.flatEntityKey)(r.subject)))
|
|
288
|
+
.size !== slice.evidence_routes.length)
|
|
289
|
+
issue("duplicate identity");
|
|
290
|
+
const check = (ref) => {
|
|
291
|
+
if (!entities.has((0, exports.flatEntityKey)(ref)))
|
|
292
|
+
issue("unresolved entity");
|
|
293
|
+
};
|
|
294
|
+
check(slice.anchor);
|
|
295
|
+
for (const e of slice.relationships) {
|
|
296
|
+
check(e.from);
|
|
297
|
+
check(e.to);
|
|
298
|
+
}
|
|
299
|
+
for (const r of slice.evidence_routes) {
|
|
300
|
+
check(r.subject);
|
|
301
|
+
for (const lane of ["monitoring", "runtime", "deployment"]) {
|
|
302
|
+
const identities = new Set();
|
|
303
|
+
for (const t of r[lane].targets) {
|
|
304
|
+
check(t.target);
|
|
305
|
+
const identity = JSON.stringify([
|
|
306
|
+
t.access_ref.provider,
|
|
307
|
+
t.access_ref.source_collection,
|
|
308
|
+
t.access_ref.external_id,
|
|
309
|
+
]);
|
|
310
|
+
if (identities.has(identity))
|
|
311
|
+
issue("duplicate route identity");
|
|
312
|
+
identities.add(identity);
|
|
313
|
+
let at = r.subject;
|
|
314
|
+
for (const id of t.via_relationship_ids) {
|
|
315
|
+
const edge = edges.get(id);
|
|
316
|
+
if (!edge) {
|
|
317
|
+
issue("unresolved path edge");
|
|
318
|
+
continue;
|
|
319
|
+
}
|
|
320
|
+
if ((0, exports.flatEntityKey)(edge.from) === (0, exports.flatEntityKey)(at))
|
|
321
|
+
at = edge.to;
|
|
322
|
+
else if (lane === "deployment" &&
|
|
323
|
+
edge.relation === "DEPLOYS" &&
|
|
324
|
+
(0, exports.flatEntityKey)(edge.to) === (0, exports.flatEntityKey)(at))
|
|
325
|
+
at = edge.from;
|
|
326
|
+
else
|
|
327
|
+
issue("disconnected path");
|
|
328
|
+
}
|
|
329
|
+
if (t.mapping_source === "relationship_path" &&
|
|
330
|
+
(0, exports.flatEntityKey)(at) !== (0, exports.flatEntityKey)(t.target))
|
|
331
|
+
issue("path does not reach target");
|
|
332
|
+
if (t.mapping_source !== "relationship_path" &&
|
|
333
|
+
t.via_relationship_ids.length)
|
|
334
|
+
issue("unexpected path for direct mapping");
|
|
335
|
+
}
|
|
336
|
+
if (r[lane].targets.length > slice.applied_limits.route_targets)
|
|
337
|
+
issue("target limit exceeded");
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
for (const c of Object.values(slice.coverage))
|
|
341
|
+
for (const f of c.frontier) {
|
|
342
|
+
check(f.at);
|
|
343
|
+
if (f.continuation_anchor)
|
|
344
|
+
check(f.continuation_anchor);
|
|
345
|
+
if (Boolean(f.continuation) !== Boolean(f.continuation_anchor))
|
|
346
|
+
issue("continuation anchor required");
|
|
347
|
+
}
|
|
348
|
+
const m = flatJsonMetrics(slice);
|
|
349
|
+
if (m.bytes > slice.applied_limits.response_bytes ||
|
|
350
|
+
m.containers > slice.applied_limits.containers ||
|
|
351
|
+
slice.entities.length > slice.applied_limits.entities ||
|
|
352
|
+
slice.relationships.length > slice.applied_limits.relationships ||
|
|
353
|
+
slice.evidence_routes.length > slice.applied_limits.route_subjects)
|
|
354
|
+
issue("slice budget exceeded");
|
|
355
|
+
});
|
|
356
|
+
exports.flatTopologyResponseSchema = zod_1.z.preprocess((value, ctx) => {
|
|
357
|
+
try {
|
|
358
|
+
const m = flatJsonMetrics(value);
|
|
359
|
+
if (m.bytes > 1048576)
|
|
360
|
+
throw new Error("json_bytes");
|
|
361
|
+
}
|
|
362
|
+
catch {
|
|
363
|
+
ctx.addIssue({
|
|
364
|
+
code: "custom",
|
|
365
|
+
message: "flat response preflight rejected",
|
|
366
|
+
});
|
|
367
|
+
return zod_1.z.NEVER;
|
|
368
|
+
}
|
|
369
|
+
return value;
|
|
370
|
+
}, base);
|
|
371
|
+
//# sourceMappingURL=flat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flat.js","sourceRoot":"","sources":["../../../src/investigation/flat.ts"],"names":[],"mappings":";;;AAgCA,0CA4CC;AA5ED,6BAAwB;AAEX,QAAA,oBAAoB,GAAG,MAAM,CAAC,MAAM,CAAC;IAChD,eAAe,EAAE,CAA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Star = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./context"), exports);
|
|
18
|
+
__exportStar(require("./flat"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/investigation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/investigation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,yCAAuB"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
export declare function flatFixture(): {
|
|
2
|
+
schema_version: string;
|
|
3
|
+
profile: string;
|
|
4
|
+
topology_version_id: string;
|
|
5
|
+
scope: {
|
|
6
|
+
account_id: string;
|
|
7
|
+
workspace_id: string;
|
|
8
|
+
};
|
|
9
|
+
read_window: {
|
|
10
|
+
started_at: string;
|
|
11
|
+
completed_at: string;
|
|
12
|
+
};
|
|
13
|
+
observation_coverage: string;
|
|
14
|
+
anchor: {
|
|
15
|
+
entity_type: string;
|
|
16
|
+
id: string;
|
|
17
|
+
};
|
|
18
|
+
entities: {
|
|
19
|
+
ref: {
|
|
20
|
+
entity_type: string;
|
|
21
|
+
id: string;
|
|
22
|
+
};
|
|
23
|
+
name: string;
|
|
24
|
+
detail: string;
|
|
25
|
+
attributes: {};
|
|
26
|
+
metadata_truncated: boolean;
|
|
27
|
+
}[];
|
|
28
|
+
relationships: {
|
|
29
|
+
id: string;
|
|
30
|
+
from: {
|
|
31
|
+
entity_type: string;
|
|
32
|
+
id: string;
|
|
33
|
+
};
|
|
34
|
+
to: {
|
|
35
|
+
entity_type: string;
|
|
36
|
+
id: string;
|
|
37
|
+
};
|
|
38
|
+
relation: string;
|
|
39
|
+
relation_class: string;
|
|
40
|
+
attributes: {};
|
|
41
|
+
metadata_truncated: boolean;
|
|
42
|
+
}[];
|
|
43
|
+
evidence_routes: {
|
|
44
|
+
subject: {
|
|
45
|
+
entity_type: string;
|
|
46
|
+
id: string;
|
|
47
|
+
};
|
|
48
|
+
monitoring: {
|
|
49
|
+
status: string;
|
|
50
|
+
reasons: never[];
|
|
51
|
+
targets: {
|
|
52
|
+
target: {
|
|
53
|
+
entity_type: string;
|
|
54
|
+
id: string;
|
|
55
|
+
};
|
|
56
|
+
access_ref: {
|
|
57
|
+
provider: string;
|
|
58
|
+
external_id: string;
|
|
59
|
+
source_collection: string;
|
|
60
|
+
};
|
|
61
|
+
via_relationship_ids: string[];
|
|
62
|
+
mapping_source: string;
|
|
63
|
+
query_context: {
|
|
64
|
+
namespace: string;
|
|
65
|
+
serviceLabel: string;
|
|
66
|
+
};
|
|
67
|
+
query_context_status: string;
|
|
68
|
+
reasons: never[];
|
|
69
|
+
}[];
|
|
70
|
+
};
|
|
71
|
+
runtime: {
|
|
72
|
+
status: string;
|
|
73
|
+
targets: never[];
|
|
74
|
+
reasons: never[];
|
|
75
|
+
};
|
|
76
|
+
deployment: {
|
|
77
|
+
status: string;
|
|
78
|
+
targets: never[];
|
|
79
|
+
reasons: never[];
|
|
80
|
+
};
|
|
81
|
+
}[];
|
|
82
|
+
coverage: {
|
|
83
|
+
dependencies: {
|
|
84
|
+
complete: boolean;
|
|
85
|
+
reasons: never[];
|
|
86
|
+
frontier: never[];
|
|
87
|
+
};
|
|
88
|
+
callers: {
|
|
89
|
+
complete: boolean;
|
|
90
|
+
reasons: never[];
|
|
91
|
+
frontier: never[];
|
|
92
|
+
};
|
|
93
|
+
attachments: {
|
|
94
|
+
complete: boolean;
|
|
95
|
+
reasons: never[];
|
|
96
|
+
frontier: never[];
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
applied_limits: {
|
|
100
|
+
dependency_hops: number;
|
|
101
|
+
dependency_entities: number;
|
|
102
|
+
dependency_edges: number;
|
|
103
|
+
fanout: number;
|
|
104
|
+
callers: number;
|
|
105
|
+
attachment_steps: number;
|
|
106
|
+
attachment_entities: number;
|
|
107
|
+
attachment_edges: number;
|
|
108
|
+
entities: number;
|
|
109
|
+
relationships: number;
|
|
110
|
+
route_subjects: number;
|
|
111
|
+
route_targets: number;
|
|
112
|
+
queries: number;
|
|
113
|
+
timeout_ms: number;
|
|
114
|
+
metadata_depth: number;
|
|
115
|
+
metadata_entries: number;
|
|
116
|
+
metadata_bytes: number;
|
|
117
|
+
response_bytes: number;
|
|
118
|
+
containers: number;
|
|
119
|
+
};
|
|
120
|
+
};
|