@scoutflo/topology-contracts 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/dist/src/correlation/candidate.d.ts +310 -0
- package/dist/src/correlation/candidate.js +31 -0
- package/dist/src/correlation/candidate.js.map +1 -0
- package/dist/src/correlation/index.d.ts +2 -0
- package/dist/src/correlation/index.js +19 -0
- package/dist/src/correlation/index.js.map +1 -0
- package/dist/src/correlation/rule.d.ts +80 -0
- package/dist/src/correlation/rule.js +29 -0
- package/dist/src/correlation/rule.js.map +1 -0
- package/dist/src/families/aws.d.ts +13 -0
- package/dist/src/families/aws.js +24 -0
- package/dist/src/families/aws.js.map +1 -0
- package/dist/src/families/index.d.ts +6 -0
- package/dist/src/families/index.js +30 -0
- package/dist/src/families/index.js.map +1 -0
- package/dist/src/families/integrations.d.ts +7 -0
- package/dist/src/families/integrations.js +12 -0
- package/dist/src/families/integrations.js.map +1 -0
- package/dist/src/families/kubernetes.d.ts +14 -0
- package/dist/src/families/kubernetes.js +26 -0
- package/dist/src/families/kubernetes.js.map +1 -0
- package/dist/src/index.d.ts +8 -0
- package/dist/src/index.js +48 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/providers/aliases.d.ts +12 -0
- package/dist/src/providers/aliases.js +26 -0
- package/dist/src/providers/aliases.js.map +1 -0
- package/dist/src/providers/index.d.ts +2 -0
- package/dist/src/providers/index.js +19 -0
- package/dist/src/providers/index.js.map +1 -0
- package/dist/src/providers/providers.d.ts +30 -0
- package/dist/src/providers/providers.js +58 -0
- package/dist/src/providers/providers.js.map +1 -0
- package/dist/src/schemas/index.d.ts +5 -0
- package/dist/src/schemas/index.js +38 -0
- package/dist/src/schemas/index.js.map +1 -0
- package/dist/src/source-sync/candidate.d.ts +967 -0
- package/dist/src/source-sync/candidate.js +84 -0
- package/dist/src/source-sync/candidate.js.map +1 -0
- package/dist/src/source-sync/capability.d.ts +64 -0
- package/dist/src/source-sync/capability.js +20 -0
- package/dist/src/source-sync/capability.js.map +1 -0
- package/dist/src/source-sync/common.d.ts +16 -0
- package/dist/src/source-sync/common.js +14 -0
- package/dist/src/source-sync/common.js.map +1 -0
- package/dist/src/source-sync/completeness.d.ts +28 -0
- package/dist/src/source-sync/completeness.js +21 -0
- package/dist/src/source-sync/completeness.js.map +1 -0
- package/dist/src/source-sync/index.d.ts +6 -0
- package/dist/src/source-sync/index.js +23 -0
- package/dist/src/source-sync/index.js.map +1 -0
- package/dist/src/source-sync/intent.d.ts +621 -0
- package/dist/src/source-sync/intent.js +31 -0
- package/dist/src/source-sync/intent.js.map +1 -0
- package/dist/src/source-sync/scope.d.ts +21 -0
- package/dist/src/source-sync/scope.js +14 -0
- package/dist/src/source-sync/scope.js.map +1 -0
- package/dist/src/source-sync/warning.d.ts +25 -0
- package/dist/src/source-sync/warning.js +19 -0
- package/dist/src/source-sync/warning.js.map +1 -0
- package/dist/src/topology/index.d.ts +2 -0
- package/dist/src/topology/index.js +19 -0
- package/dist/src/topology/index.js.map +1 -0
- package/dist/src/topology/relationTypes.d.ts +15 -0
- package/dist/src/topology/relationTypes.js +28 -0
- package/dist/src/topology/relationTypes.js.map +1 -0
- package/dist/src/topology/resourceTypes.d.ts +22 -0
- package/dist/src/topology/resourceTypes.js +42 -0
- package/dist/src/topology/resourceTypes.js.map +1 -0
- package/dist/test/contracts.test.d.ts +1 -0
- package/dist/test/contracts.test.js +175 -0
- package/dist/test/contracts.test.js.map +1 -0
- package/package.json +34 -0
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# @scoutflo/topology-contracts
|
|
2
|
+
|
|
3
|
+
Pure shared topology vocabulary and Zod boundary schemas for Scoutflo topology workflows.
|
|
4
|
+
|
|
5
|
+
This package owns:
|
|
6
|
+
|
|
7
|
+
- topology provider constants and explicit compatibility aliases;
|
|
8
|
+
- AWS, Kubernetes, and integration topology family constants;
|
|
9
|
+
- source-sync capability, intent, scope, completeness, warning, and candidate DTO schemas;
|
|
10
|
+
- topology correlation rule metadata and candidate DTO schemas;
|
|
11
|
+
- small topology resource and relation vocabulary constants useful at contract boundaries.
|
|
12
|
+
|
|
13
|
+
Gateway remains the runtime authority for provider discovery, credential resolution, dry-run/apply, lifecycle, reconciliation, persistence, audit, provider clients, source-specific payload parsing, and topology correlation rule execution.
|
|
14
|
+
|
|
15
|
+
`k8s` is the persisted Kubernetes provider key. `kubernetes` is accepted only through the explicit alias normalization helper.
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const topologyCorrelationDecisionSchema: z.ZodEnum<["ready", "warning_only", "ambiguous", "blocked", "degraded", "unresolved"]>;
|
|
3
|
+
export declare const topologyCorrelationCandidateSchema: z.ZodObject<{
|
|
4
|
+
candidate_key: z.ZodString;
|
|
5
|
+
rule_key: z.ZodString;
|
|
6
|
+
rule_version: z.ZodString;
|
|
7
|
+
from: z.ZodObject<{
|
|
8
|
+
type: z.ZodEnum<["service", "resource"]>;
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
type: "service" | "resource";
|
|
12
|
+
id: string;
|
|
13
|
+
}, {
|
|
14
|
+
type: "service" | "resource";
|
|
15
|
+
id: string;
|
|
16
|
+
}>;
|
|
17
|
+
to: z.ZodObject<{
|
|
18
|
+
type: z.ZodEnum<["service", "resource"]>;
|
|
19
|
+
id: z.ZodString;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
type: "service" | "resource";
|
|
22
|
+
id: string;
|
|
23
|
+
}, {
|
|
24
|
+
type: "service" | "resource";
|
|
25
|
+
id: string;
|
|
26
|
+
}>;
|
|
27
|
+
relation: z.ZodString;
|
|
28
|
+
canonical_key: z.ZodString;
|
|
29
|
+
semantic_key: z.ZodString;
|
|
30
|
+
confidence: z.ZodObject<{
|
|
31
|
+
score: z.ZodNumber;
|
|
32
|
+
source: z.ZodOptional<z.ZodEnum<["source_api", "telemetry", "heuristic", "manual", "ai"]>>;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
score: number;
|
|
35
|
+
source?: "source_api" | "telemetry" | "heuristic" | "manual" | "ai" | undefined;
|
|
36
|
+
}, {
|
|
37
|
+
score: number;
|
|
38
|
+
source?: "source_api" | "telemetry" | "heuristic" | "manual" | "ai" | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
41
|
+
type: z.ZodString;
|
|
42
|
+
ref: z.ZodString;
|
|
43
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
44
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
45
|
+
facts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
46
|
+
key: z.ZodString;
|
|
47
|
+
value: z.ZodString;
|
|
48
|
+
sourcePath: z.ZodString;
|
|
49
|
+
confidence: z.ZodNumber;
|
|
50
|
+
kind: z.ZodEnum<["label", "tag", "annotation", "provider_identity", "resource_hint", "text_derived", "time", "rule", "query", "trace", "metric", "log"]>;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
value: string;
|
|
53
|
+
key: string;
|
|
54
|
+
sourcePath: string;
|
|
55
|
+
confidence: number;
|
|
56
|
+
kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time" | "rule" | "query" | "trace" | "metric" | "log";
|
|
57
|
+
}, {
|
|
58
|
+
value: string;
|
|
59
|
+
key: string;
|
|
60
|
+
sourcePath: string;
|
|
61
|
+
confidence: number;
|
|
62
|
+
kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time" | "rule" | "query" | "trace" | "metric" | "log";
|
|
63
|
+
}>, "many">>;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
type: string;
|
|
66
|
+
ref: string;
|
|
67
|
+
sourcePath?: string | undefined;
|
|
68
|
+
summary?: string | undefined;
|
|
69
|
+
facts?: {
|
|
70
|
+
value: string;
|
|
71
|
+
key: string;
|
|
72
|
+
sourcePath: string;
|
|
73
|
+
confidence: number;
|
|
74
|
+
kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time" | "rule" | "query" | "trace" | "metric" | "log";
|
|
75
|
+
}[] | undefined;
|
|
76
|
+
}, {
|
|
77
|
+
type: string;
|
|
78
|
+
ref: string;
|
|
79
|
+
sourcePath?: string | undefined;
|
|
80
|
+
summary?: string | undefined;
|
|
81
|
+
facts?: {
|
|
82
|
+
value: string;
|
|
83
|
+
key: string;
|
|
84
|
+
sourcePath: string;
|
|
85
|
+
confidence: number;
|
|
86
|
+
kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time" | "rule" | "query" | "trace" | "metric" | "log";
|
|
87
|
+
}[] | undefined;
|
|
88
|
+
}>, "many">;
|
|
89
|
+
decision: z.ZodEnum<["ready", "warning_only", "ambiguous", "blocked", "degraded", "unresolved"]>;
|
|
90
|
+
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
91
|
+
code: z.ZodString;
|
|
92
|
+
message: z.ZodString;
|
|
93
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
code: string;
|
|
96
|
+
message: string;
|
|
97
|
+
details?: Record<string, unknown> | undefined;
|
|
98
|
+
}, {
|
|
99
|
+
code: string;
|
|
100
|
+
message: string;
|
|
101
|
+
details?: Record<string, unknown> | undefined;
|
|
102
|
+
}>, "many">>;
|
|
103
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
104
|
+
source_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
105
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
106
|
+
candidate_key: z.ZodString;
|
|
107
|
+
rule_key: z.ZodString;
|
|
108
|
+
rule_version: z.ZodString;
|
|
109
|
+
from: z.ZodObject<{
|
|
110
|
+
type: z.ZodEnum<["service", "resource"]>;
|
|
111
|
+
id: z.ZodString;
|
|
112
|
+
}, "strip", z.ZodTypeAny, {
|
|
113
|
+
type: "service" | "resource";
|
|
114
|
+
id: string;
|
|
115
|
+
}, {
|
|
116
|
+
type: "service" | "resource";
|
|
117
|
+
id: string;
|
|
118
|
+
}>;
|
|
119
|
+
to: z.ZodObject<{
|
|
120
|
+
type: z.ZodEnum<["service", "resource"]>;
|
|
121
|
+
id: z.ZodString;
|
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
|
123
|
+
type: "service" | "resource";
|
|
124
|
+
id: string;
|
|
125
|
+
}, {
|
|
126
|
+
type: "service" | "resource";
|
|
127
|
+
id: string;
|
|
128
|
+
}>;
|
|
129
|
+
relation: z.ZodString;
|
|
130
|
+
canonical_key: z.ZodString;
|
|
131
|
+
semantic_key: z.ZodString;
|
|
132
|
+
confidence: z.ZodObject<{
|
|
133
|
+
score: z.ZodNumber;
|
|
134
|
+
source: z.ZodOptional<z.ZodEnum<["source_api", "telemetry", "heuristic", "manual", "ai"]>>;
|
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
|
+
score: number;
|
|
137
|
+
source?: "source_api" | "telemetry" | "heuristic" | "manual" | "ai" | undefined;
|
|
138
|
+
}, {
|
|
139
|
+
score: number;
|
|
140
|
+
source?: "source_api" | "telemetry" | "heuristic" | "manual" | "ai" | undefined;
|
|
141
|
+
}>;
|
|
142
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
143
|
+
type: z.ZodString;
|
|
144
|
+
ref: z.ZodString;
|
|
145
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
146
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
147
|
+
facts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
148
|
+
key: z.ZodString;
|
|
149
|
+
value: z.ZodString;
|
|
150
|
+
sourcePath: z.ZodString;
|
|
151
|
+
confidence: z.ZodNumber;
|
|
152
|
+
kind: z.ZodEnum<["label", "tag", "annotation", "provider_identity", "resource_hint", "text_derived", "time", "rule", "query", "trace", "metric", "log"]>;
|
|
153
|
+
}, "strip", z.ZodTypeAny, {
|
|
154
|
+
value: string;
|
|
155
|
+
key: string;
|
|
156
|
+
sourcePath: string;
|
|
157
|
+
confidence: number;
|
|
158
|
+
kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time" | "rule" | "query" | "trace" | "metric" | "log";
|
|
159
|
+
}, {
|
|
160
|
+
value: string;
|
|
161
|
+
key: string;
|
|
162
|
+
sourcePath: string;
|
|
163
|
+
confidence: number;
|
|
164
|
+
kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time" | "rule" | "query" | "trace" | "metric" | "log";
|
|
165
|
+
}>, "many">>;
|
|
166
|
+
}, "strip", z.ZodTypeAny, {
|
|
167
|
+
type: string;
|
|
168
|
+
ref: string;
|
|
169
|
+
sourcePath?: string | undefined;
|
|
170
|
+
summary?: string | undefined;
|
|
171
|
+
facts?: {
|
|
172
|
+
value: string;
|
|
173
|
+
key: string;
|
|
174
|
+
sourcePath: string;
|
|
175
|
+
confidence: number;
|
|
176
|
+
kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time" | "rule" | "query" | "trace" | "metric" | "log";
|
|
177
|
+
}[] | undefined;
|
|
178
|
+
}, {
|
|
179
|
+
type: string;
|
|
180
|
+
ref: string;
|
|
181
|
+
sourcePath?: string | undefined;
|
|
182
|
+
summary?: string | undefined;
|
|
183
|
+
facts?: {
|
|
184
|
+
value: string;
|
|
185
|
+
key: string;
|
|
186
|
+
sourcePath: string;
|
|
187
|
+
confidence: number;
|
|
188
|
+
kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time" | "rule" | "query" | "trace" | "metric" | "log";
|
|
189
|
+
}[] | undefined;
|
|
190
|
+
}>, "many">;
|
|
191
|
+
decision: z.ZodEnum<["ready", "warning_only", "ambiguous", "blocked", "degraded", "unresolved"]>;
|
|
192
|
+
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
193
|
+
code: z.ZodString;
|
|
194
|
+
message: z.ZodString;
|
|
195
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
196
|
+
}, "strip", z.ZodTypeAny, {
|
|
197
|
+
code: string;
|
|
198
|
+
message: string;
|
|
199
|
+
details?: Record<string, unknown> | undefined;
|
|
200
|
+
}, {
|
|
201
|
+
code: string;
|
|
202
|
+
message: string;
|
|
203
|
+
details?: Record<string, unknown> | undefined;
|
|
204
|
+
}>, "many">>;
|
|
205
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
206
|
+
source_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
207
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
208
|
+
candidate_key: z.ZodString;
|
|
209
|
+
rule_key: z.ZodString;
|
|
210
|
+
rule_version: z.ZodString;
|
|
211
|
+
from: z.ZodObject<{
|
|
212
|
+
type: z.ZodEnum<["service", "resource"]>;
|
|
213
|
+
id: z.ZodString;
|
|
214
|
+
}, "strip", z.ZodTypeAny, {
|
|
215
|
+
type: "service" | "resource";
|
|
216
|
+
id: string;
|
|
217
|
+
}, {
|
|
218
|
+
type: "service" | "resource";
|
|
219
|
+
id: string;
|
|
220
|
+
}>;
|
|
221
|
+
to: z.ZodObject<{
|
|
222
|
+
type: z.ZodEnum<["service", "resource"]>;
|
|
223
|
+
id: z.ZodString;
|
|
224
|
+
}, "strip", z.ZodTypeAny, {
|
|
225
|
+
type: "service" | "resource";
|
|
226
|
+
id: string;
|
|
227
|
+
}, {
|
|
228
|
+
type: "service" | "resource";
|
|
229
|
+
id: string;
|
|
230
|
+
}>;
|
|
231
|
+
relation: z.ZodString;
|
|
232
|
+
canonical_key: z.ZodString;
|
|
233
|
+
semantic_key: z.ZodString;
|
|
234
|
+
confidence: z.ZodObject<{
|
|
235
|
+
score: z.ZodNumber;
|
|
236
|
+
source: z.ZodOptional<z.ZodEnum<["source_api", "telemetry", "heuristic", "manual", "ai"]>>;
|
|
237
|
+
}, "strip", z.ZodTypeAny, {
|
|
238
|
+
score: number;
|
|
239
|
+
source?: "source_api" | "telemetry" | "heuristic" | "manual" | "ai" | undefined;
|
|
240
|
+
}, {
|
|
241
|
+
score: number;
|
|
242
|
+
source?: "source_api" | "telemetry" | "heuristic" | "manual" | "ai" | undefined;
|
|
243
|
+
}>;
|
|
244
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
245
|
+
type: z.ZodString;
|
|
246
|
+
ref: z.ZodString;
|
|
247
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
248
|
+
sourcePath: z.ZodOptional<z.ZodString>;
|
|
249
|
+
facts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
250
|
+
key: z.ZodString;
|
|
251
|
+
value: z.ZodString;
|
|
252
|
+
sourcePath: z.ZodString;
|
|
253
|
+
confidence: z.ZodNumber;
|
|
254
|
+
kind: z.ZodEnum<["label", "tag", "annotation", "provider_identity", "resource_hint", "text_derived", "time", "rule", "query", "trace", "metric", "log"]>;
|
|
255
|
+
}, "strip", z.ZodTypeAny, {
|
|
256
|
+
value: string;
|
|
257
|
+
key: string;
|
|
258
|
+
sourcePath: string;
|
|
259
|
+
confidence: number;
|
|
260
|
+
kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time" | "rule" | "query" | "trace" | "metric" | "log";
|
|
261
|
+
}, {
|
|
262
|
+
value: string;
|
|
263
|
+
key: string;
|
|
264
|
+
sourcePath: string;
|
|
265
|
+
confidence: number;
|
|
266
|
+
kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time" | "rule" | "query" | "trace" | "metric" | "log";
|
|
267
|
+
}>, "many">>;
|
|
268
|
+
}, "strip", z.ZodTypeAny, {
|
|
269
|
+
type: string;
|
|
270
|
+
ref: string;
|
|
271
|
+
sourcePath?: string | undefined;
|
|
272
|
+
summary?: string | undefined;
|
|
273
|
+
facts?: {
|
|
274
|
+
value: string;
|
|
275
|
+
key: string;
|
|
276
|
+
sourcePath: string;
|
|
277
|
+
confidence: number;
|
|
278
|
+
kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time" | "rule" | "query" | "trace" | "metric" | "log";
|
|
279
|
+
}[] | undefined;
|
|
280
|
+
}, {
|
|
281
|
+
type: string;
|
|
282
|
+
ref: string;
|
|
283
|
+
sourcePath?: string | undefined;
|
|
284
|
+
summary?: string | undefined;
|
|
285
|
+
facts?: {
|
|
286
|
+
value: string;
|
|
287
|
+
key: string;
|
|
288
|
+
sourcePath: string;
|
|
289
|
+
confidence: number;
|
|
290
|
+
kind: "label" | "tag" | "annotation" | "provider_identity" | "resource_hint" | "text_derived" | "time" | "rule" | "query" | "trace" | "metric" | "log";
|
|
291
|
+
}[] | undefined;
|
|
292
|
+
}>, "many">;
|
|
293
|
+
decision: z.ZodEnum<["ready", "warning_only", "ambiguous", "blocked", "degraded", "unresolved"]>;
|
|
294
|
+
diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
295
|
+
code: z.ZodString;
|
|
296
|
+
message: z.ZodString;
|
|
297
|
+
details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
298
|
+
}, "strip", z.ZodTypeAny, {
|
|
299
|
+
code: string;
|
|
300
|
+
message: string;
|
|
301
|
+
details?: Record<string, unknown> | undefined;
|
|
302
|
+
}, {
|
|
303
|
+
code: string;
|
|
304
|
+
message: string;
|
|
305
|
+
details?: Record<string, unknown> | undefined;
|
|
306
|
+
}>, "many">>;
|
|
307
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
308
|
+
source_attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
309
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
310
|
+
export type TopologyCorrelationCandidate = z.infer<typeof topologyCorrelationCandidateSchema>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.topologyCorrelationCandidateSchema = exports.topologyCorrelationDecisionSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const correlation_core_1 = require("@scoutflo/correlation-core");
|
|
6
|
+
const common_1 = require("../source-sync/common");
|
|
7
|
+
exports.topologyCorrelationDecisionSchema = zod_1.z.enum([
|
|
8
|
+
'ready',
|
|
9
|
+
'warning_only',
|
|
10
|
+
'ambiguous',
|
|
11
|
+
'blocked',
|
|
12
|
+
'degraded',
|
|
13
|
+
'unresolved',
|
|
14
|
+
]);
|
|
15
|
+
exports.topologyCorrelationCandidateSchema = zod_1.z.object({
|
|
16
|
+
candidate_key: common_1.nonEmptyStringSchema,
|
|
17
|
+
rule_key: common_1.nonEmptyStringSchema,
|
|
18
|
+
rule_version: common_1.nonEmptyStringSchema,
|
|
19
|
+
from: correlation_core_1.correlationEntityRefSchema,
|
|
20
|
+
to: correlation_core_1.correlationEntityRefSchema,
|
|
21
|
+
relation: common_1.nonEmptyStringSchema,
|
|
22
|
+
canonical_key: common_1.nonEmptyStringSchema,
|
|
23
|
+
semantic_key: common_1.nonEmptyStringSchema,
|
|
24
|
+
confidence: correlation_core_1.confidenceSchema,
|
|
25
|
+
evidence: zod_1.z.array(correlation_core_1.correlationEvidenceSchema),
|
|
26
|
+
decision: exports.topologyCorrelationDecisionSchema,
|
|
27
|
+
diagnostics: zod_1.z.array(correlation_core_1.correlationDiagnosticSchema).optional(),
|
|
28
|
+
attributes: common_1.recordSchema.optional(),
|
|
29
|
+
source_attributes: common_1.recordSchema.optional(),
|
|
30
|
+
}).passthrough();
|
|
31
|
+
//# sourceMappingURL=candidate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"candidate.js","sourceRoot":"","sources":["../../../src/correlation/candidate.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iEAKoC;AACpC,kDAG+B;AAElB,QAAA,iCAAiC,GAAG,OAAC,CAAC,IAAI,CAAC;IACtD,OAAO;IACP,cAAc;IACd,WAAW;IACX,SAAS;IACT,UAAU;IACV,YAAY;CACb,CAAC,CAAC;AAEU,QAAA,kCAAkC,GAAG,OAAC,CAAC,MAAM,CAAC;IACzD,aAAa,EAAE,6BAAoB;IACnC,QAAQ,EAAE,6BAAoB;IAC9B,YAAY,EAAE,6BAAoB;IAClC,IAAI,EAAE,6CAA0B;IAChC,EAAE,EAAE,6CAA0B;IAC9B,QAAQ,EAAE,6BAAoB;IAC9B,aAAa,EAAE,6BAAoB;IACnC,YAAY,EAAE,6BAAoB;IAClC,UAAU,EAAE,mCAAgB;IAC5B,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,4CAAyB,CAAC;IAC5C,QAAQ,EAAE,yCAAiC;IAC3C,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,8CAA2B,CAAC,CAAC,QAAQ,EAAE;IAC5D,UAAU,EAAE,qBAAY,CAAC,QAAQ,EAAE;IACnC,iBAAiB,EAAE,qBAAY,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./rule"), exports);
|
|
18
|
+
__exportStar(require("./candidate"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/correlation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,8CAA4B"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const topologyCorrelationApplyPolicySchema: z.ZodEnum<["auto_apply", "selected_apply", "review_only"]>;
|
|
3
|
+
export declare const topologyCorrelationRequiredEndpointSchema: z.ZodObject<{
|
|
4
|
+
entity_type: z.ZodEnum<["service", "resource"]>;
|
|
5
|
+
resource_type: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
7
|
+
entity_type: z.ZodEnum<["service", "resource"]>;
|
|
8
|
+
resource_type: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
10
|
+
entity_type: z.ZodEnum<["service", "resource"]>;
|
|
11
|
+
resource_type: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
13
|
+
export declare const topologyCorrelationRuleMetadataSchema: z.ZodObject<{
|
|
14
|
+
rule_key: z.ZodString;
|
|
15
|
+
rule_version: z.ZodString;
|
|
16
|
+
profile_key: z.ZodOptional<z.ZodString>;
|
|
17
|
+
relationship_lane: z.ZodString;
|
|
18
|
+
relationship_kind: z.ZodString;
|
|
19
|
+
relation: z.ZodString;
|
|
20
|
+
apply_policy: z.ZodEnum<["auto_apply", "selected_apply", "review_only"]>;
|
|
21
|
+
default_min_confidence: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
required_endpoints: z.ZodArray<z.ZodObject<{
|
|
23
|
+
entity_type: z.ZodEnum<["service", "resource"]>;
|
|
24
|
+
resource_type: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
26
|
+
entity_type: z.ZodEnum<["service", "resource"]>;
|
|
27
|
+
resource_type: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
29
|
+
entity_type: z.ZodEnum<["service", "resource"]>;
|
|
30
|
+
resource_type: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
32
|
+
evidence_policy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
33
|
+
confidence_policy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
34
|
+
ambiguity_policy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
35
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
36
|
+
rule_key: z.ZodString;
|
|
37
|
+
rule_version: z.ZodString;
|
|
38
|
+
profile_key: z.ZodOptional<z.ZodString>;
|
|
39
|
+
relationship_lane: z.ZodString;
|
|
40
|
+
relationship_kind: z.ZodString;
|
|
41
|
+
relation: z.ZodString;
|
|
42
|
+
apply_policy: z.ZodEnum<["auto_apply", "selected_apply", "review_only"]>;
|
|
43
|
+
default_min_confidence: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
required_endpoints: z.ZodArray<z.ZodObject<{
|
|
45
|
+
entity_type: z.ZodEnum<["service", "resource"]>;
|
|
46
|
+
resource_type: z.ZodOptional<z.ZodString>;
|
|
47
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
48
|
+
entity_type: z.ZodEnum<["service", "resource"]>;
|
|
49
|
+
resource_type: z.ZodOptional<z.ZodString>;
|
|
50
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
51
|
+
entity_type: z.ZodEnum<["service", "resource"]>;
|
|
52
|
+
resource_type: z.ZodOptional<z.ZodString>;
|
|
53
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
54
|
+
evidence_policy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
55
|
+
confidence_policy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
56
|
+
ambiguity_policy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
57
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
58
|
+
rule_key: z.ZodString;
|
|
59
|
+
rule_version: z.ZodString;
|
|
60
|
+
profile_key: z.ZodOptional<z.ZodString>;
|
|
61
|
+
relationship_lane: z.ZodString;
|
|
62
|
+
relationship_kind: z.ZodString;
|
|
63
|
+
relation: z.ZodString;
|
|
64
|
+
apply_policy: z.ZodEnum<["auto_apply", "selected_apply", "review_only"]>;
|
|
65
|
+
default_min_confidence: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
required_endpoints: z.ZodArray<z.ZodObject<{
|
|
67
|
+
entity_type: z.ZodEnum<["service", "resource"]>;
|
|
68
|
+
resource_type: z.ZodOptional<z.ZodString>;
|
|
69
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
70
|
+
entity_type: z.ZodEnum<["service", "resource"]>;
|
|
71
|
+
resource_type: z.ZodOptional<z.ZodString>;
|
|
72
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
73
|
+
entity_type: z.ZodEnum<["service", "resource"]>;
|
|
74
|
+
resource_type: z.ZodOptional<z.ZodString>;
|
|
75
|
+
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
76
|
+
evidence_policy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
77
|
+
confidence_policy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
78
|
+
ambiguity_policy: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
79
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
80
|
+
export type TopologyCorrelationRuleMetadata = z.infer<typeof topologyCorrelationRuleMetadataSchema>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.topologyCorrelationRuleMetadataSchema = exports.topologyCorrelationRequiredEndpointSchema = exports.topologyCorrelationApplyPolicySchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const common_1 = require("../source-sync/common");
|
|
6
|
+
exports.topologyCorrelationApplyPolicySchema = zod_1.z.enum([
|
|
7
|
+
'auto_apply',
|
|
8
|
+
'selected_apply',
|
|
9
|
+
'review_only',
|
|
10
|
+
]);
|
|
11
|
+
exports.topologyCorrelationRequiredEndpointSchema = zod_1.z.object({
|
|
12
|
+
entity_type: common_1.entityKindSchema,
|
|
13
|
+
resource_type: common_1.nonEmptyStringSchema.optional(),
|
|
14
|
+
}).passthrough();
|
|
15
|
+
exports.topologyCorrelationRuleMetadataSchema = zod_1.z.object({
|
|
16
|
+
rule_key: common_1.nonEmptyStringSchema,
|
|
17
|
+
rule_version: common_1.nonEmptyStringSchema,
|
|
18
|
+
profile_key: common_1.nonEmptyStringSchema.optional(),
|
|
19
|
+
relationship_lane: common_1.nonEmptyStringSchema,
|
|
20
|
+
relationship_kind: common_1.nonEmptyStringSchema,
|
|
21
|
+
relation: common_1.nonEmptyStringSchema,
|
|
22
|
+
apply_policy: exports.topologyCorrelationApplyPolicySchema,
|
|
23
|
+
default_min_confidence: zod_1.z.number().min(0).optional(),
|
|
24
|
+
required_endpoints: zod_1.z.array(exports.topologyCorrelationRequiredEndpointSchema),
|
|
25
|
+
evidence_policy: common_1.recordSchema.optional(),
|
|
26
|
+
confidence_policy: common_1.recordSchema.optional(),
|
|
27
|
+
ambiguity_policy: common_1.recordSchema.optional(),
|
|
28
|
+
}).passthrough();
|
|
29
|
+
//# sourceMappingURL=rule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rule.js","sourceRoot":"","sources":["../../../src/correlation/rule.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,kDAI+B;AAElB,QAAA,oCAAoC,GAAG,OAAC,CAAC,IAAI,CAAC;IACzD,YAAY;IACZ,gBAAgB;IAChB,aAAa;CACd,CAAC,CAAC;AAEU,QAAA,yCAAyC,GAAG,OAAC,CAAC,MAAM,CAAC;IAChE,WAAW,EAAE,yBAAgB;IAC7B,aAAa,EAAE,6BAAoB,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC,WAAW,EAAE,CAAC;AAEJ,QAAA,qCAAqC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5D,QAAQ,EAAE,6BAAoB;IAC9B,YAAY,EAAE,6BAAoB;IAClC,WAAW,EAAE,6BAAoB,CAAC,QAAQ,EAAE;IAC5C,iBAAiB,EAAE,6BAAoB;IACvC,iBAAiB,EAAE,6BAAoB;IACvC,QAAQ,EAAE,6BAAoB;IAC9B,YAAY,EAAE,4CAAoC;IAClD,sBAAsB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACpD,kBAAkB,EAAE,OAAC,CAAC,KAAK,CAAC,iDAAyC,CAAC;IACtE,eAAe,EAAE,qBAAY,CAAC,QAAQ,EAAE;IACxC,iBAAiB,EAAE,qBAAY,CAAC,QAAQ,EAAE;IAC1C,gBAAgB,EAAE,qBAAY,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AWS_TOPOLOGY_FAMILY: {
|
|
3
|
+
readonly ACCOUNT: "account";
|
|
4
|
+
readonly VPC: "vpc";
|
|
5
|
+
readonly SUBNET: "subnet";
|
|
6
|
+
readonly EC2_INSTANCE: "ec2_instance";
|
|
7
|
+
readonly RDS_INSTANCE: "rds_instance";
|
|
8
|
+
readonly S3_BUCKET: "s3_bucket";
|
|
9
|
+
readonly EKS_CLUSTER: "eks_cluster";
|
|
10
|
+
};
|
|
11
|
+
export declare const AWS_TOPOLOGY_FAMILY_VALUES: readonly ["account", "vpc", "subnet", "ec2_instance", "rds_instance", "s3_bucket", "eks_cluster"];
|
|
12
|
+
export declare const awsTopologyFamilySchema: z.ZodEnum<["account", "vpc", "subnet", "ec2_instance", "rds_instance", "s3_bucket", "eks_cluster"]>;
|
|
13
|
+
export type AwsTopologyFamily = z.infer<typeof awsTopologyFamilySchema>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.awsTopologyFamilySchema = exports.AWS_TOPOLOGY_FAMILY_VALUES = exports.AWS_TOPOLOGY_FAMILY = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.AWS_TOPOLOGY_FAMILY = {
|
|
6
|
+
ACCOUNT: 'account',
|
|
7
|
+
VPC: 'vpc',
|
|
8
|
+
SUBNET: 'subnet',
|
|
9
|
+
EC2_INSTANCE: 'ec2_instance',
|
|
10
|
+
RDS_INSTANCE: 'rds_instance',
|
|
11
|
+
S3_BUCKET: 's3_bucket',
|
|
12
|
+
EKS_CLUSTER: 'eks_cluster',
|
|
13
|
+
};
|
|
14
|
+
exports.AWS_TOPOLOGY_FAMILY_VALUES = [
|
|
15
|
+
exports.AWS_TOPOLOGY_FAMILY.ACCOUNT,
|
|
16
|
+
exports.AWS_TOPOLOGY_FAMILY.VPC,
|
|
17
|
+
exports.AWS_TOPOLOGY_FAMILY.SUBNET,
|
|
18
|
+
exports.AWS_TOPOLOGY_FAMILY.EC2_INSTANCE,
|
|
19
|
+
exports.AWS_TOPOLOGY_FAMILY.RDS_INSTANCE,
|
|
20
|
+
exports.AWS_TOPOLOGY_FAMILY.S3_BUCKET,
|
|
21
|
+
exports.AWS_TOPOLOGY_FAMILY.EKS_CLUSTER,
|
|
22
|
+
];
|
|
23
|
+
exports.awsTopologyFamilySchema = zod_1.z.enum(exports.AWS_TOPOLOGY_FAMILY_VALUES);
|
|
24
|
+
//# sourceMappingURL=aws.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aws.js","sourceRoot":"","sources":["../../../src/families/aws.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,mBAAmB,GAAG;IACjC,OAAO,EAAE,SAAS;IAClB,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,cAAc;IAC5B,YAAY,EAAE,cAAc;IAC5B,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;CAClB,CAAC;AAEE,QAAA,0BAA0B,GAAG;IACxC,2BAAmB,CAAC,OAAO;IAC3B,2BAAmB,CAAC,GAAG;IACvB,2BAAmB,CAAC,MAAM;IAC1B,2BAAmB,CAAC,YAAY;IAChC,2BAAmB,CAAC,YAAY;IAChC,2BAAmB,CAAC,SAAS;IAC7B,2BAAmB,CAAC,WAAW;CACvB,CAAC;AAEE,QAAA,uBAAuB,GAAG,OAAC,CAAC,IAAI,CAAC,kCAA0B,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export * from './aws';
|
|
3
|
+
export * from './kubernetes';
|
|
4
|
+
export * from './integrations';
|
|
5
|
+
export declare const topologyFamilySchema: z.ZodUnion<[z.ZodEnum<["account", "vpc", "subnet", "ec2_instance", "rds_instance", "s3_bucket", "eks_cluster"]>, z.ZodEnum<["cluster", "namespace", "deployment", "statefulset", "daemonset", "job", "cronjob", "service"]>, z.ZodEnum<["integration_resource"]>]>;
|
|
6
|
+
export type TopologyFamily = z.infer<typeof topologyFamilySchema>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.topologyFamilySchema = void 0;
|
|
18
|
+
const zod_1 = require("zod");
|
|
19
|
+
const aws_1 = require("./aws");
|
|
20
|
+
const integrations_1 = require("./integrations");
|
|
21
|
+
const kubernetes_1 = require("./kubernetes");
|
|
22
|
+
__exportStar(require("./aws"), exports);
|
|
23
|
+
__exportStar(require("./kubernetes"), exports);
|
|
24
|
+
__exportStar(require("./integrations"), exports);
|
|
25
|
+
exports.topologyFamilySchema = zod_1.z.union([
|
|
26
|
+
aws_1.awsTopologyFamilySchema,
|
|
27
|
+
kubernetes_1.kubernetesTopologyFamilySchema,
|
|
28
|
+
integrations_1.integrationTopologyFamilySchema,
|
|
29
|
+
]);
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/families/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6BAAwB;AACxB,+BAAgD;AAChD,iDAAiE;AACjE,6CAA8D;AAE9D,wCAAsB;AACtB,+CAA6B;AAC7B,iDAA+B;AAElB,QAAA,oBAAoB,GAAG,OAAC,CAAC,KAAK,CAAC;IAC1C,6BAAuB;IACvB,2CAA8B;IAC9B,8CAA+B;CAChC,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const INTEGRATION_TOPOLOGY_FAMILY: {
|
|
3
|
+
readonly INTEGRATION_RESOURCE: "integration_resource";
|
|
4
|
+
};
|
|
5
|
+
export declare const INTEGRATION_TOPOLOGY_FAMILY_VALUES: readonly ["integration_resource"];
|
|
6
|
+
export declare const integrationTopologyFamilySchema: z.ZodEnum<["integration_resource"]>;
|
|
7
|
+
export type IntegrationTopologyFamily = z.infer<typeof integrationTopologyFamilySchema>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.integrationTopologyFamilySchema = exports.INTEGRATION_TOPOLOGY_FAMILY_VALUES = exports.INTEGRATION_TOPOLOGY_FAMILY = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.INTEGRATION_TOPOLOGY_FAMILY = {
|
|
6
|
+
INTEGRATION_RESOURCE: 'integration_resource',
|
|
7
|
+
};
|
|
8
|
+
exports.INTEGRATION_TOPOLOGY_FAMILY_VALUES = [
|
|
9
|
+
exports.INTEGRATION_TOPOLOGY_FAMILY.INTEGRATION_RESOURCE,
|
|
10
|
+
];
|
|
11
|
+
exports.integrationTopologyFamilySchema = zod_1.z.enum(exports.INTEGRATION_TOPOLOGY_FAMILY_VALUES);
|
|
12
|
+
//# sourceMappingURL=integrations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations.js","sourceRoot":"","sources":["../../../src/families/integrations.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,2BAA2B,GAAG;IACzC,oBAAoB,EAAE,sBAAsB;CACpC,CAAC;AAEE,QAAA,kCAAkC,GAAG;IAChD,mCAA2B,CAAC,oBAAoB;CACxC,CAAC;AAEE,QAAA,+BAA+B,GAAG,OAAC,CAAC,IAAI,CAAC,0CAAkC,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const KUBERNETES_TOPOLOGY_FAMILY: {
|
|
3
|
+
readonly CLUSTER: "cluster";
|
|
4
|
+
readonly NAMESPACE: "namespace";
|
|
5
|
+
readonly DEPLOYMENT: "deployment";
|
|
6
|
+
readonly STATEFUL_SET: "statefulset";
|
|
7
|
+
readonly DAEMON_SET: "daemonset";
|
|
8
|
+
readonly JOB: "job";
|
|
9
|
+
readonly CRON_JOB: "cronjob";
|
|
10
|
+
readonly SERVICE: "service";
|
|
11
|
+
};
|
|
12
|
+
export declare const KUBERNETES_TOPOLOGY_FAMILY_VALUES: readonly ["cluster", "namespace", "deployment", "statefulset", "daemonset", "job", "cronjob", "service"];
|
|
13
|
+
export declare const kubernetesTopologyFamilySchema: z.ZodEnum<["cluster", "namespace", "deployment", "statefulset", "daemonset", "job", "cronjob", "service"]>;
|
|
14
|
+
export type KubernetesTopologyFamily = z.infer<typeof kubernetesTopologyFamilySchema>;
|