@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.
@@ -0,0 +1,3127 @@
1
+ import { z } from "zod";
2
+ export declare const FLAT_TOPOLOGY_LIMITS: Readonly<{
3
+ dependency_hops: 3;
4
+ dependency_entities: 50;
5
+ dependency_edges: 75;
6
+ fanout: 25;
7
+ callers: 10;
8
+ attachment_steps: 4;
9
+ attachment_entities: 40;
10
+ attachment_edges: 65;
11
+ entities: 100;
12
+ relationships: 150;
13
+ route_subjects: 60;
14
+ route_targets: 4;
15
+ queries: 40;
16
+ timeout_ms: 5000;
17
+ metadata_depth: 6;
18
+ metadata_entries: 50;
19
+ metadata_bytes: 8192;
20
+ response_bytes: 1048576;
21
+ containers: 4000;
22
+ }>;
23
+ export declare const flatEntityRefSchema: z.ZodObject<{
24
+ entity_type: z.ZodEnum<["service", "resource"]>;
25
+ id: z.ZodString;
26
+ }, "strict", z.ZodTypeAny, {
27
+ id: string;
28
+ entity_type: "service" | "resource";
29
+ }, {
30
+ id: string;
31
+ entity_type: "service" | "resource";
32
+ }>;
33
+ export type FlatEntityRef = z.infer<typeof flatEntityRefSchema>;
34
+ export declare const flatEntityKey: (ref: FlatEntityRef) => string;
35
+ export declare function flatJsonMetrics(value: unknown): {
36
+ bytes: number;
37
+ containers: number;
38
+ depth: number;
39
+ };
40
+ export declare const flatSafeAttributesSchema: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
41
+ declare const reason: z.ZodEnum<["hop_limit", "entity_limit", "edge_limit", "fanout_limit", "attachment_limit", "target_limit", "payload_limit", "metadata_limit", "query_limit", "timeout", "source_incomplete", "selector_conflict", "selector_missing", "unsupported_provider", "invalid_access_ref", "ambiguous_access", "snapshot_expired", "not_requested"]>;
42
+ export declare const flatEntitySchema: z.ZodObject<{
43
+ ref: z.ZodObject<{
44
+ entity_type: z.ZodEnum<["service", "resource"]>;
45
+ id: z.ZodString;
46
+ }, "strict", z.ZodTypeAny, {
47
+ id: string;
48
+ entity_type: "service" | "resource";
49
+ }, {
50
+ id: string;
51
+ entity_type: "service" | "resource";
52
+ }>;
53
+ name: z.ZodString;
54
+ resource_type: z.ZodOptional<z.ZodString>;
55
+ provider: z.ZodOptional<z.ZodString>;
56
+ detail: z.ZodEnum<["full", "reference"]>;
57
+ attributes: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
58
+ metadata_truncated: z.ZodBoolean;
59
+ }, "strict", z.ZodTypeAny, {
60
+ attributes: Record<string, unknown>;
61
+ name: string;
62
+ ref: {
63
+ id: string;
64
+ entity_type: "service" | "resource";
65
+ };
66
+ detail: "full" | "reference";
67
+ metadata_truncated: boolean;
68
+ provider?: string | undefined;
69
+ resource_type?: string | undefined;
70
+ }, {
71
+ attributes: Record<string, unknown>;
72
+ name: string;
73
+ ref: {
74
+ id: string;
75
+ entity_type: "service" | "resource";
76
+ };
77
+ detail: "full" | "reference";
78
+ metadata_truncated: boolean;
79
+ provider?: string | undefined;
80
+ resource_type?: string | undefined;
81
+ }>;
82
+ export declare const flatRelationshipSchema: z.ZodObject<{
83
+ id: z.ZodString;
84
+ from: z.ZodObject<{
85
+ entity_type: z.ZodEnum<["service", "resource"]>;
86
+ id: z.ZodString;
87
+ }, "strict", z.ZodTypeAny, {
88
+ id: string;
89
+ entity_type: "service" | "resource";
90
+ }, {
91
+ id: string;
92
+ entity_type: "service" | "resource";
93
+ }>;
94
+ to: z.ZodObject<{
95
+ entity_type: z.ZodEnum<["service", "resource"]>;
96
+ id: z.ZodString;
97
+ }, "strict", z.ZodTypeAny, {
98
+ id: string;
99
+ entity_type: "service" | "resource";
100
+ }, {
101
+ id: string;
102
+ entity_type: "service" | "resource";
103
+ }>;
104
+ relation: z.ZodString;
105
+ relation_class: z.ZodEnum<["structural", "associative"]>;
106
+ diagnostic_criticality: z.ZodOptional<z.ZodEnum<["blocking", "degrading", "optional"]>>;
107
+ attribute_schema_key: z.ZodOptional<z.ZodString>;
108
+ attributes: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
109
+ metadata_truncated: z.ZodBoolean;
110
+ }, "strict", z.ZodTypeAny, {
111
+ id: string;
112
+ attributes: Record<string, unknown>;
113
+ relation: string;
114
+ relation_class: "structural" | "associative";
115
+ from: {
116
+ id: string;
117
+ entity_type: "service" | "resource";
118
+ };
119
+ to: {
120
+ id: string;
121
+ entity_type: "service" | "resource";
122
+ };
123
+ metadata_truncated: boolean;
124
+ attribute_schema_key?: string | undefined;
125
+ diagnostic_criticality?: "blocking" | "degrading" | "optional" | undefined;
126
+ }, {
127
+ id: string;
128
+ attributes: Record<string, unknown>;
129
+ relation: string;
130
+ relation_class: "structural" | "associative";
131
+ from: {
132
+ id: string;
133
+ entity_type: "service" | "resource";
134
+ };
135
+ to: {
136
+ id: string;
137
+ entity_type: "service" | "resource";
138
+ };
139
+ metadata_truncated: boolean;
140
+ attribute_schema_key?: string | undefined;
141
+ diagnostic_criticality?: "blocking" | "degrading" | "optional" | undefined;
142
+ }>;
143
+ export declare const flatAccessRefSchema: z.ZodObject<{
144
+ provider: z.ZodString;
145
+ external_id: z.ZodString;
146
+ source_collection: z.ZodString;
147
+ }, "strict", z.ZodTypeAny, {
148
+ provider: string;
149
+ external_id: string;
150
+ source_collection: string;
151
+ }, {
152
+ provider: string;
153
+ external_id: string;
154
+ source_collection: string;
155
+ }>;
156
+ export declare const flatRouteTargetSchema: z.ZodEffects<z.ZodObject<{
157
+ target: z.ZodObject<{
158
+ entity_type: z.ZodEnum<["service", "resource"]>;
159
+ id: z.ZodString;
160
+ }, "strict", z.ZodTypeAny, {
161
+ id: string;
162
+ entity_type: "service" | "resource";
163
+ }, {
164
+ id: string;
165
+ entity_type: "service" | "resource";
166
+ }>;
167
+ access_ref: z.ZodObject<{
168
+ provider: z.ZodString;
169
+ external_id: z.ZodString;
170
+ source_collection: z.ZodString;
171
+ }, "strict", z.ZodTypeAny, {
172
+ provider: string;
173
+ external_id: string;
174
+ source_collection: string;
175
+ }, {
176
+ provider: string;
177
+ external_id: string;
178
+ source_collection: string;
179
+ }>;
180
+ via_relationship_ids: z.ZodArray<z.ZodString, "many">;
181
+ mapping_source: z.ZodEnum<["relationship_path", "root_ref", "access_ref"]>;
182
+ query_context: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
183
+ query_context_status: z.ZodEnum<["complete", "incomplete", "not_required"]>;
184
+ reasons: z.ZodArray<z.ZodEnum<["hop_limit", "entity_limit", "edge_limit", "fanout_limit", "attachment_limit", "target_limit", "payload_limit", "metadata_limit", "query_limit", "timeout", "source_incomplete", "selector_conflict", "selector_missing", "unsupported_provider", "invalid_access_ref", "ambiguous_access", "snapshot_expired", "not_requested"]>, "many">;
185
+ }, "strict", z.ZodTypeAny, {
186
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
187
+ target: {
188
+ id: string;
189
+ entity_type: "service" | "resource";
190
+ };
191
+ access_ref: {
192
+ provider: string;
193
+ external_id: string;
194
+ source_collection: string;
195
+ };
196
+ via_relationship_ids: string[];
197
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
198
+ query_context: Record<string, unknown>;
199
+ query_context_status: "complete" | "incomplete" | "not_required";
200
+ }, {
201
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
202
+ target: {
203
+ id: string;
204
+ entity_type: "service" | "resource";
205
+ };
206
+ access_ref: {
207
+ provider: string;
208
+ external_id: string;
209
+ source_collection: string;
210
+ };
211
+ via_relationship_ids: string[];
212
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
213
+ query_context: Record<string, unknown>;
214
+ query_context_status: "complete" | "incomplete" | "not_required";
215
+ }>, {
216
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
217
+ target: {
218
+ id: string;
219
+ entity_type: "service" | "resource";
220
+ };
221
+ access_ref: {
222
+ provider: string;
223
+ external_id: string;
224
+ source_collection: string;
225
+ };
226
+ via_relationship_ids: string[];
227
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
228
+ query_context: Record<string, unknown>;
229
+ query_context_status: "complete" | "incomplete" | "not_required";
230
+ }, {
231
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
232
+ target: {
233
+ id: string;
234
+ entity_type: "service" | "resource";
235
+ };
236
+ access_ref: {
237
+ provider: string;
238
+ external_id: string;
239
+ source_collection: string;
240
+ };
241
+ via_relationship_ids: string[];
242
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
243
+ query_context: Record<string, unknown>;
244
+ query_context_status: "complete" | "incomplete" | "not_required";
245
+ }>;
246
+ export declare const flatEvidenceRouteSchema: z.ZodObject<{
247
+ subject: z.ZodObject<{
248
+ entity_type: z.ZodEnum<["service", "resource"]>;
249
+ id: z.ZodString;
250
+ }, "strict", z.ZodTypeAny, {
251
+ id: string;
252
+ entity_type: "service" | "resource";
253
+ }, {
254
+ id: string;
255
+ entity_type: "service" | "resource";
256
+ }>;
257
+ monitoring: z.ZodEffects<z.ZodObject<{
258
+ status: z.ZodEnum<["mapped", "unmapped", "ambiguous", "lookup_incomplete", "not_applicable"]>;
259
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
260
+ target: z.ZodObject<{
261
+ entity_type: z.ZodEnum<["service", "resource"]>;
262
+ id: z.ZodString;
263
+ }, "strict", z.ZodTypeAny, {
264
+ id: string;
265
+ entity_type: "service" | "resource";
266
+ }, {
267
+ id: string;
268
+ entity_type: "service" | "resource";
269
+ }>;
270
+ access_ref: z.ZodObject<{
271
+ provider: z.ZodString;
272
+ external_id: z.ZodString;
273
+ source_collection: z.ZodString;
274
+ }, "strict", z.ZodTypeAny, {
275
+ provider: string;
276
+ external_id: string;
277
+ source_collection: string;
278
+ }, {
279
+ provider: string;
280
+ external_id: string;
281
+ source_collection: string;
282
+ }>;
283
+ via_relationship_ids: z.ZodArray<z.ZodString, "many">;
284
+ mapping_source: z.ZodEnum<["relationship_path", "root_ref", "access_ref"]>;
285
+ query_context: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
286
+ query_context_status: z.ZodEnum<["complete", "incomplete", "not_required"]>;
287
+ reasons: z.ZodArray<z.ZodEnum<["hop_limit", "entity_limit", "edge_limit", "fanout_limit", "attachment_limit", "target_limit", "payload_limit", "metadata_limit", "query_limit", "timeout", "source_incomplete", "selector_conflict", "selector_missing", "unsupported_provider", "invalid_access_ref", "ambiguous_access", "snapshot_expired", "not_requested"]>, "many">;
288
+ }, "strict", z.ZodTypeAny, {
289
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
290
+ target: {
291
+ id: string;
292
+ entity_type: "service" | "resource";
293
+ };
294
+ access_ref: {
295
+ provider: string;
296
+ external_id: string;
297
+ source_collection: string;
298
+ };
299
+ via_relationship_ids: string[];
300
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
301
+ query_context: Record<string, unknown>;
302
+ query_context_status: "complete" | "incomplete" | "not_required";
303
+ }, {
304
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
305
+ target: {
306
+ id: string;
307
+ entity_type: "service" | "resource";
308
+ };
309
+ access_ref: {
310
+ provider: string;
311
+ external_id: string;
312
+ source_collection: string;
313
+ };
314
+ via_relationship_ids: string[];
315
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
316
+ query_context: Record<string, unknown>;
317
+ query_context_status: "complete" | "incomplete" | "not_required";
318
+ }>, {
319
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
320
+ target: {
321
+ id: string;
322
+ entity_type: "service" | "resource";
323
+ };
324
+ access_ref: {
325
+ provider: string;
326
+ external_id: string;
327
+ source_collection: string;
328
+ };
329
+ via_relationship_ids: string[];
330
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
331
+ query_context: Record<string, unknown>;
332
+ query_context_status: "complete" | "incomplete" | "not_required";
333
+ }, {
334
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
335
+ target: {
336
+ id: string;
337
+ entity_type: "service" | "resource";
338
+ };
339
+ access_ref: {
340
+ provider: string;
341
+ external_id: string;
342
+ source_collection: string;
343
+ };
344
+ via_relationship_ids: string[];
345
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
346
+ query_context: Record<string, unknown>;
347
+ query_context_status: "complete" | "incomplete" | "not_required";
348
+ }>, "many">;
349
+ reasons: z.ZodArray<z.ZodEnum<["hop_limit", "entity_limit", "edge_limit", "fanout_limit", "attachment_limit", "target_limit", "payload_limit", "metadata_limit", "query_limit", "timeout", "source_incomplete", "selector_conflict", "selector_missing", "unsupported_provider", "invalid_access_ref", "ambiguous_access", "snapshot_expired", "not_requested"]>, "many">;
350
+ }, "strict", z.ZodTypeAny, {
351
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
352
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
353
+ targets: {
354
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
355
+ target: {
356
+ id: string;
357
+ entity_type: "service" | "resource";
358
+ };
359
+ access_ref: {
360
+ provider: string;
361
+ external_id: string;
362
+ source_collection: string;
363
+ };
364
+ via_relationship_ids: string[];
365
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
366
+ query_context: Record<string, unknown>;
367
+ query_context_status: "complete" | "incomplete" | "not_required";
368
+ }[];
369
+ }, {
370
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
371
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
372
+ targets: {
373
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
374
+ target: {
375
+ id: string;
376
+ entity_type: "service" | "resource";
377
+ };
378
+ access_ref: {
379
+ provider: string;
380
+ external_id: string;
381
+ source_collection: string;
382
+ };
383
+ via_relationship_ids: string[];
384
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
385
+ query_context: Record<string, unknown>;
386
+ query_context_status: "complete" | "incomplete" | "not_required";
387
+ }[];
388
+ }>, {
389
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
390
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
391
+ targets: {
392
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
393
+ target: {
394
+ id: string;
395
+ entity_type: "service" | "resource";
396
+ };
397
+ access_ref: {
398
+ provider: string;
399
+ external_id: string;
400
+ source_collection: string;
401
+ };
402
+ via_relationship_ids: string[];
403
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
404
+ query_context: Record<string, unknown>;
405
+ query_context_status: "complete" | "incomplete" | "not_required";
406
+ }[];
407
+ }, {
408
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
409
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
410
+ targets: {
411
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
412
+ target: {
413
+ id: string;
414
+ entity_type: "service" | "resource";
415
+ };
416
+ access_ref: {
417
+ provider: string;
418
+ external_id: string;
419
+ source_collection: string;
420
+ };
421
+ via_relationship_ids: string[];
422
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
423
+ query_context: Record<string, unknown>;
424
+ query_context_status: "complete" | "incomplete" | "not_required";
425
+ }[];
426
+ }>;
427
+ runtime: z.ZodEffects<z.ZodObject<{
428
+ status: z.ZodEnum<["mapped", "unmapped", "ambiguous", "lookup_incomplete", "not_applicable"]>;
429
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
430
+ target: z.ZodObject<{
431
+ entity_type: z.ZodEnum<["service", "resource"]>;
432
+ id: z.ZodString;
433
+ }, "strict", z.ZodTypeAny, {
434
+ id: string;
435
+ entity_type: "service" | "resource";
436
+ }, {
437
+ id: string;
438
+ entity_type: "service" | "resource";
439
+ }>;
440
+ access_ref: z.ZodObject<{
441
+ provider: z.ZodString;
442
+ external_id: z.ZodString;
443
+ source_collection: z.ZodString;
444
+ }, "strict", z.ZodTypeAny, {
445
+ provider: string;
446
+ external_id: string;
447
+ source_collection: string;
448
+ }, {
449
+ provider: string;
450
+ external_id: string;
451
+ source_collection: string;
452
+ }>;
453
+ via_relationship_ids: z.ZodArray<z.ZodString, "many">;
454
+ mapping_source: z.ZodEnum<["relationship_path", "root_ref", "access_ref"]>;
455
+ query_context: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
456
+ query_context_status: z.ZodEnum<["complete", "incomplete", "not_required"]>;
457
+ reasons: z.ZodArray<z.ZodEnum<["hop_limit", "entity_limit", "edge_limit", "fanout_limit", "attachment_limit", "target_limit", "payload_limit", "metadata_limit", "query_limit", "timeout", "source_incomplete", "selector_conflict", "selector_missing", "unsupported_provider", "invalid_access_ref", "ambiguous_access", "snapshot_expired", "not_requested"]>, "many">;
458
+ }, "strict", z.ZodTypeAny, {
459
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
460
+ target: {
461
+ id: string;
462
+ entity_type: "service" | "resource";
463
+ };
464
+ access_ref: {
465
+ provider: string;
466
+ external_id: string;
467
+ source_collection: string;
468
+ };
469
+ via_relationship_ids: string[];
470
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
471
+ query_context: Record<string, unknown>;
472
+ query_context_status: "complete" | "incomplete" | "not_required";
473
+ }, {
474
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
475
+ target: {
476
+ id: string;
477
+ entity_type: "service" | "resource";
478
+ };
479
+ access_ref: {
480
+ provider: string;
481
+ external_id: string;
482
+ source_collection: string;
483
+ };
484
+ via_relationship_ids: string[];
485
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
486
+ query_context: Record<string, unknown>;
487
+ query_context_status: "complete" | "incomplete" | "not_required";
488
+ }>, {
489
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
490
+ target: {
491
+ id: string;
492
+ entity_type: "service" | "resource";
493
+ };
494
+ access_ref: {
495
+ provider: string;
496
+ external_id: string;
497
+ source_collection: string;
498
+ };
499
+ via_relationship_ids: string[];
500
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
501
+ query_context: Record<string, unknown>;
502
+ query_context_status: "complete" | "incomplete" | "not_required";
503
+ }, {
504
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
505
+ target: {
506
+ id: string;
507
+ entity_type: "service" | "resource";
508
+ };
509
+ access_ref: {
510
+ provider: string;
511
+ external_id: string;
512
+ source_collection: string;
513
+ };
514
+ via_relationship_ids: string[];
515
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
516
+ query_context: Record<string, unknown>;
517
+ query_context_status: "complete" | "incomplete" | "not_required";
518
+ }>, "many">;
519
+ reasons: z.ZodArray<z.ZodEnum<["hop_limit", "entity_limit", "edge_limit", "fanout_limit", "attachment_limit", "target_limit", "payload_limit", "metadata_limit", "query_limit", "timeout", "source_incomplete", "selector_conflict", "selector_missing", "unsupported_provider", "invalid_access_ref", "ambiguous_access", "snapshot_expired", "not_requested"]>, "many">;
520
+ }, "strict", z.ZodTypeAny, {
521
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
522
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
523
+ targets: {
524
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
525
+ target: {
526
+ id: string;
527
+ entity_type: "service" | "resource";
528
+ };
529
+ access_ref: {
530
+ provider: string;
531
+ external_id: string;
532
+ source_collection: string;
533
+ };
534
+ via_relationship_ids: string[];
535
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
536
+ query_context: Record<string, unknown>;
537
+ query_context_status: "complete" | "incomplete" | "not_required";
538
+ }[];
539
+ }, {
540
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
541
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
542
+ targets: {
543
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
544
+ target: {
545
+ id: string;
546
+ entity_type: "service" | "resource";
547
+ };
548
+ access_ref: {
549
+ provider: string;
550
+ external_id: string;
551
+ source_collection: string;
552
+ };
553
+ via_relationship_ids: string[];
554
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
555
+ query_context: Record<string, unknown>;
556
+ query_context_status: "complete" | "incomplete" | "not_required";
557
+ }[];
558
+ }>, {
559
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
560
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
561
+ targets: {
562
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
563
+ target: {
564
+ id: string;
565
+ entity_type: "service" | "resource";
566
+ };
567
+ access_ref: {
568
+ provider: string;
569
+ external_id: string;
570
+ source_collection: string;
571
+ };
572
+ via_relationship_ids: string[];
573
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
574
+ query_context: Record<string, unknown>;
575
+ query_context_status: "complete" | "incomplete" | "not_required";
576
+ }[];
577
+ }, {
578
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
579
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
580
+ targets: {
581
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
582
+ target: {
583
+ id: string;
584
+ entity_type: "service" | "resource";
585
+ };
586
+ access_ref: {
587
+ provider: string;
588
+ external_id: string;
589
+ source_collection: string;
590
+ };
591
+ via_relationship_ids: string[];
592
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
593
+ query_context: Record<string, unknown>;
594
+ query_context_status: "complete" | "incomplete" | "not_required";
595
+ }[];
596
+ }>;
597
+ deployment: z.ZodEffects<z.ZodObject<{
598
+ status: z.ZodEnum<["mapped", "unmapped", "ambiguous", "lookup_incomplete", "not_applicable"]>;
599
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
600
+ target: z.ZodObject<{
601
+ entity_type: z.ZodEnum<["service", "resource"]>;
602
+ id: z.ZodString;
603
+ }, "strict", z.ZodTypeAny, {
604
+ id: string;
605
+ entity_type: "service" | "resource";
606
+ }, {
607
+ id: string;
608
+ entity_type: "service" | "resource";
609
+ }>;
610
+ access_ref: z.ZodObject<{
611
+ provider: z.ZodString;
612
+ external_id: z.ZodString;
613
+ source_collection: z.ZodString;
614
+ }, "strict", z.ZodTypeAny, {
615
+ provider: string;
616
+ external_id: string;
617
+ source_collection: string;
618
+ }, {
619
+ provider: string;
620
+ external_id: string;
621
+ source_collection: string;
622
+ }>;
623
+ via_relationship_ids: z.ZodArray<z.ZodString, "many">;
624
+ mapping_source: z.ZodEnum<["relationship_path", "root_ref", "access_ref"]>;
625
+ query_context: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
626
+ query_context_status: z.ZodEnum<["complete", "incomplete", "not_required"]>;
627
+ reasons: z.ZodArray<z.ZodEnum<["hop_limit", "entity_limit", "edge_limit", "fanout_limit", "attachment_limit", "target_limit", "payload_limit", "metadata_limit", "query_limit", "timeout", "source_incomplete", "selector_conflict", "selector_missing", "unsupported_provider", "invalid_access_ref", "ambiguous_access", "snapshot_expired", "not_requested"]>, "many">;
628
+ }, "strict", z.ZodTypeAny, {
629
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
630
+ target: {
631
+ id: string;
632
+ entity_type: "service" | "resource";
633
+ };
634
+ access_ref: {
635
+ provider: string;
636
+ external_id: string;
637
+ source_collection: string;
638
+ };
639
+ via_relationship_ids: string[];
640
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
641
+ query_context: Record<string, unknown>;
642
+ query_context_status: "complete" | "incomplete" | "not_required";
643
+ }, {
644
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
645
+ target: {
646
+ id: string;
647
+ entity_type: "service" | "resource";
648
+ };
649
+ access_ref: {
650
+ provider: string;
651
+ external_id: string;
652
+ source_collection: string;
653
+ };
654
+ via_relationship_ids: string[];
655
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
656
+ query_context: Record<string, unknown>;
657
+ query_context_status: "complete" | "incomplete" | "not_required";
658
+ }>, {
659
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
660
+ target: {
661
+ id: string;
662
+ entity_type: "service" | "resource";
663
+ };
664
+ access_ref: {
665
+ provider: string;
666
+ external_id: string;
667
+ source_collection: string;
668
+ };
669
+ via_relationship_ids: string[];
670
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
671
+ query_context: Record<string, unknown>;
672
+ query_context_status: "complete" | "incomplete" | "not_required";
673
+ }, {
674
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
675
+ target: {
676
+ id: string;
677
+ entity_type: "service" | "resource";
678
+ };
679
+ access_ref: {
680
+ provider: string;
681
+ external_id: string;
682
+ source_collection: string;
683
+ };
684
+ via_relationship_ids: string[];
685
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
686
+ query_context: Record<string, unknown>;
687
+ query_context_status: "complete" | "incomplete" | "not_required";
688
+ }>, "many">;
689
+ reasons: z.ZodArray<z.ZodEnum<["hop_limit", "entity_limit", "edge_limit", "fanout_limit", "attachment_limit", "target_limit", "payload_limit", "metadata_limit", "query_limit", "timeout", "source_incomplete", "selector_conflict", "selector_missing", "unsupported_provider", "invalid_access_ref", "ambiguous_access", "snapshot_expired", "not_requested"]>, "many">;
690
+ }, "strict", z.ZodTypeAny, {
691
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
692
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
693
+ targets: {
694
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
695
+ target: {
696
+ id: string;
697
+ entity_type: "service" | "resource";
698
+ };
699
+ access_ref: {
700
+ provider: string;
701
+ external_id: string;
702
+ source_collection: string;
703
+ };
704
+ via_relationship_ids: string[];
705
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
706
+ query_context: Record<string, unknown>;
707
+ query_context_status: "complete" | "incomplete" | "not_required";
708
+ }[];
709
+ }, {
710
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
711
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
712
+ targets: {
713
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
714
+ target: {
715
+ id: string;
716
+ entity_type: "service" | "resource";
717
+ };
718
+ access_ref: {
719
+ provider: string;
720
+ external_id: string;
721
+ source_collection: string;
722
+ };
723
+ via_relationship_ids: string[];
724
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
725
+ query_context: Record<string, unknown>;
726
+ query_context_status: "complete" | "incomplete" | "not_required";
727
+ }[];
728
+ }>, {
729
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
730
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
731
+ targets: {
732
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
733
+ target: {
734
+ id: string;
735
+ entity_type: "service" | "resource";
736
+ };
737
+ access_ref: {
738
+ provider: string;
739
+ external_id: string;
740
+ source_collection: string;
741
+ };
742
+ via_relationship_ids: string[];
743
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
744
+ query_context: Record<string, unknown>;
745
+ query_context_status: "complete" | "incomplete" | "not_required";
746
+ }[];
747
+ }, {
748
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
749
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
750
+ targets: {
751
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
752
+ target: {
753
+ id: string;
754
+ entity_type: "service" | "resource";
755
+ };
756
+ access_ref: {
757
+ provider: string;
758
+ external_id: string;
759
+ source_collection: string;
760
+ };
761
+ via_relationship_ids: string[];
762
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
763
+ query_context: Record<string, unknown>;
764
+ query_context_status: "complete" | "incomplete" | "not_required";
765
+ }[];
766
+ }>;
767
+ }, "strict", z.ZodTypeAny, {
768
+ deployment: {
769
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
770
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
771
+ targets: {
772
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
773
+ target: {
774
+ id: string;
775
+ entity_type: "service" | "resource";
776
+ };
777
+ access_ref: {
778
+ provider: string;
779
+ external_id: string;
780
+ source_collection: string;
781
+ };
782
+ via_relationship_ids: string[];
783
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
784
+ query_context: Record<string, unknown>;
785
+ query_context_status: "complete" | "incomplete" | "not_required";
786
+ }[];
787
+ };
788
+ monitoring: {
789
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
790
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
791
+ targets: {
792
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
793
+ target: {
794
+ id: string;
795
+ entity_type: "service" | "resource";
796
+ };
797
+ access_ref: {
798
+ provider: string;
799
+ external_id: string;
800
+ source_collection: string;
801
+ };
802
+ via_relationship_ids: string[];
803
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
804
+ query_context: Record<string, unknown>;
805
+ query_context_status: "complete" | "incomplete" | "not_required";
806
+ }[];
807
+ };
808
+ subject: {
809
+ id: string;
810
+ entity_type: "service" | "resource";
811
+ };
812
+ runtime: {
813
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
814
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
815
+ targets: {
816
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
817
+ target: {
818
+ id: string;
819
+ entity_type: "service" | "resource";
820
+ };
821
+ access_ref: {
822
+ provider: string;
823
+ external_id: string;
824
+ source_collection: string;
825
+ };
826
+ via_relationship_ids: string[];
827
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
828
+ query_context: Record<string, unknown>;
829
+ query_context_status: "complete" | "incomplete" | "not_required";
830
+ }[];
831
+ };
832
+ }, {
833
+ deployment: {
834
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
835
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
836
+ targets: {
837
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
838
+ target: {
839
+ id: string;
840
+ entity_type: "service" | "resource";
841
+ };
842
+ access_ref: {
843
+ provider: string;
844
+ external_id: string;
845
+ source_collection: string;
846
+ };
847
+ via_relationship_ids: string[];
848
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
849
+ query_context: Record<string, unknown>;
850
+ query_context_status: "complete" | "incomplete" | "not_required";
851
+ }[];
852
+ };
853
+ monitoring: {
854
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
855
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
856
+ targets: {
857
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
858
+ target: {
859
+ id: string;
860
+ entity_type: "service" | "resource";
861
+ };
862
+ access_ref: {
863
+ provider: string;
864
+ external_id: string;
865
+ source_collection: string;
866
+ };
867
+ via_relationship_ids: string[];
868
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
869
+ query_context: Record<string, unknown>;
870
+ query_context_status: "complete" | "incomplete" | "not_required";
871
+ }[];
872
+ };
873
+ subject: {
874
+ id: string;
875
+ entity_type: "service" | "resource";
876
+ };
877
+ runtime: {
878
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
879
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
880
+ targets: {
881
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
882
+ target: {
883
+ id: string;
884
+ entity_type: "service" | "resource";
885
+ };
886
+ access_ref: {
887
+ provider: string;
888
+ external_id: string;
889
+ source_collection: string;
890
+ };
891
+ via_relationship_ids: string[];
892
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
893
+ query_context: Record<string, unknown>;
894
+ query_context_status: "complete" | "incomplete" | "not_required";
895
+ }[];
896
+ };
897
+ }>;
898
+ export declare const flatTopologyResponseSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
899
+ schema_version: z.ZodLiteral<"topology.flat.v1">;
900
+ profile: z.ZodLiteral<"troubleshoot.v1">;
901
+ topology_version_id: z.ZodString;
902
+ scope: z.ZodObject<{
903
+ account_id: z.ZodString;
904
+ workspace_id: z.ZodString;
905
+ }, "strict", z.ZodTypeAny, {
906
+ account_id: string;
907
+ workspace_id: string;
908
+ }, {
909
+ account_id: string;
910
+ workspace_id: string;
911
+ }>;
912
+ snapshot: z.ZodOptional<z.ZodString>;
913
+ read_window: z.ZodObject<{
914
+ started_at: z.ZodString;
915
+ completed_at: z.ZodString;
916
+ }, "strict", z.ZodTypeAny, {
917
+ started_at: string;
918
+ completed_at: string;
919
+ }, {
920
+ started_at: string;
921
+ completed_at: string;
922
+ }>;
923
+ observation_coverage: z.ZodEnum<["complete", "partial", "unknown"]>;
924
+ anchor: z.ZodObject<{
925
+ entity_type: z.ZodEnum<["service", "resource"]>;
926
+ id: z.ZodString;
927
+ }, "strict", z.ZodTypeAny, {
928
+ id: string;
929
+ entity_type: "service" | "resource";
930
+ }, {
931
+ id: string;
932
+ entity_type: "service" | "resource";
933
+ }>;
934
+ entities: z.ZodArray<z.ZodObject<{
935
+ ref: z.ZodObject<{
936
+ entity_type: z.ZodEnum<["service", "resource"]>;
937
+ id: z.ZodString;
938
+ }, "strict", z.ZodTypeAny, {
939
+ id: string;
940
+ entity_type: "service" | "resource";
941
+ }, {
942
+ id: string;
943
+ entity_type: "service" | "resource";
944
+ }>;
945
+ name: z.ZodString;
946
+ resource_type: z.ZodOptional<z.ZodString>;
947
+ provider: z.ZodOptional<z.ZodString>;
948
+ detail: z.ZodEnum<["full", "reference"]>;
949
+ attributes: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
950
+ metadata_truncated: z.ZodBoolean;
951
+ }, "strict", z.ZodTypeAny, {
952
+ attributes: Record<string, unknown>;
953
+ name: string;
954
+ ref: {
955
+ id: string;
956
+ entity_type: "service" | "resource";
957
+ };
958
+ detail: "full" | "reference";
959
+ metadata_truncated: boolean;
960
+ provider?: string | undefined;
961
+ resource_type?: string | undefined;
962
+ }, {
963
+ attributes: Record<string, unknown>;
964
+ name: string;
965
+ ref: {
966
+ id: string;
967
+ entity_type: "service" | "resource";
968
+ };
969
+ detail: "full" | "reference";
970
+ metadata_truncated: boolean;
971
+ provider?: string | undefined;
972
+ resource_type?: string | undefined;
973
+ }>, "many">;
974
+ relationships: z.ZodArray<z.ZodObject<{
975
+ id: z.ZodString;
976
+ from: z.ZodObject<{
977
+ entity_type: z.ZodEnum<["service", "resource"]>;
978
+ id: z.ZodString;
979
+ }, "strict", z.ZodTypeAny, {
980
+ id: string;
981
+ entity_type: "service" | "resource";
982
+ }, {
983
+ id: string;
984
+ entity_type: "service" | "resource";
985
+ }>;
986
+ to: z.ZodObject<{
987
+ entity_type: z.ZodEnum<["service", "resource"]>;
988
+ id: z.ZodString;
989
+ }, "strict", z.ZodTypeAny, {
990
+ id: string;
991
+ entity_type: "service" | "resource";
992
+ }, {
993
+ id: string;
994
+ entity_type: "service" | "resource";
995
+ }>;
996
+ relation: z.ZodString;
997
+ relation_class: z.ZodEnum<["structural", "associative"]>;
998
+ diagnostic_criticality: z.ZodOptional<z.ZodEnum<["blocking", "degrading", "optional"]>>;
999
+ attribute_schema_key: z.ZodOptional<z.ZodString>;
1000
+ attributes: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
1001
+ metadata_truncated: z.ZodBoolean;
1002
+ }, "strict", z.ZodTypeAny, {
1003
+ id: string;
1004
+ attributes: Record<string, unknown>;
1005
+ relation: string;
1006
+ relation_class: "structural" | "associative";
1007
+ from: {
1008
+ id: string;
1009
+ entity_type: "service" | "resource";
1010
+ };
1011
+ to: {
1012
+ id: string;
1013
+ entity_type: "service" | "resource";
1014
+ };
1015
+ metadata_truncated: boolean;
1016
+ attribute_schema_key?: string | undefined;
1017
+ diagnostic_criticality?: "blocking" | "degrading" | "optional" | undefined;
1018
+ }, {
1019
+ id: string;
1020
+ attributes: Record<string, unknown>;
1021
+ relation: string;
1022
+ relation_class: "structural" | "associative";
1023
+ from: {
1024
+ id: string;
1025
+ entity_type: "service" | "resource";
1026
+ };
1027
+ to: {
1028
+ id: string;
1029
+ entity_type: "service" | "resource";
1030
+ };
1031
+ metadata_truncated: boolean;
1032
+ attribute_schema_key?: string | undefined;
1033
+ diagnostic_criticality?: "blocking" | "degrading" | "optional" | undefined;
1034
+ }>, "many">;
1035
+ evidence_routes: z.ZodArray<z.ZodObject<{
1036
+ subject: z.ZodObject<{
1037
+ entity_type: z.ZodEnum<["service", "resource"]>;
1038
+ id: z.ZodString;
1039
+ }, "strict", z.ZodTypeAny, {
1040
+ id: string;
1041
+ entity_type: "service" | "resource";
1042
+ }, {
1043
+ id: string;
1044
+ entity_type: "service" | "resource";
1045
+ }>;
1046
+ monitoring: z.ZodEffects<z.ZodObject<{
1047
+ status: z.ZodEnum<["mapped", "unmapped", "ambiguous", "lookup_incomplete", "not_applicable"]>;
1048
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
1049
+ target: z.ZodObject<{
1050
+ entity_type: z.ZodEnum<["service", "resource"]>;
1051
+ id: z.ZodString;
1052
+ }, "strict", z.ZodTypeAny, {
1053
+ id: string;
1054
+ entity_type: "service" | "resource";
1055
+ }, {
1056
+ id: string;
1057
+ entity_type: "service" | "resource";
1058
+ }>;
1059
+ access_ref: z.ZodObject<{
1060
+ provider: z.ZodString;
1061
+ external_id: z.ZodString;
1062
+ source_collection: z.ZodString;
1063
+ }, "strict", z.ZodTypeAny, {
1064
+ provider: string;
1065
+ external_id: string;
1066
+ source_collection: string;
1067
+ }, {
1068
+ provider: string;
1069
+ external_id: string;
1070
+ source_collection: string;
1071
+ }>;
1072
+ via_relationship_ids: z.ZodArray<z.ZodString, "many">;
1073
+ mapping_source: z.ZodEnum<["relationship_path", "root_ref", "access_ref"]>;
1074
+ query_context: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
1075
+ query_context_status: z.ZodEnum<["complete", "incomplete", "not_required"]>;
1076
+ reasons: z.ZodArray<z.ZodEnum<["hop_limit", "entity_limit", "edge_limit", "fanout_limit", "attachment_limit", "target_limit", "payload_limit", "metadata_limit", "query_limit", "timeout", "source_incomplete", "selector_conflict", "selector_missing", "unsupported_provider", "invalid_access_ref", "ambiguous_access", "snapshot_expired", "not_requested"]>, "many">;
1077
+ }, "strict", z.ZodTypeAny, {
1078
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1079
+ target: {
1080
+ id: string;
1081
+ entity_type: "service" | "resource";
1082
+ };
1083
+ access_ref: {
1084
+ provider: string;
1085
+ external_id: string;
1086
+ source_collection: string;
1087
+ };
1088
+ via_relationship_ids: string[];
1089
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1090
+ query_context: Record<string, unknown>;
1091
+ query_context_status: "complete" | "incomplete" | "not_required";
1092
+ }, {
1093
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1094
+ target: {
1095
+ id: string;
1096
+ entity_type: "service" | "resource";
1097
+ };
1098
+ access_ref: {
1099
+ provider: string;
1100
+ external_id: string;
1101
+ source_collection: string;
1102
+ };
1103
+ via_relationship_ids: string[];
1104
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1105
+ query_context: Record<string, unknown>;
1106
+ query_context_status: "complete" | "incomplete" | "not_required";
1107
+ }>, {
1108
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1109
+ target: {
1110
+ id: string;
1111
+ entity_type: "service" | "resource";
1112
+ };
1113
+ access_ref: {
1114
+ provider: string;
1115
+ external_id: string;
1116
+ source_collection: string;
1117
+ };
1118
+ via_relationship_ids: string[];
1119
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1120
+ query_context: Record<string, unknown>;
1121
+ query_context_status: "complete" | "incomplete" | "not_required";
1122
+ }, {
1123
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1124
+ target: {
1125
+ id: string;
1126
+ entity_type: "service" | "resource";
1127
+ };
1128
+ access_ref: {
1129
+ provider: string;
1130
+ external_id: string;
1131
+ source_collection: string;
1132
+ };
1133
+ via_relationship_ids: string[];
1134
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1135
+ query_context: Record<string, unknown>;
1136
+ query_context_status: "complete" | "incomplete" | "not_required";
1137
+ }>, "many">;
1138
+ reasons: z.ZodArray<z.ZodEnum<["hop_limit", "entity_limit", "edge_limit", "fanout_limit", "attachment_limit", "target_limit", "payload_limit", "metadata_limit", "query_limit", "timeout", "source_incomplete", "selector_conflict", "selector_missing", "unsupported_provider", "invalid_access_ref", "ambiguous_access", "snapshot_expired", "not_requested"]>, "many">;
1139
+ }, "strict", z.ZodTypeAny, {
1140
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
1141
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1142
+ targets: {
1143
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1144
+ target: {
1145
+ id: string;
1146
+ entity_type: "service" | "resource";
1147
+ };
1148
+ access_ref: {
1149
+ provider: string;
1150
+ external_id: string;
1151
+ source_collection: string;
1152
+ };
1153
+ via_relationship_ids: string[];
1154
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1155
+ query_context: Record<string, unknown>;
1156
+ query_context_status: "complete" | "incomplete" | "not_required";
1157
+ }[];
1158
+ }, {
1159
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
1160
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1161
+ targets: {
1162
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1163
+ target: {
1164
+ id: string;
1165
+ entity_type: "service" | "resource";
1166
+ };
1167
+ access_ref: {
1168
+ provider: string;
1169
+ external_id: string;
1170
+ source_collection: string;
1171
+ };
1172
+ via_relationship_ids: string[];
1173
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1174
+ query_context: Record<string, unknown>;
1175
+ query_context_status: "complete" | "incomplete" | "not_required";
1176
+ }[];
1177
+ }>, {
1178
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
1179
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1180
+ targets: {
1181
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1182
+ target: {
1183
+ id: string;
1184
+ entity_type: "service" | "resource";
1185
+ };
1186
+ access_ref: {
1187
+ provider: string;
1188
+ external_id: string;
1189
+ source_collection: string;
1190
+ };
1191
+ via_relationship_ids: string[];
1192
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1193
+ query_context: Record<string, unknown>;
1194
+ query_context_status: "complete" | "incomplete" | "not_required";
1195
+ }[];
1196
+ }, {
1197
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
1198
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1199
+ targets: {
1200
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1201
+ target: {
1202
+ id: string;
1203
+ entity_type: "service" | "resource";
1204
+ };
1205
+ access_ref: {
1206
+ provider: string;
1207
+ external_id: string;
1208
+ source_collection: string;
1209
+ };
1210
+ via_relationship_ids: string[];
1211
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1212
+ query_context: Record<string, unknown>;
1213
+ query_context_status: "complete" | "incomplete" | "not_required";
1214
+ }[];
1215
+ }>;
1216
+ runtime: z.ZodEffects<z.ZodObject<{
1217
+ status: z.ZodEnum<["mapped", "unmapped", "ambiguous", "lookup_incomplete", "not_applicable"]>;
1218
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
1219
+ target: z.ZodObject<{
1220
+ entity_type: z.ZodEnum<["service", "resource"]>;
1221
+ id: z.ZodString;
1222
+ }, "strict", z.ZodTypeAny, {
1223
+ id: string;
1224
+ entity_type: "service" | "resource";
1225
+ }, {
1226
+ id: string;
1227
+ entity_type: "service" | "resource";
1228
+ }>;
1229
+ access_ref: z.ZodObject<{
1230
+ provider: z.ZodString;
1231
+ external_id: z.ZodString;
1232
+ source_collection: z.ZodString;
1233
+ }, "strict", z.ZodTypeAny, {
1234
+ provider: string;
1235
+ external_id: string;
1236
+ source_collection: string;
1237
+ }, {
1238
+ provider: string;
1239
+ external_id: string;
1240
+ source_collection: string;
1241
+ }>;
1242
+ via_relationship_ids: z.ZodArray<z.ZodString, "many">;
1243
+ mapping_source: z.ZodEnum<["relationship_path", "root_ref", "access_ref"]>;
1244
+ query_context: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
1245
+ query_context_status: z.ZodEnum<["complete", "incomplete", "not_required"]>;
1246
+ reasons: z.ZodArray<z.ZodEnum<["hop_limit", "entity_limit", "edge_limit", "fanout_limit", "attachment_limit", "target_limit", "payload_limit", "metadata_limit", "query_limit", "timeout", "source_incomplete", "selector_conflict", "selector_missing", "unsupported_provider", "invalid_access_ref", "ambiguous_access", "snapshot_expired", "not_requested"]>, "many">;
1247
+ }, "strict", z.ZodTypeAny, {
1248
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1249
+ target: {
1250
+ id: string;
1251
+ entity_type: "service" | "resource";
1252
+ };
1253
+ access_ref: {
1254
+ provider: string;
1255
+ external_id: string;
1256
+ source_collection: string;
1257
+ };
1258
+ via_relationship_ids: string[];
1259
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1260
+ query_context: Record<string, unknown>;
1261
+ query_context_status: "complete" | "incomplete" | "not_required";
1262
+ }, {
1263
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1264
+ target: {
1265
+ id: string;
1266
+ entity_type: "service" | "resource";
1267
+ };
1268
+ access_ref: {
1269
+ provider: string;
1270
+ external_id: string;
1271
+ source_collection: string;
1272
+ };
1273
+ via_relationship_ids: string[];
1274
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1275
+ query_context: Record<string, unknown>;
1276
+ query_context_status: "complete" | "incomplete" | "not_required";
1277
+ }>, {
1278
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1279
+ target: {
1280
+ id: string;
1281
+ entity_type: "service" | "resource";
1282
+ };
1283
+ access_ref: {
1284
+ provider: string;
1285
+ external_id: string;
1286
+ source_collection: string;
1287
+ };
1288
+ via_relationship_ids: string[];
1289
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1290
+ query_context: Record<string, unknown>;
1291
+ query_context_status: "complete" | "incomplete" | "not_required";
1292
+ }, {
1293
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1294
+ target: {
1295
+ id: string;
1296
+ entity_type: "service" | "resource";
1297
+ };
1298
+ access_ref: {
1299
+ provider: string;
1300
+ external_id: string;
1301
+ source_collection: string;
1302
+ };
1303
+ via_relationship_ids: string[];
1304
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1305
+ query_context: Record<string, unknown>;
1306
+ query_context_status: "complete" | "incomplete" | "not_required";
1307
+ }>, "many">;
1308
+ reasons: z.ZodArray<z.ZodEnum<["hop_limit", "entity_limit", "edge_limit", "fanout_limit", "attachment_limit", "target_limit", "payload_limit", "metadata_limit", "query_limit", "timeout", "source_incomplete", "selector_conflict", "selector_missing", "unsupported_provider", "invalid_access_ref", "ambiguous_access", "snapshot_expired", "not_requested"]>, "many">;
1309
+ }, "strict", z.ZodTypeAny, {
1310
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
1311
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1312
+ targets: {
1313
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1314
+ target: {
1315
+ id: string;
1316
+ entity_type: "service" | "resource";
1317
+ };
1318
+ access_ref: {
1319
+ provider: string;
1320
+ external_id: string;
1321
+ source_collection: string;
1322
+ };
1323
+ via_relationship_ids: string[];
1324
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1325
+ query_context: Record<string, unknown>;
1326
+ query_context_status: "complete" | "incomplete" | "not_required";
1327
+ }[];
1328
+ }, {
1329
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
1330
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1331
+ targets: {
1332
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1333
+ target: {
1334
+ id: string;
1335
+ entity_type: "service" | "resource";
1336
+ };
1337
+ access_ref: {
1338
+ provider: string;
1339
+ external_id: string;
1340
+ source_collection: string;
1341
+ };
1342
+ via_relationship_ids: string[];
1343
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1344
+ query_context: Record<string, unknown>;
1345
+ query_context_status: "complete" | "incomplete" | "not_required";
1346
+ }[];
1347
+ }>, {
1348
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
1349
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1350
+ targets: {
1351
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1352
+ target: {
1353
+ id: string;
1354
+ entity_type: "service" | "resource";
1355
+ };
1356
+ access_ref: {
1357
+ provider: string;
1358
+ external_id: string;
1359
+ source_collection: string;
1360
+ };
1361
+ via_relationship_ids: string[];
1362
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1363
+ query_context: Record<string, unknown>;
1364
+ query_context_status: "complete" | "incomplete" | "not_required";
1365
+ }[];
1366
+ }, {
1367
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
1368
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1369
+ targets: {
1370
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1371
+ target: {
1372
+ id: string;
1373
+ entity_type: "service" | "resource";
1374
+ };
1375
+ access_ref: {
1376
+ provider: string;
1377
+ external_id: string;
1378
+ source_collection: string;
1379
+ };
1380
+ via_relationship_ids: string[];
1381
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1382
+ query_context: Record<string, unknown>;
1383
+ query_context_status: "complete" | "incomplete" | "not_required";
1384
+ }[];
1385
+ }>;
1386
+ deployment: z.ZodEffects<z.ZodObject<{
1387
+ status: z.ZodEnum<["mapped", "unmapped", "ambiguous", "lookup_incomplete", "not_applicable"]>;
1388
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
1389
+ target: z.ZodObject<{
1390
+ entity_type: z.ZodEnum<["service", "resource"]>;
1391
+ id: z.ZodString;
1392
+ }, "strict", z.ZodTypeAny, {
1393
+ id: string;
1394
+ entity_type: "service" | "resource";
1395
+ }, {
1396
+ id: string;
1397
+ entity_type: "service" | "resource";
1398
+ }>;
1399
+ access_ref: z.ZodObject<{
1400
+ provider: z.ZodString;
1401
+ external_id: z.ZodString;
1402
+ source_collection: z.ZodString;
1403
+ }, "strict", z.ZodTypeAny, {
1404
+ provider: string;
1405
+ external_id: string;
1406
+ source_collection: string;
1407
+ }, {
1408
+ provider: string;
1409
+ external_id: string;
1410
+ source_collection: string;
1411
+ }>;
1412
+ via_relationship_ids: z.ZodArray<z.ZodString, "many">;
1413
+ mapping_source: z.ZodEnum<["relationship_path", "root_ref", "access_ref"]>;
1414
+ query_context: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>;
1415
+ query_context_status: z.ZodEnum<["complete", "incomplete", "not_required"]>;
1416
+ reasons: z.ZodArray<z.ZodEnum<["hop_limit", "entity_limit", "edge_limit", "fanout_limit", "attachment_limit", "target_limit", "payload_limit", "metadata_limit", "query_limit", "timeout", "source_incomplete", "selector_conflict", "selector_missing", "unsupported_provider", "invalid_access_ref", "ambiguous_access", "snapshot_expired", "not_requested"]>, "many">;
1417
+ }, "strict", z.ZodTypeAny, {
1418
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1419
+ target: {
1420
+ id: string;
1421
+ entity_type: "service" | "resource";
1422
+ };
1423
+ access_ref: {
1424
+ provider: string;
1425
+ external_id: string;
1426
+ source_collection: string;
1427
+ };
1428
+ via_relationship_ids: string[];
1429
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1430
+ query_context: Record<string, unknown>;
1431
+ query_context_status: "complete" | "incomplete" | "not_required";
1432
+ }, {
1433
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1434
+ target: {
1435
+ id: string;
1436
+ entity_type: "service" | "resource";
1437
+ };
1438
+ access_ref: {
1439
+ provider: string;
1440
+ external_id: string;
1441
+ source_collection: string;
1442
+ };
1443
+ via_relationship_ids: string[];
1444
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1445
+ query_context: Record<string, unknown>;
1446
+ query_context_status: "complete" | "incomplete" | "not_required";
1447
+ }>, {
1448
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1449
+ target: {
1450
+ id: string;
1451
+ entity_type: "service" | "resource";
1452
+ };
1453
+ access_ref: {
1454
+ provider: string;
1455
+ external_id: string;
1456
+ source_collection: string;
1457
+ };
1458
+ via_relationship_ids: string[];
1459
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1460
+ query_context: Record<string, unknown>;
1461
+ query_context_status: "complete" | "incomplete" | "not_required";
1462
+ }, {
1463
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1464
+ target: {
1465
+ id: string;
1466
+ entity_type: "service" | "resource";
1467
+ };
1468
+ access_ref: {
1469
+ provider: string;
1470
+ external_id: string;
1471
+ source_collection: string;
1472
+ };
1473
+ via_relationship_ids: string[];
1474
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1475
+ query_context: Record<string, unknown>;
1476
+ query_context_status: "complete" | "incomplete" | "not_required";
1477
+ }>, "many">;
1478
+ reasons: z.ZodArray<z.ZodEnum<["hop_limit", "entity_limit", "edge_limit", "fanout_limit", "attachment_limit", "target_limit", "payload_limit", "metadata_limit", "query_limit", "timeout", "source_incomplete", "selector_conflict", "selector_missing", "unsupported_provider", "invalid_access_ref", "ambiguous_access", "snapshot_expired", "not_requested"]>, "many">;
1479
+ }, "strict", z.ZodTypeAny, {
1480
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
1481
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1482
+ targets: {
1483
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1484
+ target: {
1485
+ id: string;
1486
+ entity_type: "service" | "resource";
1487
+ };
1488
+ access_ref: {
1489
+ provider: string;
1490
+ external_id: string;
1491
+ source_collection: string;
1492
+ };
1493
+ via_relationship_ids: string[];
1494
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1495
+ query_context: Record<string, unknown>;
1496
+ query_context_status: "complete" | "incomplete" | "not_required";
1497
+ }[];
1498
+ }, {
1499
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
1500
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1501
+ targets: {
1502
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1503
+ target: {
1504
+ id: string;
1505
+ entity_type: "service" | "resource";
1506
+ };
1507
+ access_ref: {
1508
+ provider: string;
1509
+ external_id: string;
1510
+ source_collection: string;
1511
+ };
1512
+ via_relationship_ids: string[];
1513
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1514
+ query_context: Record<string, unknown>;
1515
+ query_context_status: "complete" | "incomplete" | "not_required";
1516
+ }[];
1517
+ }>, {
1518
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
1519
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1520
+ targets: {
1521
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1522
+ target: {
1523
+ id: string;
1524
+ entity_type: "service" | "resource";
1525
+ };
1526
+ access_ref: {
1527
+ provider: string;
1528
+ external_id: string;
1529
+ source_collection: string;
1530
+ };
1531
+ via_relationship_ids: string[];
1532
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1533
+ query_context: Record<string, unknown>;
1534
+ query_context_status: "complete" | "incomplete" | "not_required";
1535
+ }[];
1536
+ }, {
1537
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
1538
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1539
+ targets: {
1540
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1541
+ target: {
1542
+ id: string;
1543
+ entity_type: "service" | "resource";
1544
+ };
1545
+ access_ref: {
1546
+ provider: string;
1547
+ external_id: string;
1548
+ source_collection: string;
1549
+ };
1550
+ via_relationship_ids: string[];
1551
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1552
+ query_context: Record<string, unknown>;
1553
+ query_context_status: "complete" | "incomplete" | "not_required";
1554
+ }[];
1555
+ }>;
1556
+ }, "strict", z.ZodTypeAny, {
1557
+ deployment: {
1558
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
1559
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1560
+ targets: {
1561
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1562
+ target: {
1563
+ id: string;
1564
+ entity_type: "service" | "resource";
1565
+ };
1566
+ access_ref: {
1567
+ provider: string;
1568
+ external_id: string;
1569
+ source_collection: string;
1570
+ };
1571
+ via_relationship_ids: string[];
1572
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1573
+ query_context: Record<string, unknown>;
1574
+ query_context_status: "complete" | "incomplete" | "not_required";
1575
+ }[];
1576
+ };
1577
+ monitoring: {
1578
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
1579
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1580
+ targets: {
1581
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1582
+ target: {
1583
+ id: string;
1584
+ entity_type: "service" | "resource";
1585
+ };
1586
+ access_ref: {
1587
+ provider: string;
1588
+ external_id: string;
1589
+ source_collection: string;
1590
+ };
1591
+ via_relationship_ids: string[];
1592
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1593
+ query_context: Record<string, unknown>;
1594
+ query_context_status: "complete" | "incomplete" | "not_required";
1595
+ }[];
1596
+ };
1597
+ subject: {
1598
+ id: string;
1599
+ entity_type: "service" | "resource";
1600
+ };
1601
+ runtime: {
1602
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
1603
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1604
+ targets: {
1605
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1606
+ target: {
1607
+ id: string;
1608
+ entity_type: "service" | "resource";
1609
+ };
1610
+ access_ref: {
1611
+ provider: string;
1612
+ external_id: string;
1613
+ source_collection: string;
1614
+ };
1615
+ via_relationship_ids: string[];
1616
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1617
+ query_context: Record<string, unknown>;
1618
+ query_context_status: "complete" | "incomplete" | "not_required";
1619
+ }[];
1620
+ };
1621
+ }, {
1622
+ deployment: {
1623
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
1624
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1625
+ targets: {
1626
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1627
+ target: {
1628
+ id: string;
1629
+ entity_type: "service" | "resource";
1630
+ };
1631
+ access_ref: {
1632
+ provider: string;
1633
+ external_id: string;
1634
+ source_collection: string;
1635
+ };
1636
+ via_relationship_ids: string[];
1637
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1638
+ query_context: Record<string, unknown>;
1639
+ query_context_status: "complete" | "incomplete" | "not_required";
1640
+ }[];
1641
+ };
1642
+ monitoring: {
1643
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
1644
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1645
+ targets: {
1646
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1647
+ target: {
1648
+ id: string;
1649
+ entity_type: "service" | "resource";
1650
+ };
1651
+ access_ref: {
1652
+ provider: string;
1653
+ external_id: string;
1654
+ source_collection: string;
1655
+ };
1656
+ via_relationship_ids: string[];
1657
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1658
+ query_context: Record<string, unknown>;
1659
+ query_context_status: "complete" | "incomplete" | "not_required";
1660
+ }[];
1661
+ };
1662
+ subject: {
1663
+ id: string;
1664
+ entity_type: "service" | "resource";
1665
+ };
1666
+ runtime: {
1667
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
1668
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1669
+ targets: {
1670
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1671
+ target: {
1672
+ id: string;
1673
+ entity_type: "service" | "resource";
1674
+ };
1675
+ access_ref: {
1676
+ provider: string;
1677
+ external_id: string;
1678
+ source_collection: string;
1679
+ };
1680
+ via_relationship_ids: string[];
1681
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
1682
+ query_context: Record<string, unknown>;
1683
+ query_context_status: "complete" | "incomplete" | "not_required";
1684
+ }[];
1685
+ };
1686
+ }>, "many">;
1687
+ coverage: z.ZodObject<{
1688
+ dependencies: z.ZodEffects<z.ZodObject<{
1689
+ complete: z.ZodBoolean;
1690
+ reasons: z.ZodArray<z.ZodEnum<["hop_limit", "entity_limit", "edge_limit", "fanout_limit", "attachment_limit", "target_limit", "payload_limit", "metadata_limit", "query_limit", "timeout", "source_incomplete", "selector_conflict", "selector_missing", "unsupported_provider", "invalid_access_ref", "ambiguous_access", "snapshot_expired", "not_requested"]>, "many">;
1691
+ frontier: z.ZodArray<z.ZodObject<{
1692
+ at: z.ZodObject<{
1693
+ entity_type: z.ZodEnum<["service", "resource"]>;
1694
+ id: z.ZodString;
1695
+ }, "strict", z.ZodTypeAny, {
1696
+ id: string;
1697
+ entity_type: "service" | "resource";
1698
+ }, {
1699
+ id: string;
1700
+ entity_type: "service" | "resource";
1701
+ }>;
1702
+ lane: z.ZodEnum<["dependency", "caller", "monitoring", "runtime", "deployment"]>;
1703
+ reason: z.ZodEnum<["hop_limit", "entity_limit", "edge_limit", "fanout_limit", "attachment_limit", "target_limit", "payload_limit", "metadata_limit", "query_limit", "timeout", "source_incomplete", "selector_conflict", "selector_missing", "unsupported_provider", "invalid_access_ref", "ambiguous_access", "snapshot_expired", "not_requested"]>;
1704
+ continuation: z.ZodOptional<z.ZodString>;
1705
+ continuation_anchor: z.ZodOptional<z.ZodObject<{
1706
+ entity_type: z.ZodEnum<["service", "resource"]>;
1707
+ id: z.ZodString;
1708
+ }, "strict", z.ZodTypeAny, {
1709
+ id: string;
1710
+ entity_type: "service" | "resource";
1711
+ }, {
1712
+ id: string;
1713
+ entity_type: "service" | "resource";
1714
+ }>>;
1715
+ }, "strict", z.ZodTypeAny, {
1716
+ at: {
1717
+ id: string;
1718
+ entity_type: "service" | "resource";
1719
+ };
1720
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
1721
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
1722
+ continuation?: string | undefined;
1723
+ continuation_anchor?: {
1724
+ id: string;
1725
+ entity_type: "service" | "resource";
1726
+ } | undefined;
1727
+ }, {
1728
+ at: {
1729
+ id: string;
1730
+ entity_type: "service" | "resource";
1731
+ };
1732
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
1733
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
1734
+ continuation?: string | undefined;
1735
+ continuation_anchor?: {
1736
+ id: string;
1737
+ entity_type: "service" | "resource";
1738
+ } | undefined;
1739
+ }>, "many">;
1740
+ }, "strict", z.ZodTypeAny, {
1741
+ complete: boolean;
1742
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1743
+ frontier: {
1744
+ at: {
1745
+ id: string;
1746
+ entity_type: "service" | "resource";
1747
+ };
1748
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
1749
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
1750
+ continuation?: string | undefined;
1751
+ continuation_anchor?: {
1752
+ id: string;
1753
+ entity_type: "service" | "resource";
1754
+ } | undefined;
1755
+ }[];
1756
+ }, {
1757
+ complete: boolean;
1758
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1759
+ frontier: {
1760
+ at: {
1761
+ id: string;
1762
+ entity_type: "service" | "resource";
1763
+ };
1764
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
1765
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
1766
+ continuation?: string | undefined;
1767
+ continuation_anchor?: {
1768
+ id: string;
1769
+ entity_type: "service" | "resource";
1770
+ } | undefined;
1771
+ }[];
1772
+ }>, {
1773
+ complete: boolean;
1774
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1775
+ frontier: {
1776
+ at: {
1777
+ id: string;
1778
+ entity_type: "service" | "resource";
1779
+ };
1780
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
1781
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
1782
+ continuation?: string | undefined;
1783
+ continuation_anchor?: {
1784
+ id: string;
1785
+ entity_type: "service" | "resource";
1786
+ } | undefined;
1787
+ }[];
1788
+ }, {
1789
+ complete: boolean;
1790
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1791
+ frontier: {
1792
+ at: {
1793
+ id: string;
1794
+ entity_type: "service" | "resource";
1795
+ };
1796
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
1797
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
1798
+ continuation?: string | undefined;
1799
+ continuation_anchor?: {
1800
+ id: string;
1801
+ entity_type: "service" | "resource";
1802
+ } | undefined;
1803
+ }[];
1804
+ }>;
1805
+ callers: z.ZodEffects<z.ZodObject<{
1806
+ complete: z.ZodBoolean;
1807
+ reasons: z.ZodArray<z.ZodEnum<["hop_limit", "entity_limit", "edge_limit", "fanout_limit", "attachment_limit", "target_limit", "payload_limit", "metadata_limit", "query_limit", "timeout", "source_incomplete", "selector_conflict", "selector_missing", "unsupported_provider", "invalid_access_ref", "ambiguous_access", "snapshot_expired", "not_requested"]>, "many">;
1808
+ frontier: z.ZodArray<z.ZodObject<{
1809
+ at: z.ZodObject<{
1810
+ entity_type: z.ZodEnum<["service", "resource"]>;
1811
+ id: z.ZodString;
1812
+ }, "strict", z.ZodTypeAny, {
1813
+ id: string;
1814
+ entity_type: "service" | "resource";
1815
+ }, {
1816
+ id: string;
1817
+ entity_type: "service" | "resource";
1818
+ }>;
1819
+ lane: z.ZodEnum<["dependency", "caller", "monitoring", "runtime", "deployment"]>;
1820
+ reason: z.ZodEnum<["hop_limit", "entity_limit", "edge_limit", "fanout_limit", "attachment_limit", "target_limit", "payload_limit", "metadata_limit", "query_limit", "timeout", "source_incomplete", "selector_conflict", "selector_missing", "unsupported_provider", "invalid_access_ref", "ambiguous_access", "snapshot_expired", "not_requested"]>;
1821
+ continuation: z.ZodOptional<z.ZodString>;
1822
+ continuation_anchor: z.ZodOptional<z.ZodObject<{
1823
+ entity_type: z.ZodEnum<["service", "resource"]>;
1824
+ id: z.ZodString;
1825
+ }, "strict", z.ZodTypeAny, {
1826
+ id: string;
1827
+ entity_type: "service" | "resource";
1828
+ }, {
1829
+ id: string;
1830
+ entity_type: "service" | "resource";
1831
+ }>>;
1832
+ }, "strict", z.ZodTypeAny, {
1833
+ at: {
1834
+ id: string;
1835
+ entity_type: "service" | "resource";
1836
+ };
1837
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
1838
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
1839
+ continuation?: string | undefined;
1840
+ continuation_anchor?: {
1841
+ id: string;
1842
+ entity_type: "service" | "resource";
1843
+ } | undefined;
1844
+ }, {
1845
+ at: {
1846
+ id: string;
1847
+ entity_type: "service" | "resource";
1848
+ };
1849
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
1850
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
1851
+ continuation?: string | undefined;
1852
+ continuation_anchor?: {
1853
+ id: string;
1854
+ entity_type: "service" | "resource";
1855
+ } | undefined;
1856
+ }>, "many">;
1857
+ }, "strict", z.ZodTypeAny, {
1858
+ complete: boolean;
1859
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1860
+ frontier: {
1861
+ at: {
1862
+ id: string;
1863
+ entity_type: "service" | "resource";
1864
+ };
1865
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
1866
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
1867
+ continuation?: string | undefined;
1868
+ continuation_anchor?: {
1869
+ id: string;
1870
+ entity_type: "service" | "resource";
1871
+ } | undefined;
1872
+ }[];
1873
+ }, {
1874
+ complete: boolean;
1875
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1876
+ frontier: {
1877
+ at: {
1878
+ id: string;
1879
+ entity_type: "service" | "resource";
1880
+ };
1881
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
1882
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
1883
+ continuation?: string | undefined;
1884
+ continuation_anchor?: {
1885
+ id: string;
1886
+ entity_type: "service" | "resource";
1887
+ } | undefined;
1888
+ }[];
1889
+ }>, {
1890
+ complete: boolean;
1891
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1892
+ frontier: {
1893
+ at: {
1894
+ id: string;
1895
+ entity_type: "service" | "resource";
1896
+ };
1897
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
1898
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
1899
+ continuation?: string | undefined;
1900
+ continuation_anchor?: {
1901
+ id: string;
1902
+ entity_type: "service" | "resource";
1903
+ } | undefined;
1904
+ }[];
1905
+ }, {
1906
+ complete: boolean;
1907
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1908
+ frontier: {
1909
+ at: {
1910
+ id: string;
1911
+ entity_type: "service" | "resource";
1912
+ };
1913
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
1914
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
1915
+ continuation?: string | undefined;
1916
+ continuation_anchor?: {
1917
+ id: string;
1918
+ entity_type: "service" | "resource";
1919
+ } | undefined;
1920
+ }[];
1921
+ }>;
1922
+ attachments: z.ZodEffects<z.ZodObject<{
1923
+ complete: z.ZodBoolean;
1924
+ reasons: z.ZodArray<z.ZodEnum<["hop_limit", "entity_limit", "edge_limit", "fanout_limit", "attachment_limit", "target_limit", "payload_limit", "metadata_limit", "query_limit", "timeout", "source_incomplete", "selector_conflict", "selector_missing", "unsupported_provider", "invalid_access_ref", "ambiguous_access", "snapshot_expired", "not_requested"]>, "many">;
1925
+ frontier: z.ZodArray<z.ZodObject<{
1926
+ at: z.ZodObject<{
1927
+ entity_type: z.ZodEnum<["service", "resource"]>;
1928
+ id: z.ZodString;
1929
+ }, "strict", z.ZodTypeAny, {
1930
+ id: string;
1931
+ entity_type: "service" | "resource";
1932
+ }, {
1933
+ id: string;
1934
+ entity_type: "service" | "resource";
1935
+ }>;
1936
+ lane: z.ZodEnum<["dependency", "caller", "monitoring", "runtime", "deployment"]>;
1937
+ reason: z.ZodEnum<["hop_limit", "entity_limit", "edge_limit", "fanout_limit", "attachment_limit", "target_limit", "payload_limit", "metadata_limit", "query_limit", "timeout", "source_incomplete", "selector_conflict", "selector_missing", "unsupported_provider", "invalid_access_ref", "ambiguous_access", "snapshot_expired", "not_requested"]>;
1938
+ continuation: z.ZodOptional<z.ZodString>;
1939
+ continuation_anchor: z.ZodOptional<z.ZodObject<{
1940
+ entity_type: z.ZodEnum<["service", "resource"]>;
1941
+ id: z.ZodString;
1942
+ }, "strict", z.ZodTypeAny, {
1943
+ id: string;
1944
+ entity_type: "service" | "resource";
1945
+ }, {
1946
+ id: string;
1947
+ entity_type: "service" | "resource";
1948
+ }>>;
1949
+ }, "strict", z.ZodTypeAny, {
1950
+ at: {
1951
+ id: string;
1952
+ entity_type: "service" | "resource";
1953
+ };
1954
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
1955
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
1956
+ continuation?: string | undefined;
1957
+ continuation_anchor?: {
1958
+ id: string;
1959
+ entity_type: "service" | "resource";
1960
+ } | undefined;
1961
+ }, {
1962
+ at: {
1963
+ id: string;
1964
+ entity_type: "service" | "resource";
1965
+ };
1966
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
1967
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
1968
+ continuation?: string | undefined;
1969
+ continuation_anchor?: {
1970
+ id: string;
1971
+ entity_type: "service" | "resource";
1972
+ } | undefined;
1973
+ }>, "many">;
1974
+ }, "strict", z.ZodTypeAny, {
1975
+ complete: boolean;
1976
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1977
+ frontier: {
1978
+ at: {
1979
+ id: string;
1980
+ entity_type: "service" | "resource";
1981
+ };
1982
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
1983
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
1984
+ continuation?: string | undefined;
1985
+ continuation_anchor?: {
1986
+ id: string;
1987
+ entity_type: "service" | "resource";
1988
+ } | undefined;
1989
+ }[];
1990
+ }, {
1991
+ complete: boolean;
1992
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
1993
+ frontier: {
1994
+ at: {
1995
+ id: string;
1996
+ entity_type: "service" | "resource";
1997
+ };
1998
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
1999
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
2000
+ continuation?: string | undefined;
2001
+ continuation_anchor?: {
2002
+ id: string;
2003
+ entity_type: "service" | "resource";
2004
+ } | undefined;
2005
+ }[];
2006
+ }>, {
2007
+ complete: boolean;
2008
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2009
+ frontier: {
2010
+ at: {
2011
+ id: string;
2012
+ entity_type: "service" | "resource";
2013
+ };
2014
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
2015
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
2016
+ continuation?: string | undefined;
2017
+ continuation_anchor?: {
2018
+ id: string;
2019
+ entity_type: "service" | "resource";
2020
+ } | undefined;
2021
+ }[];
2022
+ }, {
2023
+ complete: boolean;
2024
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2025
+ frontier: {
2026
+ at: {
2027
+ id: string;
2028
+ entity_type: "service" | "resource";
2029
+ };
2030
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
2031
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
2032
+ continuation?: string | undefined;
2033
+ continuation_anchor?: {
2034
+ id: string;
2035
+ entity_type: "service" | "resource";
2036
+ } | undefined;
2037
+ }[];
2038
+ }>;
2039
+ }, "strict", z.ZodTypeAny, {
2040
+ callers: {
2041
+ complete: boolean;
2042
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2043
+ frontier: {
2044
+ at: {
2045
+ id: string;
2046
+ entity_type: "service" | "resource";
2047
+ };
2048
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
2049
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
2050
+ continuation?: string | undefined;
2051
+ continuation_anchor?: {
2052
+ id: string;
2053
+ entity_type: "service" | "resource";
2054
+ } | undefined;
2055
+ }[];
2056
+ };
2057
+ dependencies: {
2058
+ complete: boolean;
2059
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2060
+ frontier: {
2061
+ at: {
2062
+ id: string;
2063
+ entity_type: "service" | "resource";
2064
+ };
2065
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
2066
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
2067
+ continuation?: string | undefined;
2068
+ continuation_anchor?: {
2069
+ id: string;
2070
+ entity_type: "service" | "resource";
2071
+ } | undefined;
2072
+ }[];
2073
+ };
2074
+ attachments: {
2075
+ complete: boolean;
2076
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2077
+ frontier: {
2078
+ at: {
2079
+ id: string;
2080
+ entity_type: "service" | "resource";
2081
+ };
2082
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
2083
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
2084
+ continuation?: string | undefined;
2085
+ continuation_anchor?: {
2086
+ id: string;
2087
+ entity_type: "service" | "resource";
2088
+ } | undefined;
2089
+ }[];
2090
+ };
2091
+ }, {
2092
+ callers: {
2093
+ complete: boolean;
2094
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2095
+ frontier: {
2096
+ at: {
2097
+ id: string;
2098
+ entity_type: "service" | "resource";
2099
+ };
2100
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
2101
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
2102
+ continuation?: string | undefined;
2103
+ continuation_anchor?: {
2104
+ id: string;
2105
+ entity_type: "service" | "resource";
2106
+ } | undefined;
2107
+ }[];
2108
+ };
2109
+ dependencies: {
2110
+ complete: boolean;
2111
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2112
+ frontier: {
2113
+ at: {
2114
+ id: string;
2115
+ entity_type: "service" | "resource";
2116
+ };
2117
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
2118
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
2119
+ continuation?: string | undefined;
2120
+ continuation_anchor?: {
2121
+ id: string;
2122
+ entity_type: "service" | "resource";
2123
+ } | undefined;
2124
+ }[];
2125
+ };
2126
+ attachments: {
2127
+ complete: boolean;
2128
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2129
+ frontier: {
2130
+ at: {
2131
+ id: string;
2132
+ entity_type: "service" | "resource";
2133
+ };
2134
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
2135
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
2136
+ continuation?: string | undefined;
2137
+ continuation_anchor?: {
2138
+ id: string;
2139
+ entity_type: "service" | "resource";
2140
+ } | undefined;
2141
+ }[];
2142
+ };
2143
+ }>;
2144
+ applied_limits: z.ZodObject<Record<"relationships" | "dependency_hops" | "dependency_entities" | "dependency_edges" | "fanout" | "callers" | "attachment_steps" | "attachment_entities" | "attachment_edges" | "entities" | "route_subjects" | "route_targets" | "queries" | "timeout_ms" | "metadata_depth" | "metadata_entries" | "metadata_bytes" | "response_bytes" | "containers", z.ZodNumber>, "strict", z.ZodTypeAny, {
2145
+ relationships: number;
2146
+ dependency_hops: number;
2147
+ dependency_entities: number;
2148
+ dependency_edges: number;
2149
+ fanout: number;
2150
+ callers: number;
2151
+ attachment_steps: number;
2152
+ attachment_entities: number;
2153
+ attachment_edges: number;
2154
+ entities: number;
2155
+ route_subjects: number;
2156
+ route_targets: number;
2157
+ queries: number;
2158
+ timeout_ms: number;
2159
+ metadata_depth: number;
2160
+ metadata_entries: number;
2161
+ metadata_bytes: number;
2162
+ response_bytes: number;
2163
+ containers: number;
2164
+ }, {
2165
+ relationships: number;
2166
+ dependency_hops: number;
2167
+ dependency_entities: number;
2168
+ dependency_edges: number;
2169
+ fanout: number;
2170
+ callers: number;
2171
+ attachment_steps: number;
2172
+ attachment_entities: number;
2173
+ attachment_edges: number;
2174
+ entities: number;
2175
+ route_subjects: number;
2176
+ route_targets: number;
2177
+ queries: number;
2178
+ timeout_ms: number;
2179
+ metadata_depth: number;
2180
+ metadata_entries: number;
2181
+ metadata_bytes: number;
2182
+ response_bytes: number;
2183
+ containers: number;
2184
+ }>;
2185
+ }, "strict", z.ZodTypeAny, {
2186
+ relationships: {
2187
+ id: string;
2188
+ attributes: Record<string, unknown>;
2189
+ relation: string;
2190
+ relation_class: "structural" | "associative";
2191
+ from: {
2192
+ id: string;
2193
+ entity_type: "service" | "resource";
2194
+ };
2195
+ to: {
2196
+ id: string;
2197
+ entity_type: "service" | "resource";
2198
+ };
2199
+ metadata_truncated: boolean;
2200
+ attribute_schema_key?: string | undefined;
2201
+ diagnostic_criticality?: "blocking" | "degrading" | "optional" | undefined;
2202
+ }[];
2203
+ topology_version_id: string;
2204
+ scope: {
2205
+ account_id: string;
2206
+ workspace_id: string;
2207
+ };
2208
+ profile: "troubleshoot.v1";
2209
+ anchor: {
2210
+ id: string;
2211
+ entity_type: "service" | "resource";
2212
+ };
2213
+ entities: {
2214
+ attributes: Record<string, unknown>;
2215
+ name: string;
2216
+ ref: {
2217
+ id: string;
2218
+ entity_type: "service" | "resource";
2219
+ };
2220
+ detail: "full" | "reference";
2221
+ metadata_truncated: boolean;
2222
+ provider?: string | undefined;
2223
+ resource_type?: string | undefined;
2224
+ }[];
2225
+ schema_version: "topology.flat.v1";
2226
+ read_window: {
2227
+ started_at: string;
2228
+ completed_at: string;
2229
+ };
2230
+ observation_coverage: "unknown" | "complete" | "partial";
2231
+ evidence_routes: {
2232
+ deployment: {
2233
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
2234
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2235
+ targets: {
2236
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2237
+ target: {
2238
+ id: string;
2239
+ entity_type: "service" | "resource";
2240
+ };
2241
+ access_ref: {
2242
+ provider: string;
2243
+ external_id: string;
2244
+ source_collection: string;
2245
+ };
2246
+ via_relationship_ids: string[];
2247
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
2248
+ query_context: Record<string, unknown>;
2249
+ query_context_status: "complete" | "incomplete" | "not_required";
2250
+ }[];
2251
+ };
2252
+ monitoring: {
2253
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
2254
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2255
+ targets: {
2256
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2257
+ target: {
2258
+ id: string;
2259
+ entity_type: "service" | "resource";
2260
+ };
2261
+ access_ref: {
2262
+ provider: string;
2263
+ external_id: string;
2264
+ source_collection: string;
2265
+ };
2266
+ via_relationship_ids: string[];
2267
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
2268
+ query_context: Record<string, unknown>;
2269
+ query_context_status: "complete" | "incomplete" | "not_required";
2270
+ }[];
2271
+ };
2272
+ subject: {
2273
+ id: string;
2274
+ entity_type: "service" | "resource";
2275
+ };
2276
+ runtime: {
2277
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
2278
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2279
+ targets: {
2280
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2281
+ target: {
2282
+ id: string;
2283
+ entity_type: "service" | "resource";
2284
+ };
2285
+ access_ref: {
2286
+ provider: string;
2287
+ external_id: string;
2288
+ source_collection: string;
2289
+ };
2290
+ via_relationship_ids: string[];
2291
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
2292
+ query_context: Record<string, unknown>;
2293
+ query_context_status: "complete" | "incomplete" | "not_required";
2294
+ }[];
2295
+ };
2296
+ }[];
2297
+ coverage: {
2298
+ callers: {
2299
+ complete: boolean;
2300
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2301
+ frontier: {
2302
+ at: {
2303
+ id: string;
2304
+ entity_type: "service" | "resource";
2305
+ };
2306
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
2307
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
2308
+ continuation?: string | undefined;
2309
+ continuation_anchor?: {
2310
+ id: string;
2311
+ entity_type: "service" | "resource";
2312
+ } | undefined;
2313
+ }[];
2314
+ };
2315
+ dependencies: {
2316
+ complete: boolean;
2317
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2318
+ frontier: {
2319
+ at: {
2320
+ id: string;
2321
+ entity_type: "service" | "resource";
2322
+ };
2323
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
2324
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
2325
+ continuation?: string | undefined;
2326
+ continuation_anchor?: {
2327
+ id: string;
2328
+ entity_type: "service" | "resource";
2329
+ } | undefined;
2330
+ }[];
2331
+ };
2332
+ attachments: {
2333
+ complete: boolean;
2334
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2335
+ frontier: {
2336
+ at: {
2337
+ id: string;
2338
+ entity_type: "service" | "resource";
2339
+ };
2340
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
2341
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
2342
+ continuation?: string | undefined;
2343
+ continuation_anchor?: {
2344
+ id: string;
2345
+ entity_type: "service" | "resource";
2346
+ } | undefined;
2347
+ }[];
2348
+ };
2349
+ };
2350
+ applied_limits: {
2351
+ relationships: number;
2352
+ dependency_hops: number;
2353
+ dependency_entities: number;
2354
+ dependency_edges: number;
2355
+ fanout: number;
2356
+ callers: number;
2357
+ attachment_steps: number;
2358
+ attachment_entities: number;
2359
+ attachment_edges: number;
2360
+ entities: number;
2361
+ route_subjects: number;
2362
+ route_targets: number;
2363
+ queries: number;
2364
+ timeout_ms: number;
2365
+ metadata_depth: number;
2366
+ metadata_entries: number;
2367
+ metadata_bytes: number;
2368
+ response_bytes: number;
2369
+ containers: number;
2370
+ };
2371
+ snapshot?: string | undefined;
2372
+ }, {
2373
+ relationships: {
2374
+ id: string;
2375
+ attributes: Record<string, unknown>;
2376
+ relation: string;
2377
+ relation_class: "structural" | "associative";
2378
+ from: {
2379
+ id: string;
2380
+ entity_type: "service" | "resource";
2381
+ };
2382
+ to: {
2383
+ id: string;
2384
+ entity_type: "service" | "resource";
2385
+ };
2386
+ metadata_truncated: boolean;
2387
+ attribute_schema_key?: string | undefined;
2388
+ diagnostic_criticality?: "blocking" | "degrading" | "optional" | undefined;
2389
+ }[];
2390
+ topology_version_id: string;
2391
+ scope: {
2392
+ account_id: string;
2393
+ workspace_id: string;
2394
+ };
2395
+ profile: "troubleshoot.v1";
2396
+ anchor: {
2397
+ id: string;
2398
+ entity_type: "service" | "resource";
2399
+ };
2400
+ entities: {
2401
+ attributes: Record<string, unknown>;
2402
+ name: string;
2403
+ ref: {
2404
+ id: string;
2405
+ entity_type: "service" | "resource";
2406
+ };
2407
+ detail: "full" | "reference";
2408
+ metadata_truncated: boolean;
2409
+ provider?: string | undefined;
2410
+ resource_type?: string | undefined;
2411
+ }[];
2412
+ schema_version: "topology.flat.v1";
2413
+ read_window: {
2414
+ started_at: string;
2415
+ completed_at: string;
2416
+ };
2417
+ observation_coverage: "unknown" | "complete" | "partial";
2418
+ evidence_routes: {
2419
+ deployment: {
2420
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
2421
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2422
+ targets: {
2423
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2424
+ target: {
2425
+ id: string;
2426
+ entity_type: "service" | "resource";
2427
+ };
2428
+ access_ref: {
2429
+ provider: string;
2430
+ external_id: string;
2431
+ source_collection: string;
2432
+ };
2433
+ via_relationship_ids: string[];
2434
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
2435
+ query_context: Record<string, unknown>;
2436
+ query_context_status: "complete" | "incomplete" | "not_required";
2437
+ }[];
2438
+ };
2439
+ monitoring: {
2440
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
2441
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2442
+ targets: {
2443
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2444
+ target: {
2445
+ id: string;
2446
+ entity_type: "service" | "resource";
2447
+ };
2448
+ access_ref: {
2449
+ provider: string;
2450
+ external_id: string;
2451
+ source_collection: string;
2452
+ };
2453
+ via_relationship_ids: string[];
2454
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
2455
+ query_context: Record<string, unknown>;
2456
+ query_context_status: "complete" | "incomplete" | "not_required";
2457
+ }[];
2458
+ };
2459
+ subject: {
2460
+ id: string;
2461
+ entity_type: "service" | "resource";
2462
+ };
2463
+ runtime: {
2464
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
2465
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2466
+ targets: {
2467
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2468
+ target: {
2469
+ id: string;
2470
+ entity_type: "service" | "resource";
2471
+ };
2472
+ access_ref: {
2473
+ provider: string;
2474
+ external_id: string;
2475
+ source_collection: string;
2476
+ };
2477
+ via_relationship_ids: string[];
2478
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
2479
+ query_context: Record<string, unknown>;
2480
+ query_context_status: "complete" | "incomplete" | "not_required";
2481
+ }[];
2482
+ };
2483
+ }[];
2484
+ coverage: {
2485
+ callers: {
2486
+ complete: boolean;
2487
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2488
+ frontier: {
2489
+ at: {
2490
+ id: string;
2491
+ entity_type: "service" | "resource";
2492
+ };
2493
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
2494
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
2495
+ continuation?: string | undefined;
2496
+ continuation_anchor?: {
2497
+ id: string;
2498
+ entity_type: "service" | "resource";
2499
+ } | undefined;
2500
+ }[];
2501
+ };
2502
+ dependencies: {
2503
+ complete: boolean;
2504
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2505
+ frontier: {
2506
+ at: {
2507
+ id: string;
2508
+ entity_type: "service" | "resource";
2509
+ };
2510
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
2511
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
2512
+ continuation?: string | undefined;
2513
+ continuation_anchor?: {
2514
+ id: string;
2515
+ entity_type: "service" | "resource";
2516
+ } | undefined;
2517
+ }[];
2518
+ };
2519
+ attachments: {
2520
+ complete: boolean;
2521
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2522
+ frontier: {
2523
+ at: {
2524
+ id: string;
2525
+ entity_type: "service" | "resource";
2526
+ };
2527
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
2528
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
2529
+ continuation?: string | undefined;
2530
+ continuation_anchor?: {
2531
+ id: string;
2532
+ entity_type: "service" | "resource";
2533
+ } | undefined;
2534
+ }[];
2535
+ };
2536
+ };
2537
+ applied_limits: {
2538
+ relationships: number;
2539
+ dependency_hops: number;
2540
+ dependency_entities: number;
2541
+ dependency_edges: number;
2542
+ fanout: number;
2543
+ callers: number;
2544
+ attachment_steps: number;
2545
+ attachment_entities: number;
2546
+ attachment_edges: number;
2547
+ entities: number;
2548
+ route_subjects: number;
2549
+ route_targets: number;
2550
+ queries: number;
2551
+ timeout_ms: number;
2552
+ metadata_depth: number;
2553
+ metadata_entries: number;
2554
+ metadata_bytes: number;
2555
+ response_bytes: number;
2556
+ containers: number;
2557
+ };
2558
+ snapshot?: string | undefined;
2559
+ }>, {
2560
+ relationships: {
2561
+ id: string;
2562
+ attributes: Record<string, unknown>;
2563
+ relation: string;
2564
+ relation_class: "structural" | "associative";
2565
+ from: {
2566
+ id: string;
2567
+ entity_type: "service" | "resource";
2568
+ };
2569
+ to: {
2570
+ id: string;
2571
+ entity_type: "service" | "resource";
2572
+ };
2573
+ metadata_truncated: boolean;
2574
+ attribute_schema_key?: string | undefined;
2575
+ diagnostic_criticality?: "blocking" | "degrading" | "optional" | undefined;
2576
+ }[];
2577
+ topology_version_id: string;
2578
+ scope: {
2579
+ account_id: string;
2580
+ workspace_id: string;
2581
+ };
2582
+ profile: "troubleshoot.v1";
2583
+ anchor: {
2584
+ id: string;
2585
+ entity_type: "service" | "resource";
2586
+ };
2587
+ entities: {
2588
+ attributes: Record<string, unknown>;
2589
+ name: string;
2590
+ ref: {
2591
+ id: string;
2592
+ entity_type: "service" | "resource";
2593
+ };
2594
+ detail: "full" | "reference";
2595
+ metadata_truncated: boolean;
2596
+ provider?: string | undefined;
2597
+ resource_type?: string | undefined;
2598
+ }[];
2599
+ schema_version: "topology.flat.v1";
2600
+ read_window: {
2601
+ started_at: string;
2602
+ completed_at: string;
2603
+ };
2604
+ observation_coverage: "unknown" | "complete" | "partial";
2605
+ evidence_routes: {
2606
+ deployment: {
2607
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
2608
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2609
+ targets: {
2610
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2611
+ target: {
2612
+ id: string;
2613
+ entity_type: "service" | "resource";
2614
+ };
2615
+ access_ref: {
2616
+ provider: string;
2617
+ external_id: string;
2618
+ source_collection: string;
2619
+ };
2620
+ via_relationship_ids: string[];
2621
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
2622
+ query_context: Record<string, unknown>;
2623
+ query_context_status: "complete" | "incomplete" | "not_required";
2624
+ }[];
2625
+ };
2626
+ monitoring: {
2627
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
2628
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2629
+ targets: {
2630
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2631
+ target: {
2632
+ id: string;
2633
+ entity_type: "service" | "resource";
2634
+ };
2635
+ access_ref: {
2636
+ provider: string;
2637
+ external_id: string;
2638
+ source_collection: string;
2639
+ };
2640
+ via_relationship_ids: string[];
2641
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
2642
+ query_context: Record<string, unknown>;
2643
+ query_context_status: "complete" | "incomplete" | "not_required";
2644
+ }[];
2645
+ };
2646
+ subject: {
2647
+ id: string;
2648
+ entity_type: "service" | "resource";
2649
+ };
2650
+ runtime: {
2651
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
2652
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2653
+ targets: {
2654
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2655
+ target: {
2656
+ id: string;
2657
+ entity_type: "service" | "resource";
2658
+ };
2659
+ access_ref: {
2660
+ provider: string;
2661
+ external_id: string;
2662
+ source_collection: string;
2663
+ };
2664
+ via_relationship_ids: string[];
2665
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
2666
+ query_context: Record<string, unknown>;
2667
+ query_context_status: "complete" | "incomplete" | "not_required";
2668
+ }[];
2669
+ };
2670
+ }[];
2671
+ coverage: {
2672
+ callers: {
2673
+ complete: boolean;
2674
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2675
+ frontier: {
2676
+ at: {
2677
+ id: string;
2678
+ entity_type: "service" | "resource";
2679
+ };
2680
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
2681
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
2682
+ continuation?: string | undefined;
2683
+ continuation_anchor?: {
2684
+ id: string;
2685
+ entity_type: "service" | "resource";
2686
+ } | undefined;
2687
+ }[];
2688
+ };
2689
+ dependencies: {
2690
+ complete: boolean;
2691
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2692
+ frontier: {
2693
+ at: {
2694
+ id: string;
2695
+ entity_type: "service" | "resource";
2696
+ };
2697
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
2698
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
2699
+ continuation?: string | undefined;
2700
+ continuation_anchor?: {
2701
+ id: string;
2702
+ entity_type: "service" | "resource";
2703
+ } | undefined;
2704
+ }[];
2705
+ };
2706
+ attachments: {
2707
+ complete: boolean;
2708
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2709
+ frontier: {
2710
+ at: {
2711
+ id: string;
2712
+ entity_type: "service" | "resource";
2713
+ };
2714
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
2715
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
2716
+ continuation?: string | undefined;
2717
+ continuation_anchor?: {
2718
+ id: string;
2719
+ entity_type: "service" | "resource";
2720
+ } | undefined;
2721
+ }[];
2722
+ };
2723
+ };
2724
+ applied_limits: {
2725
+ relationships: number;
2726
+ dependency_hops: number;
2727
+ dependency_entities: number;
2728
+ dependency_edges: number;
2729
+ fanout: number;
2730
+ callers: number;
2731
+ attachment_steps: number;
2732
+ attachment_entities: number;
2733
+ attachment_edges: number;
2734
+ entities: number;
2735
+ route_subjects: number;
2736
+ route_targets: number;
2737
+ queries: number;
2738
+ timeout_ms: number;
2739
+ metadata_depth: number;
2740
+ metadata_entries: number;
2741
+ metadata_bytes: number;
2742
+ response_bytes: number;
2743
+ containers: number;
2744
+ };
2745
+ snapshot?: string | undefined;
2746
+ }, {
2747
+ relationships: {
2748
+ id: string;
2749
+ attributes: Record<string, unknown>;
2750
+ relation: string;
2751
+ relation_class: "structural" | "associative";
2752
+ from: {
2753
+ id: string;
2754
+ entity_type: "service" | "resource";
2755
+ };
2756
+ to: {
2757
+ id: string;
2758
+ entity_type: "service" | "resource";
2759
+ };
2760
+ metadata_truncated: boolean;
2761
+ attribute_schema_key?: string | undefined;
2762
+ diagnostic_criticality?: "blocking" | "degrading" | "optional" | undefined;
2763
+ }[];
2764
+ topology_version_id: string;
2765
+ scope: {
2766
+ account_id: string;
2767
+ workspace_id: string;
2768
+ };
2769
+ profile: "troubleshoot.v1";
2770
+ anchor: {
2771
+ id: string;
2772
+ entity_type: "service" | "resource";
2773
+ };
2774
+ entities: {
2775
+ attributes: Record<string, unknown>;
2776
+ name: string;
2777
+ ref: {
2778
+ id: string;
2779
+ entity_type: "service" | "resource";
2780
+ };
2781
+ detail: "full" | "reference";
2782
+ metadata_truncated: boolean;
2783
+ provider?: string | undefined;
2784
+ resource_type?: string | undefined;
2785
+ }[];
2786
+ schema_version: "topology.flat.v1";
2787
+ read_window: {
2788
+ started_at: string;
2789
+ completed_at: string;
2790
+ };
2791
+ observation_coverage: "unknown" | "complete" | "partial";
2792
+ evidence_routes: {
2793
+ deployment: {
2794
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
2795
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2796
+ targets: {
2797
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2798
+ target: {
2799
+ id: string;
2800
+ entity_type: "service" | "resource";
2801
+ };
2802
+ access_ref: {
2803
+ provider: string;
2804
+ external_id: string;
2805
+ source_collection: string;
2806
+ };
2807
+ via_relationship_ids: string[];
2808
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
2809
+ query_context: Record<string, unknown>;
2810
+ query_context_status: "complete" | "incomplete" | "not_required";
2811
+ }[];
2812
+ };
2813
+ monitoring: {
2814
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
2815
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2816
+ targets: {
2817
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2818
+ target: {
2819
+ id: string;
2820
+ entity_type: "service" | "resource";
2821
+ };
2822
+ access_ref: {
2823
+ provider: string;
2824
+ external_id: string;
2825
+ source_collection: string;
2826
+ };
2827
+ via_relationship_ids: string[];
2828
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
2829
+ query_context: Record<string, unknown>;
2830
+ query_context_status: "complete" | "incomplete" | "not_required";
2831
+ }[];
2832
+ };
2833
+ subject: {
2834
+ id: string;
2835
+ entity_type: "service" | "resource";
2836
+ };
2837
+ runtime: {
2838
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
2839
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2840
+ targets: {
2841
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2842
+ target: {
2843
+ id: string;
2844
+ entity_type: "service" | "resource";
2845
+ };
2846
+ access_ref: {
2847
+ provider: string;
2848
+ external_id: string;
2849
+ source_collection: string;
2850
+ };
2851
+ via_relationship_ids: string[];
2852
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
2853
+ query_context: Record<string, unknown>;
2854
+ query_context_status: "complete" | "incomplete" | "not_required";
2855
+ }[];
2856
+ };
2857
+ }[];
2858
+ coverage: {
2859
+ callers: {
2860
+ complete: boolean;
2861
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2862
+ frontier: {
2863
+ at: {
2864
+ id: string;
2865
+ entity_type: "service" | "resource";
2866
+ };
2867
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
2868
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
2869
+ continuation?: string | undefined;
2870
+ continuation_anchor?: {
2871
+ id: string;
2872
+ entity_type: "service" | "resource";
2873
+ } | undefined;
2874
+ }[];
2875
+ };
2876
+ dependencies: {
2877
+ complete: boolean;
2878
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2879
+ frontier: {
2880
+ at: {
2881
+ id: string;
2882
+ entity_type: "service" | "resource";
2883
+ };
2884
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
2885
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
2886
+ continuation?: string | undefined;
2887
+ continuation_anchor?: {
2888
+ id: string;
2889
+ entity_type: "service" | "resource";
2890
+ } | undefined;
2891
+ }[];
2892
+ };
2893
+ attachments: {
2894
+ complete: boolean;
2895
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2896
+ frontier: {
2897
+ at: {
2898
+ id: string;
2899
+ entity_type: "service" | "resource";
2900
+ };
2901
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
2902
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
2903
+ continuation?: string | undefined;
2904
+ continuation_anchor?: {
2905
+ id: string;
2906
+ entity_type: "service" | "resource";
2907
+ } | undefined;
2908
+ }[];
2909
+ };
2910
+ };
2911
+ applied_limits: {
2912
+ relationships: number;
2913
+ dependency_hops: number;
2914
+ dependency_entities: number;
2915
+ dependency_edges: number;
2916
+ fanout: number;
2917
+ callers: number;
2918
+ attachment_steps: number;
2919
+ attachment_entities: number;
2920
+ attachment_edges: number;
2921
+ entities: number;
2922
+ route_subjects: number;
2923
+ route_targets: number;
2924
+ queries: number;
2925
+ timeout_ms: number;
2926
+ metadata_depth: number;
2927
+ metadata_entries: number;
2928
+ metadata_bytes: number;
2929
+ response_bytes: number;
2930
+ containers: number;
2931
+ };
2932
+ snapshot?: string | undefined;
2933
+ }>, {
2934
+ relationships: {
2935
+ id: string;
2936
+ attributes: Record<string, unknown>;
2937
+ relation: string;
2938
+ relation_class: "structural" | "associative";
2939
+ from: {
2940
+ id: string;
2941
+ entity_type: "service" | "resource";
2942
+ };
2943
+ to: {
2944
+ id: string;
2945
+ entity_type: "service" | "resource";
2946
+ };
2947
+ metadata_truncated: boolean;
2948
+ attribute_schema_key?: string | undefined;
2949
+ diagnostic_criticality?: "blocking" | "degrading" | "optional" | undefined;
2950
+ }[];
2951
+ topology_version_id: string;
2952
+ scope: {
2953
+ account_id: string;
2954
+ workspace_id: string;
2955
+ };
2956
+ profile: "troubleshoot.v1";
2957
+ anchor: {
2958
+ id: string;
2959
+ entity_type: "service" | "resource";
2960
+ };
2961
+ entities: {
2962
+ attributes: Record<string, unknown>;
2963
+ name: string;
2964
+ ref: {
2965
+ id: string;
2966
+ entity_type: "service" | "resource";
2967
+ };
2968
+ detail: "full" | "reference";
2969
+ metadata_truncated: boolean;
2970
+ provider?: string | undefined;
2971
+ resource_type?: string | undefined;
2972
+ }[];
2973
+ schema_version: "topology.flat.v1";
2974
+ read_window: {
2975
+ started_at: string;
2976
+ completed_at: string;
2977
+ };
2978
+ observation_coverage: "unknown" | "complete" | "partial";
2979
+ evidence_routes: {
2980
+ deployment: {
2981
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
2982
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2983
+ targets: {
2984
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
2985
+ target: {
2986
+ id: string;
2987
+ entity_type: "service" | "resource";
2988
+ };
2989
+ access_ref: {
2990
+ provider: string;
2991
+ external_id: string;
2992
+ source_collection: string;
2993
+ };
2994
+ via_relationship_ids: string[];
2995
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
2996
+ query_context: Record<string, unknown>;
2997
+ query_context_status: "complete" | "incomplete" | "not_required";
2998
+ }[];
2999
+ };
3000
+ monitoring: {
3001
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
3002
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
3003
+ targets: {
3004
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
3005
+ target: {
3006
+ id: string;
3007
+ entity_type: "service" | "resource";
3008
+ };
3009
+ access_ref: {
3010
+ provider: string;
3011
+ external_id: string;
3012
+ source_collection: string;
3013
+ };
3014
+ via_relationship_ids: string[];
3015
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
3016
+ query_context: Record<string, unknown>;
3017
+ query_context_status: "complete" | "incomplete" | "not_required";
3018
+ }[];
3019
+ };
3020
+ subject: {
3021
+ id: string;
3022
+ entity_type: "service" | "resource";
3023
+ };
3024
+ runtime: {
3025
+ status: "ambiguous" | "mapped" | "unmapped" | "lookup_incomplete" | "not_applicable";
3026
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
3027
+ targets: {
3028
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
3029
+ target: {
3030
+ id: string;
3031
+ entity_type: "service" | "resource";
3032
+ };
3033
+ access_ref: {
3034
+ provider: string;
3035
+ external_id: string;
3036
+ source_collection: string;
3037
+ };
3038
+ via_relationship_ids: string[];
3039
+ mapping_source: "access_ref" | "relationship_path" | "root_ref";
3040
+ query_context: Record<string, unknown>;
3041
+ query_context_status: "complete" | "incomplete" | "not_required";
3042
+ }[];
3043
+ };
3044
+ }[];
3045
+ coverage: {
3046
+ callers: {
3047
+ complete: boolean;
3048
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
3049
+ frontier: {
3050
+ at: {
3051
+ id: string;
3052
+ entity_type: "service" | "resource";
3053
+ };
3054
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
3055
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
3056
+ continuation?: string | undefined;
3057
+ continuation_anchor?: {
3058
+ id: string;
3059
+ entity_type: "service" | "resource";
3060
+ } | undefined;
3061
+ }[];
3062
+ };
3063
+ dependencies: {
3064
+ complete: boolean;
3065
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
3066
+ frontier: {
3067
+ at: {
3068
+ id: string;
3069
+ entity_type: "service" | "resource";
3070
+ };
3071
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
3072
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
3073
+ continuation?: string | undefined;
3074
+ continuation_anchor?: {
3075
+ id: string;
3076
+ entity_type: "service" | "resource";
3077
+ } | undefined;
3078
+ }[];
3079
+ };
3080
+ attachments: {
3081
+ complete: boolean;
3082
+ reasons: ("unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired")[];
3083
+ frontier: {
3084
+ at: {
3085
+ id: string;
3086
+ entity_type: "service" | "resource";
3087
+ };
3088
+ reason: "unsupported_provider" | "not_requested" | "hop_limit" | "entity_limit" | "edge_limit" | "fanout_limit" | "attachment_limit" | "target_limit" | "payload_limit" | "metadata_limit" | "query_limit" | "timeout" | "source_incomplete" | "selector_conflict" | "selector_missing" | "invalid_access_ref" | "ambiguous_access" | "snapshot_expired";
3089
+ lane: "deployment" | "monitoring" | "runtime" | "dependency" | "caller";
3090
+ continuation?: string | undefined;
3091
+ continuation_anchor?: {
3092
+ id: string;
3093
+ entity_type: "service" | "resource";
3094
+ } | undefined;
3095
+ }[];
3096
+ };
3097
+ };
3098
+ applied_limits: {
3099
+ relationships: number;
3100
+ dependency_hops: number;
3101
+ dependency_entities: number;
3102
+ dependency_edges: number;
3103
+ fanout: number;
3104
+ callers: number;
3105
+ attachment_steps: number;
3106
+ attachment_entities: number;
3107
+ attachment_edges: number;
3108
+ entities: number;
3109
+ route_subjects: number;
3110
+ route_targets: number;
3111
+ queries: number;
3112
+ timeout_ms: number;
3113
+ metadata_depth: number;
3114
+ metadata_entries: number;
3115
+ metadata_bytes: number;
3116
+ response_bytes: number;
3117
+ containers: number;
3118
+ };
3119
+ snapshot?: string | undefined;
3120
+ }, unknown>;
3121
+ export type FlatTopologyResponse = z.infer<typeof flatTopologyResponseSchema>;
3122
+ export type FlatEntity = z.infer<typeof flatEntitySchema>;
3123
+ export type FlatRelationship = z.infer<typeof flatRelationshipSchema>;
3124
+ export type FlatEvidenceRoute = z.infer<typeof flatEvidenceRouteSchema>;
3125
+ export type FlatRouteTarget = z.infer<typeof flatRouteTargetSchema>;
3126
+ export type FlatCoverageReason = z.infer<typeof reason>;
3127
+ export {};