stack-scribe-mcp 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/icons.d.ts +7 -0
- package/dist/icons.d.ts.map +1 -0
- package/dist/icons.js +59 -0
- package/dist/icons.js.map +1 -0
- package/dist/index.d.ts +11 -20
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +250 -2944
- package/dist/index.js.map +1 -1
- package/dist/layout.d.ts +11 -0
- package/dist/layout.d.ts.map +1 -0
- package/dist/layout.js +335 -0
- package/dist/layout.js.map +1 -0
- package/dist/node-type-resolution.d.ts +4 -0
- package/dist/node-type-resolution.d.ts.map +1 -0
- package/dist/node-type-resolution.js +125 -0
- package/dist/node-type-resolution.js.map +1 -0
- package/dist/node-types.d.ts +6 -0
- package/dist/node-types.d.ts.map +1 -0
- package/dist/node-types.js +1628 -0
- package/dist/node-types.js.map +1 -0
- package/dist/renderer.d.ts +9 -0
- package/dist/renderer.d.ts.map +1 -0
- package/dist/renderer.js +360 -0
- package/dist/renderer.js.map +1 -0
- package/dist/schema.d.ts +282 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/schema.js +70 -0
- package/dist/schema.js.map +1 -0
- package/dist/validator.d.ts +14 -0
- package/dist/validator.d.ts.map +1 -0
- package/dist/validator.js +132 -0
- package/dist/validator.js.map +1 -0
- package/package.json +3 -4
package/dist/layout.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Diagram, Node, Position } from "./schema.js";
|
|
2
|
+
type PositionedNode = Node & {
|
|
3
|
+
position: Position;
|
|
4
|
+
};
|
|
5
|
+
export type PositionedDiagram = Omit<Diagram, "nodes"> & {
|
|
6
|
+
nodes: PositionedNode[];
|
|
7
|
+
};
|
|
8
|
+
export declare function layoutDiagram(diagram: Diagram): Promise<PositionedDiagram>;
|
|
9
|
+
export declare const layout: typeof layoutDiagram;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../src/layout.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,OAAO,EAIP,IAAI,EACJ,QAAQ,EACT,MAAM,aAAa,CAAC;AAoBrB,KAAK,cAAc,GAAG,IAAI,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,CAAC;AACpD,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG;IACvD,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB,CAAC;AAuWF,wBAAsB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,iBAAiB,CAAC,CA+FhF;AAED,eAAO,MAAM,MAAM,sBAAgB,CAAC"}
|
package/dist/layout.js
ADDED
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
import ELK from "elkjs/lib/elk.bundled.js";
|
|
2
|
+
const DEFAULT_NODE_WIDTH = 120;
|
|
3
|
+
const DEFAULT_NODE_HEIGHT = 98;
|
|
4
|
+
const DEFAULT_NODE_SPACING = 120;
|
|
5
|
+
const DEFAULT_LAYER_SPACING = 180;
|
|
6
|
+
const DEFAULT_DIRECTION = "RIGHT";
|
|
7
|
+
const ICON_SIZE = 64;
|
|
8
|
+
const ICON_X_OFFSET = Math.round((DEFAULT_NODE_WIDTH - ICON_SIZE) / 2);
|
|
9
|
+
const ElkConstructor = ELK;
|
|
10
|
+
const elk = new ElkConstructor();
|
|
11
|
+
function compareStrings(left, right) {
|
|
12
|
+
return left.localeCompare(right);
|
|
13
|
+
}
|
|
14
|
+
function getLayoutMode(diagram) {
|
|
15
|
+
return diagram.layout?.mode ?? "hybrid";
|
|
16
|
+
}
|
|
17
|
+
function clonePosition(position) {
|
|
18
|
+
return { x: position.x, y: position.y };
|
|
19
|
+
}
|
|
20
|
+
function fallbackPosition(index, direction, layerSpacing) {
|
|
21
|
+
const distance = index * layerSpacing;
|
|
22
|
+
switch (direction) {
|
|
23
|
+
case "LEFT":
|
|
24
|
+
return { x: -distance, y: 0 };
|
|
25
|
+
case "UP":
|
|
26
|
+
return { x: 0, y: -distance };
|
|
27
|
+
case "DOWN":
|
|
28
|
+
return { x: 0, y: distance };
|
|
29
|
+
case "RIGHT":
|
|
30
|
+
default:
|
|
31
|
+
return { x: distance, y: 0 };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function inferLayoutDirection(diagram) {
|
|
35
|
+
if (diagram.layout?.direction) {
|
|
36
|
+
return diagram.layout.direction;
|
|
37
|
+
}
|
|
38
|
+
const nodeById = new Map(diagram.nodes.map((node) => [node.id, node]));
|
|
39
|
+
let horizontalWeight = 0;
|
|
40
|
+
let verticalWeight = 0;
|
|
41
|
+
for (const edge of diagram.edges) {
|
|
42
|
+
const source = nodeById.get(edge.from);
|
|
43
|
+
const target = nodeById.get(edge.to);
|
|
44
|
+
if (!source?.position || !target?.position) {
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
horizontalWeight += Math.abs(target.position.x - source.position.x);
|
|
48
|
+
verticalWeight += Math.abs(target.position.y - source.position.y);
|
|
49
|
+
}
|
|
50
|
+
if (verticalWeight > horizontalWeight) {
|
|
51
|
+
return "DOWN";
|
|
52
|
+
}
|
|
53
|
+
return DEFAULT_DIRECTION;
|
|
54
|
+
}
|
|
55
|
+
function buildGraphStats(diagram) {
|
|
56
|
+
const nodeIds = diagram.nodes.map((node) => node.id).sort(compareStrings);
|
|
57
|
+
const indegree = new Map();
|
|
58
|
+
const outdegree = new Map();
|
|
59
|
+
const adjacency = new Map();
|
|
60
|
+
const depth = new Map();
|
|
61
|
+
for (const nodeId of nodeIds) {
|
|
62
|
+
indegree.set(nodeId, 0);
|
|
63
|
+
outdegree.set(nodeId, 0);
|
|
64
|
+
adjacency.set(nodeId, []);
|
|
65
|
+
depth.set(nodeId, 0);
|
|
66
|
+
}
|
|
67
|
+
for (const edge of diagram.edges) {
|
|
68
|
+
if (!adjacency.has(edge.from) || !indegree.has(edge.to)) {
|
|
69
|
+
continue;
|
|
70
|
+
}
|
|
71
|
+
adjacency.get(edge.from)?.push(edge.to);
|
|
72
|
+
outdegree.set(edge.from, (outdegree.get(edge.from) ?? 0) + 1);
|
|
73
|
+
indegree.set(edge.to, (indegree.get(edge.to) ?? 0) + 1);
|
|
74
|
+
}
|
|
75
|
+
for (const neighbours of adjacency.values()) {
|
|
76
|
+
neighbours.sort(compareStrings);
|
|
77
|
+
}
|
|
78
|
+
const indegreeCopy = new Map(indegree);
|
|
79
|
+
const queue = nodeIds.filter((nodeId) => (indegreeCopy.get(nodeId) ?? 0) === 0);
|
|
80
|
+
queue.sort(compareStrings);
|
|
81
|
+
while (queue.length > 0) {
|
|
82
|
+
const current = queue.shift();
|
|
83
|
+
if (!current) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
const currentDepth = depth.get(current) ?? 0;
|
|
87
|
+
for (const next of adjacency.get(current) ?? []) {
|
|
88
|
+
depth.set(next, Math.max(depth.get(next) ?? 0, currentDepth + 1));
|
|
89
|
+
const remaining = (indegreeCopy.get(next) ?? 0) - 1;
|
|
90
|
+
indegreeCopy.set(next, remaining);
|
|
91
|
+
if (remaining === 0) {
|
|
92
|
+
queue.push(next);
|
|
93
|
+
queue.sort(compareStrings);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
let maxDepth = 0;
|
|
98
|
+
for (const value of depth.values()) {
|
|
99
|
+
maxDepth = Math.max(maxDepth, value);
|
|
100
|
+
}
|
|
101
|
+
return { indegree, outdegree, adjacency, depth, maxDepth };
|
|
102
|
+
}
|
|
103
|
+
function axisValue(position, direction) {
|
|
104
|
+
switch (direction) {
|
|
105
|
+
case "LEFT":
|
|
106
|
+
return -position.x;
|
|
107
|
+
case "UP":
|
|
108
|
+
return -position.y;
|
|
109
|
+
case "DOWN":
|
|
110
|
+
return position.y;
|
|
111
|
+
case "RIGHT":
|
|
112
|
+
default:
|
|
113
|
+
return position.x;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
function crossAxisValue(position, direction) {
|
|
117
|
+
switch (direction) {
|
|
118
|
+
case "LEFT":
|
|
119
|
+
case "RIGHT":
|
|
120
|
+
return position.y;
|
|
121
|
+
case "UP":
|
|
122
|
+
case "DOWN":
|
|
123
|
+
default:
|
|
124
|
+
return position.x;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
function buildLayerAssignments(diagram, direction, mode, layerSpacing, stats) {
|
|
128
|
+
const assignments = new Map();
|
|
129
|
+
const nodeById = new Map(diagram.nodes.map((node) => [node.id, node]));
|
|
130
|
+
const rawValues = [];
|
|
131
|
+
for (const node of diagram.nodes) {
|
|
132
|
+
const indegree = stats.indegree.get(node.id) ?? 0;
|
|
133
|
+
const outdegree = stats.outdegree.get(node.id) ?? 0;
|
|
134
|
+
let partition = stats.depth.get(node.id) ?? 0;
|
|
135
|
+
if (indegree === 0 && outdegree === 0) {
|
|
136
|
+
partition = stats.maxDepth + 2;
|
|
137
|
+
}
|
|
138
|
+
else if (outdegree === 0 && indegree > 0) {
|
|
139
|
+
partition = stats.maxDepth + 1;
|
|
140
|
+
}
|
|
141
|
+
if (mode === "hybrid" && node.position) {
|
|
142
|
+
partition = Math.round(axisValue(node.position, direction) / layerSpacing);
|
|
143
|
+
}
|
|
144
|
+
assignments.set(node.id, partition);
|
|
145
|
+
rawValues.push(partition);
|
|
146
|
+
}
|
|
147
|
+
const minPartition = rawValues.length > 0 ? Math.min(...rawValues) : 0;
|
|
148
|
+
if (minPartition < 0) {
|
|
149
|
+
for (const nodeId of nodeById.keys()) {
|
|
150
|
+
assignments.set(nodeId, (assignments.get(nodeId) ?? 0) - minPartition);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
return assignments;
|
|
154
|
+
}
|
|
155
|
+
function createParentMap(groups) {
|
|
156
|
+
const parentByChild = new Map();
|
|
157
|
+
for (const group of [...groups].sort((left, right) => compareStrings(left.id, right.id))) {
|
|
158
|
+
for (const childId of group.children) {
|
|
159
|
+
if (!parentByChild.has(childId)) {
|
|
160
|
+
parentByChild.set(childId, group.id);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
return parentByChild;
|
|
165
|
+
}
|
|
166
|
+
function collectGroupNodeIds(groupId, groupById, nodeById) {
|
|
167
|
+
const group = groupById.get(groupId);
|
|
168
|
+
if (!group) {
|
|
169
|
+
return [];
|
|
170
|
+
}
|
|
171
|
+
const nodeIds = [];
|
|
172
|
+
for (const childId of group.children) {
|
|
173
|
+
if (nodeById.has(childId)) {
|
|
174
|
+
nodeIds.push(childId);
|
|
175
|
+
continue;
|
|
176
|
+
}
|
|
177
|
+
nodeIds.push(...collectGroupNodeIds(childId, groupById, nodeById));
|
|
178
|
+
}
|
|
179
|
+
return nodeIds;
|
|
180
|
+
}
|
|
181
|
+
function buildNodeSortData(diagram, direction, layerAssignments) {
|
|
182
|
+
const sortData = new Map();
|
|
183
|
+
for (const node of diagram.nodes) {
|
|
184
|
+
sortData.set(node.id, {
|
|
185
|
+
layer: layerAssignments.get(node.id) ?? 0,
|
|
186
|
+
cross: node.position ? crossAxisValue(node.position, direction) : 0,
|
|
187
|
+
id: node.id,
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
return sortData;
|
|
191
|
+
}
|
|
192
|
+
function buildGroupSortData(groups, groupById, nodeById, nodeSortData) {
|
|
193
|
+
const groupSortData = new Map();
|
|
194
|
+
for (const group of groups) {
|
|
195
|
+
const descendantNodeIds = collectGroupNodeIds(group.id, groupById, nodeById);
|
|
196
|
+
if (descendantNodeIds.length === 0) {
|
|
197
|
+
groupSortData.set(group.id, { layer: Number.MAX_SAFE_INTEGER, cross: 0, id: group.id });
|
|
198
|
+
continue;
|
|
199
|
+
}
|
|
200
|
+
const descendantData = descendantNodeIds
|
|
201
|
+
.map((nodeId) => nodeSortData.get(nodeId))
|
|
202
|
+
.filter((entry) => Boolean(entry));
|
|
203
|
+
descendantData.sort((left, right) => {
|
|
204
|
+
if (left.layer !== right.layer) {
|
|
205
|
+
return left.layer - right.layer;
|
|
206
|
+
}
|
|
207
|
+
if (left.cross !== right.cross) {
|
|
208
|
+
return left.cross - right.cross;
|
|
209
|
+
}
|
|
210
|
+
return compareStrings(left.id, right.id);
|
|
211
|
+
});
|
|
212
|
+
const first = descendantData[0] ?? { layer: Number.MAX_SAFE_INTEGER, cross: 0, id: group.id };
|
|
213
|
+
groupSortData.set(group.id, { layer: first.layer, cross: first.cross, id: group.id });
|
|
214
|
+
}
|
|
215
|
+
return groupSortData;
|
|
216
|
+
}
|
|
217
|
+
function sortElementIds(ids, nodeSortData, groupSortData) {
|
|
218
|
+
return [...ids].sort((leftId, rightId) => {
|
|
219
|
+
const left = nodeSortData.get(leftId) ?? groupSortData.get(leftId);
|
|
220
|
+
const right = nodeSortData.get(rightId) ?? groupSortData.get(rightId);
|
|
221
|
+
if (!left || !right) {
|
|
222
|
+
return compareStrings(leftId, rightId);
|
|
223
|
+
}
|
|
224
|
+
if (left.layer !== right.layer) {
|
|
225
|
+
return left.layer - right.layer;
|
|
226
|
+
}
|
|
227
|
+
if (left.cross !== right.cross) {
|
|
228
|
+
return left.cross - right.cross;
|
|
229
|
+
}
|
|
230
|
+
return compareStrings(left.id, right.id);
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
function collectAbsolutePositions(elkNode, nodeIds, positions, offsetX = 0, offsetY = 0) {
|
|
234
|
+
const absoluteX = offsetX + (elkNode.x ?? 0);
|
|
235
|
+
const absoluteY = offsetY + (elkNode.y ?? 0);
|
|
236
|
+
if (nodeIds.has(elkNode.id)) {
|
|
237
|
+
positions.set(elkNode.id, { x: absoluteX + ICON_X_OFFSET, y: absoluteY });
|
|
238
|
+
}
|
|
239
|
+
for (const child of elkNode.children ?? []) {
|
|
240
|
+
collectAbsolutePositions(child, nodeIds, positions, absoluteX, absoluteY);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
function cloneDiagramWithPositions(diagram, positions, direction, layerSpacing) {
|
|
244
|
+
return {
|
|
245
|
+
...diagram,
|
|
246
|
+
nodes: diagram.nodes.map((node, index) => ({
|
|
247
|
+
...node,
|
|
248
|
+
position: positions.get(node.id)
|
|
249
|
+
?? (node.position ? clonePosition(node.position) : fallbackPosition(index, direction, layerSpacing)),
|
|
250
|
+
})),
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
export async function layoutDiagram(diagram) {
|
|
254
|
+
const mode = getLayoutMode(diagram);
|
|
255
|
+
const direction = inferLayoutDirection(diagram);
|
|
256
|
+
const nodeSpacing = diagram.layout?.nodeSpacing ?? DEFAULT_NODE_SPACING;
|
|
257
|
+
const layerSpacing = diagram.layout?.layerSpacing ?? DEFAULT_LAYER_SPACING;
|
|
258
|
+
if (mode === "manual") {
|
|
259
|
+
const positions = new Map();
|
|
260
|
+
for (const [index, node] of diagram.nodes.entries()) {
|
|
261
|
+
if (!node.position) {
|
|
262
|
+
throw new Error(`Manual layout mode requires node \"${node.id}\" to define position`);
|
|
263
|
+
}
|
|
264
|
+
positions.set(node.id, node.position ? clonePosition(node.position) : fallbackPosition(index, direction, layerSpacing));
|
|
265
|
+
}
|
|
266
|
+
return cloneDiagramWithPositions(diagram, positions, direction, layerSpacing);
|
|
267
|
+
}
|
|
268
|
+
const nodeById = new Map(diagram.nodes.map((node) => [node.id, node]));
|
|
269
|
+
const groups = diagram.groups ?? [];
|
|
270
|
+
const groupById = new Map(groups.map((group) => [group.id, group]));
|
|
271
|
+
const stats = buildGraphStats(diagram);
|
|
272
|
+
const layerAssignments = buildLayerAssignments(diagram, direction, mode, layerSpacing, stats);
|
|
273
|
+
const parentByChild = createParentMap(groups);
|
|
274
|
+
const nodeSortData = buildNodeSortData(diagram, direction, layerAssignments);
|
|
275
|
+
const groupSortData = buildGroupSortData(groups, groupById, nodeById, nodeSortData);
|
|
276
|
+
const buildLeafNode = (nodeId) => {
|
|
277
|
+
const layoutOptions = {
|
|
278
|
+
"elk.partitioning.partition": String(layerAssignments.get(nodeId) ?? 0),
|
|
279
|
+
};
|
|
280
|
+
return {
|
|
281
|
+
id: nodeId,
|
|
282
|
+
width: DEFAULT_NODE_WIDTH,
|
|
283
|
+
height: DEFAULT_NODE_HEIGHT,
|
|
284
|
+
layoutOptions,
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
const buildGroupNode = (groupId) => {
|
|
288
|
+
const group = groupById.get(groupId);
|
|
289
|
+
if (!group) {
|
|
290
|
+
throw new Error(`Unknown group \"${groupId}\"`);
|
|
291
|
+
}
|
|
292
|
+
const sortedChildren = sortElementIds(group.children, nodeSortData, groupSortData);
|
|
293
|
+
return {
|
|
294
|
+
id: group.id,
|
|
295
|
+
layoutOptions: {
|
|
296
|
+
"elk.padding": "[top=40,left=20,bottom=20,right=20]",
|
|
297
|
+
},
|
|
298
|
+
children: sortedChildren.map((childId) => {
|
|
299
|
+
if (nodeById.has(childId)) {
|
|
300
|
+
return buildLeafNode(childId);
|
|
301
|
+
}
|
|
302
|
+
return buildGroupNode(childId);
|
|
303
|
+
}),
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
const topLevelIds = sortElementIds([
|
|
307
|
+
...diagram.nodes.map((node) => node.id).filter((nodeId) => !parentByChild.has(nodeId)),
|
|
308
|
+
...groups.map((group) => group.id).filter((groupId) => !parentByChild.has(groupId)),
|
|
309
|
+
], nodeSortData, groupSortData);
|
|
310
|
+
const elkGraph = {
|
|
311
|
+
id: "root",
|
|
312
|
+
layoutOptions: {
|
|
313
|
+
"elk.algorithm": "layered",
|
|
314
|
+
"elk.direction": direction,
|
|
315
|
+
"elk.spacing.nodeNode": String(nodeSpacing),
|
|
316
|
+
"elk.layered.spacing.nodeNodeBetweenLayers": String(layerSpacing),
|
|
317
|
+
"elk.partitioning.activate": "true",
|
|
318
|
+
"elk.layered.considerModelOrder.strategy": "NODES_AND_EDGES",
|
|
319
|
+
"elk.layered.crossingMinimization.forceNodeModelOrder": "true",
|
|
320
|
+
"elk.hierarchyHandling": "INCLUDE_CHILDREN",
|
|
321
|
+
},
|
|
322
|
+
children: topLevelIds.map((id) => (nodeById.has(id) ? buildLeafNode(id) : buildGroupNode(id))),
|
|
323
|
+
edges: diagram.edges.map((edge, index) => ({
|
|
324
|
+
id: `edge-${index}`,
|
|
325
|
+
sources: [edge.from],
|
|
326
|
+
targets: [edge.to],
|
|
327
|
+
})),
|
|
328
|
+
};
|
|
329
|
+
const laidOut = await elk.layout(elkGraph);
|
|
330
|
+
const positions = new Map();
|
|
331
|
+
collectAbsolutePositions(laidOut, new Set(nodeById.keys()), positions);
|
|
332
|
+
return cloneDiagramWithPositions(diagram, positions, direction, layerSpacing);
|
|
333
|
+
}
|
|
334
|
+
export const layout = layoutDiagram;
|
|
335
|
+
//# sourceMappingURL=layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../src/layout.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,0BAA0B,CAAC;AAU3C,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAC/B,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,oBAAoB,GAAG,GAAG,CAAC;AACjC,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAClC,MAAM,iBAAiB,GAAoB,OAAO,CAAC;AACnD,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,kBAAkB,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AAMvE,MAAM,cAAc,GAAG,GAEtB,CAAC;AAEF,MAAM,GAAG,GAAG,IAAI,cAAc,EAAE,CAAC;AAgCjC,SAAS,cAAc,CAAC,IAAY,EAAE,KAAa;IACjD,OAAO,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AACnC,CAAC;AAED,SAAS,a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EAAE,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC;QAC9F,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;YACzC,EAAE,EAAE,QAAQ,KAAK,EAAE;YACnB,OAAO,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC;YACpB,OAAO,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;SACnB,CAAC,CAAC;KACJ,CAAC;IAEF,MAAM,OAAO,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC3C,MAAM,SAAS,GAAG,IAAI,GAAG,EAAoB,CAAC;IAC9C,wBAAwB,CAAC,OAAO,EAAE,IAAI,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC;IAEvE,OAAO,yBAAyB,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC;AAChF,CAAC;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-type-resolution.d.ts","sourceRoot":"","sources":["../src/node-type-resolution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAmHhD,wBAAgB,eAAe,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CA8B9E;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE5D"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { nodeTypeToIcon } from "./node-types.js";
|
|
2
|
+
const nodeTypes = Object.keys(nodeTypeToIcon);
|
|
3
|
+
const nodeTypeSet = new Set(nodeTypes);
|
|
4
|
+
const nodeTypeAliases = new Map();
|
|
5
|
+
const uniqueAliases = new Map();
|
|
6
|
+
function normalizeLookupKey(value) {
|
|
7
|
+
return value
|
|
8
|
+
.trim()
|
|
9
|
+
.toLowerCase()
|
|
10
|
+
.replace(/&/g, "and")
|
|
11
|
+
.replace(/[_\s/]+/g, "-")
|
|
12
|
+
.replace(/-?\.-?/g, ".")
|
|
13
|
+
.replace(/\.{2,}/g, ".")
|
|
14
|
+
.replace(/-{2,}/g, "-")
|
|
15
|
+
.replace(/^[-.]+|[-.]+$/g, "");
|
|
16
|
+
}
|
|
17
|
+
function isNodeType(value) {
|
|
18
|
+
return nodeTypeSet.has(value);
|
|
19
|
+
}
|
|
20
|
+
function registerAlias(alias, type) {
|
|
21
|
+
const normalizedAlias = normalizeLookupKey(alias);
|
|
22
|
+
if (!normalizedAlias || nodeTypeAliases.has(normalizedAlias)) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
nodeTypeAliases.set(normalizedAlias, type);
|
|
26
|
+
}
|
|
27
|
+
function registerUniqueAlias(alias, type) {
|
|
28
|
+
const normalizedAlias = normalizeLookupKey(alias);
|
|
29
|
+
if (!normalizedAlias) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const existing = uniqueAliases.get(normalizedAlias);
|
|
33
|
+
if (existing === undefined) {
|
|
34
|
+
uniqueAliases.set(normalizedAlias, type);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
if (existing !== type) {
|
|
38
|
+
uniqueAliases.set(normalizedAlias, null);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
for (const type of nodeTypes) {
|
|
42
|
+
const segments = type.split(".");
|
|
43
|
+
registerAlias(type, type);
|
|
44
|
+
registerAlias(type.replace(/^aws\./, ""), type);
|
|
45
|
+
const lastSegment = segments[segments.length - 1];
|
|
46
|
+
if (lastSegment) {
|
|
47
|
+
registerUniqueAlias(lastSegment, type);
|
|
48
|
+
}
|
|
49
|
+
if (segments.length >= 4) {
|
|
50
|
+
const parentAndChild = `${segments[segments.length - 2]}.${segments[segments.length - 1]}`;
|
|
51
|
+
registerUniqueAlias(parentAndChild, type);
|
|
52
|
+
}
|
|
53
|
+
const repeatedSegment = segments.length === 4 ? segments[2] : undefined;
|
|
54
|
+
if (repeatedSegment && repeatedSegment === segments[3]) {
|
|
55
|
+
registerAlias(segments.slice(0, 3).join("."), type);
|
|
56
|
+
registerUniqueAlias(repeatedSegment, type);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
for (const [alias, type] of uniqueAliases) {
|
|
60
|
+
if (type) {
|
|
61
|
+
registerAlias(alias, type);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
const manualAliases = {
|
|
65
|
+
"acm": "aws.security-identity.certificate-manager",
|
|
66
|
+
"api-gateway": "aws.networking-content-delivery.api-gateway",
|
|
67
|
+
"apigateway": "aws.networking-content-delivery.api-gateway",
|
|
68
|
+
"aws.general.user": "aws.general.user.user",
|
|
69
|
+
"aws.general.users": "aws.general.users.users",
|
|
70
|
+
"bucket": "aws.storage.simple-storage-service.bucket",
|
|
71
|
+
"cloudfront": "aws.networking-content-delivery.cloudfront",
|
|
72
|
+
"dynamodb": "aws.databases.dynamodb",
|
|
73
|
+
"iam": "aws.security-identity.identity-and-access-management",
|
|
74
|
+
"lambda": "aws.compute.lambda",
|
|
75
|
+
"oac": "aws.security-identity.identity-and-access-management",
|
|
76
|
+
"origin-access-control": "aws.security-identity.identity-and-access-management",
|
|
77
|
+
"origin-access-identity": "aws.security-identity.identity-and-access-management",
|
|
78
|
+
"route53": "aws.networking-content-delivery.route-53",
|
|
79
|
+
"route-53": "aws.networking-content-delivery.route-53",
|
|
80
|
+
"s3": "aws.storage.simple-storage-service",
|
|
81
|
+
"s3-bucket": "aws.storage.simple-storage-service.bucket",
|
|
82
|
+
"user": "aws.general.user.user",
|
|
83
|
+
"users": "aws.general.users.users",
|
|
84
|
+
"waf": "aws.security-identity.waf",
|
|
85
|
+
};
|
|
86
|
+
for (const [alias, type] of Object.entries(manualAliases)) {
|
|
87
|
+
registerAlias(alias, type);
|
|
88
|
+
}
|
|
89
|
+
function resolveRepeatedSuffix(normalizedValue) {
|
|
90
|
+
const segments = normalizedValue.split(".").filter(Boolean);
|
|
91
|
+
if (segments.length < 3) {
|
|
92
|
+
return undefined;
|
|
93
|
+
}
|
|
94
|
+
const repeated = `${segments.join(".")}.${segments[segments.length - 1]}`;
|
|
95
|
+
return isNodeType(repeated) ? repeated : undefined;
|
|
96
|
+
}
|
|
97
|
+
export function resolveNodeType(value) {
|
|
98
|
+
if (isNodeType(value)) {
|
|
99
|
+
return value;
|
|
100
|
+
}
|
|
101
|
+
const normalizedValue = normalizeLookupKey(value);
|
|
102
|
+
if (!normalizedValue) {
|
|
103
|
+
return undefined;
|
|
104
|
+
}
|
|
105
|
+
if (isNodeType(normalizedValue)) {
|
|
106
|
+
return normalizedValue;
|
|
107
|
+
}
|
|
108
|
+
const directMatch = nodeTypeAliases.get(normalizedValue);
|
|
109
|
+
if (directMatch) {
|
|
110
|
+
return directMatch;
|
|
111
|
+
}
|
|
112
|
+
const repeatedMatch = resolveRepeatedSuffix(normalizedValue);
|
|
113
|
+
if (repeatedMatch) {
|
|
114
|
+
return repeatedMatch;
|
|
115
|
+
}
|
|
116
|
+
const awsPrefixedValue = normalizedValue.startsWith("aws.") ? normalizedValue : `aws.${normalizedValue}`;
|
|
117
|
+
if (isNodeType(awsPrefixedValue)) {
|
|
118
|
+
return awsPrefixedValue;
|
|
119
|
+
}
|
|
120
|
+
return nodeTypeAliases.get(awsPrefixedValue) ?? resolveRepeatedSuffix(awsPrefixedValue);
|
|
121
|
+
}
|
|
122
|
+
export function normalizeNodeTypeInput(value) {
|
|
123
|
+
return resolveNodeType(value) ?? normalizeLookupKey(value);
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=node-type-resolution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-type-resolution.js","sourceRoot":"","sources":["../src/node-type-resolution.ts"],"names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AClD,OAAO,eAAe,CAAC,KAAK,CAAC,IAAI,kBAAkB,CAAC,KAAK,CAAC,CAAC;AAC7D,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const NodeTypeSchema: z.ZodEnum<["aws.analytics.athena", "aws.analytics.clean-rooms", "aws.analytics.cloudsearch", "aws.analytics.data-exchange", "aws.analytics.data-firehose", "aws.analytics.datazone", "aws.analytics.emr", "aws.analytics.entity-resolution", "aws.analytics.finspace", "aws.analytics.glue-databrew", "aws.analytics.glue", "aws.analytics.kinesis-data-streams", "aws.analytics.kinesis-video-streams", "aws.analytics.kinesis", "aws.analytics.lake-formation", "aws.analytics.managed-service-for-apache-flink", "aws.analytics.managed-streaming-for-apache-kafka", "aws.analytics.opensearch-service", "aws.analytics.redshift", "aws.analytics.sagemaker", "aws.application-integration.appflow", "aws.application-integration.appsync", "aws.application-integration.b2b-data-interchange", "aws.application-integration.eventbridge", "aws.application-integration.express-workflows", "aws.application-integration.managed-workflows-for-apache-airflow", "aws.application-integration.mq", "aws.application-integration.simple-notification-service", "aws.application-integration.simple-queue-service", "aws.application-integration.step-functions", "aws.artificial-intelligence.apache-mxnet-on-aws", "aws.artificial-intelligence.app-studio", "aws.artificial-intelligence.augmented-ai-a2i", "aws.artificial-intelligence.bedrock-agentcore", "aws.artificial-intelligence.bedrock", "aws.artificial-intelligence.codeguru", "aws.artificial-intelligence.codewhisperer", "aws.artificial-intelligence.comprehend-medical", "aws.artificial-intelligence.comprehend", "aws.artificial-intelligence.deep-learning-amis", "aws.artificial-intelligence.deep-learning-containers", "aws.artificial-intelligence.deepracer", "aws.artificial-intelligence.devops-guru", "aws.artificial-intelligence.elastic-inference", "aws.artificial-intelligence.forecast", "aws.artificial-intelligence.fraud-detector", "aws.artificial-intelligence.healthimaging", "aws.artificial-intelligence.healthlake", "aws.artificial-intelligence.healthomics", "aws.artificial-intelligence.healthscribe", "aws.artificial-intelligence.kendra", "aws.artificial-intelligence.lex", "aws.artificial-intelligence.lookout-for-equipment", "aws.artificial-intelligence.lookout-for-vision", "aws.artificial-intelligence.monitron", "aws.artificial-intelligence.neuron", "aws.artificial-intelligence.nova", "aws.artificial-intelligence.panorama", "aws.artificial-intelligence.personalize", "aws.artificial-intelligence.polly", "aws.artificial-intelligence.pytorch-on-aws", "aws.artificial-intelligence.q", "aws.artificial-intelligence.rekognition", "aws.artificial-intelligence.sagemaker-ai", "aws.artificial-intelligence.sagemaker-ground-truth", "aws.artificial-intelligence.sagemaker-studio-lab", "aws.artificial-intelligence.tensorflow-on-aws", "aws.artificial-intelligence.textract", "aws.artificial-intelligence.transcribe", "aws.artificial-intelligence.translate", "aws.blockchain.managed-blockchain", "aws.business-applications.appfabric", "aws.business-applications.chime-sdk", "aws.business-applications.chime", "aws.business-applications.connect", "aws.business-applications.end-user-messaging", "aws.business-applications.pinpoint-apis", "aws.business-applications.pinpoint", "aws.business-applications.quick-suite", "aws.business-applications.simple-email-service", "aws.business-applications.supply-chain", "aws.business-applications.wickr", "aws.business-applications.workdocs-sdk", "aws.business-applications.workdocs", "aws.business-applications.workmail", "aws.cloud-financial-management.billing-conductor", "aws.cloud-financial-management.budgets", "aws.cloud-financial-management.cost-and-usage-report", "aws.cloud-financial-management.cost-explorer", "aws.cloud-financial-management.reserved-instance-reporting", "aws.cloud-financial-management.savings-plans", "aws.compute.app-runner", "aws.compute.batch", "aws.compute.bottlerocket", "aws.compute.compute-optimizer", "aws.compute.dcv", "aws.compute.ec2-auto-scaling", "aws.compute.ec2-image-builder", "aws.compute.ec2", "aws.compute.elastic-beanstalk", "aws.compute.elastic-fabric-adapter", "aws.compute.elastic-vmware-service", "aws.compute.lambda", "aws.compute.lightsail-for-research", "aws.compute.lightsail", "aws.compute.local-zones", "aws.compute.nitro-enclaves", "aws.compute.outposts-family", "aws.compute.outposts-rack", "aws.compute.outposts-servers", "aws.compute.parallel-cluster", "aws.compute.parallel-computing-service", "aws.compute.serverless-application-repository", "aws.compute.simspace-weaver", "aws.compute.wavelength", "aws.containers.ecs-anywhere", "aws.containers.eks-anywhere", "aws.containers.eks-distro", "aws.containers.elastic-container-registry", "aws.containers.elastic-container-service", "aws.containers.elastic-kubernetes-service", "aws.containers.fargate", "aws.containers.red-hat-openshift-service-on-aws", "aws.customer-enablement.activate", "aws.customer-enablement.iq", "aws.customer-enablement.managed-services", "aws.customer-enablement.professional-services", "aws.customer-enablement.repost-private", "aws.customer-enablement.repost", "aws.customer-enablement.support", "aws.customer-enablement.training-certification", "aws.databases.aurora", "aws.databases.database-migration-service", "aws.databases.documentdb", "aws.databases.dynamodb", "aws.databases.elasticache", "aws.databases.keyspaces", "aws.databases.memorydb", "aws.databases.neptune", "aws.databases.oracle-database-at-aws", "aws.databases.rds", "aws.databases.timestream", "aws.developer-tools.cloud-control-api", "aws.developer-tools.cloud-development-kit", "aws.developer-tools.cloud9", "aws.developer-tools.cloudshell", "aws.developer-tools.codeartifact", "aws.developer-tools.codebuild", "aws.developer-tools.codecatalyst", "aws.developer-tools.codecommit", "aws.developer-tools.codedeploy", "aws.developer-tools.codepipeline", "aws.developer-tools.command-line-interface", "aws.developer-tools.corretto", "aws.developer-tools.fault-injection-service", "aws.developer-tools.infrastructure-composer", "aws.developer-tools.tools-and-sdks", "aws.developer-tools.x-ray", "aws.end-user-computing.workspaces", "aws.front-end-web-mobile.amplify", "aws.front-end-web-mobile.device-farm", "aws.front-end-web-mobile.location-service", "aws.games.gamelift-servers", "aws.games.gamelift-streams", "aws.games.open-3d-engine", "aws.general-icons.marketplace_dark", "aws.general-icons.marketplace_light", "aws.internet-of-things.freertos", "aws.internet-of-things.iot-core", "aws.internet-of-things.iot-device-defender", "aws.internet-of-things.iot-device-management", "aws.internet-of-things.iot-events", "aws.internet-of-things.iot-expresslink", "aws.internet-of-things.iot-fleetwise", "aws.internet-of-things.iot-greengrass", "aws.internet-of-things.iot-sitewise", "aws.internet-of-things.iot-twinmaker", "aws.management-tools.appconfig", "aws.management-tools.application-auto-scaling", "aws.management-tools.auto-scaling", "aws.management-tools.backint-agent", "aws.management-tools.chatbot", "aws.management-tools.cloudformation", "aws.management-tools.cloudtrail", "aws.management-tools.cloudwatch", "aws.management-tools.compute-optimizer", "aws.management-tools.config", "aws.management-tools.console-mobile-application", "aws.management-tools.control-tower", "aws.management-tools.devops-agent", "aws.management-tools.distro-for-opentelemetry", "aws.management-tools.health-dashboard", "aws.management-tools.launch-wizard", "aws.management-tools.license-manager", "aws.management-tools.managed-grafana", "aws.management-tools.managed-service-for-prometheus", "aws.management-tools.management-console", "aws.management-tools.organizations", "aws.management-tools.partner-central", "aws.management-tools.proton", "aws.management-tools.resilience-hub", "aws.management-tools.resource-explorer", "aws.management-tools.service-catalog", "aws.management-tools.service-management-connector", "aws.management-tools.systems-manager", "aws.management-tools.telco-network-builder", "aws.management-tools.trusted-advisor", "aws.management-tools.user-notifications", "aws.management-tools.well-architected-tool", "aws.media-services.deadline-cloud", "aws.media-services.elemental-appliances-&-software", "aws.media-services.elemental-conductor", "aws.media-services.elemental-delta", "aws.media-services.elemental-link", "aws.media-services.elemental-live", "aws.media-services.elemental-mediaconnect", "aws.media-services.elemental-mediaconvert", "aws.media-services.elemental-medialive", "aws.media-services.elemental-mediapackage", "aws.media-services.elemental-mediastore", "aws.media-services.elemental-mediatailor", "aws.media-services.elemental-server", "aws.media-services.interactive-video-service", "aws.media-services.kinesis-video-streams", "aws.media-services.thinkbox-deadline", "aws.media-services.thinkbox-frost", "aws.media-services.thinkbox-krakatoa", "aws.media-services.thinkbox-stoke", "aws.media-services.thinkbox-xmesh", "aws.migration-modernization.application-discovery-service", "aws.migration-modernization.application-migration-service", "aws.migration-modernization.data-transfer-terminal", "aws.migration-modernization.datasync", "aws.migration-modernization.mainframe-modernization", "aws.migration-modernization.migration-evaluator", "aws.migration-modernization.migration-hub", "aws.migration-modernization.transfer-family", "aws.migration-modernization.transform", "aws.networking-content-delivery.api-gateway", "aws.networking-content-delivery.app-mesh", "aws.networking-content-delivery.application-recovery-controller", "aws.networking-content-delivery.client-vpn", "aws.networking-content-delivery.cloud-map", "aws.networking-content-delivery.cloud-wan", "aws.networking-content-delivery.cloudfront", "aws.networking-content-delivery.direct-connect", "aws.networking-content-delivery.elastic-load-balancing", "aws.networking-content-delivery.global-accelerator", "aws.networking-content-delivery.privatelink", "aws.networking-content-delivery.route-53", "aws.networking-content-delivery.rtb-fabric", "aws.networking-content-delivery.site-to-site-vpn", "aws.networking-content-delivery.transit-gateway", "aws.networking-content-delivery.verified-access", "aws.networking-content-delivery.virtual-private-cloud", "aws.networking-content-delivery.vpc-lattice", "aws.quantum-technologies.braket", "aws.satellite.ground-station", "aws.security-identity.artifact", "aws.security-identity.audit-manager", "aws.security-identity.certificate-manager", "aws.security-identity.cloud-directory", "aws.security-identity.cloudhsm", "aws.security-identity.cognito", "aws.security-identity.detective", "aws.security-identity.directory-service", "aws.security-identity.firewall-manager", "aws.security-identity.guardduty", "aws.security-identity.iam-identity-center", "aws.security-identity.identity-and-access-management", "aws.security-identity.inspector", "aws.security-identity.key-management-service", "aws.security-identity.macie", "aws.security-identity.network-firewall", "aws.security-identity.payment-cryptography", "aws.security-identity.private-certificate-authority", "aws.security-identity.resource-access-manager", "aws.security-identity.secrets-manager", "aws.security-identity.security-agent", "aws.security-identity.security-hub", "aws.security-identity.security-incident-response", "aws.security-identity.security-lake", "aws.security-identity.shield", "aws.security-identity.signer", "aws.security-identity.verified-permissions", "aws.security-identity.waf", "aws.storage.backup", "aws.storage.efs", "aws.storage.elastic-block-store", "aws.storage.elastic-disaster-recovery", "aws.storage.file-cache", "aws.storage.fsx-for-lustre", "aws.storage.fsx-for-netapp-ontap", "aws.storage.fsx-for-openzfs", "aws.storage.fsx-for-wfs", "aws.storage.fsx", "aws.storage.s3-on-outposts", "aws.storage.simple-storage-service-glacier", "aws.storage.simple-storage-service", "aws.storage.snowball-edge", "aws.storage.snowball", "aws.storage.storage-gateway", "aws.analytics.athena.data-source-connectors", "aws.analytics.cloudsearch.search-documents", "aws.analytics.data-exchange-for-apis.data-exchange-for-apis", "aws.analytics.datazone.business-data-catalog", "aws.analytics.datazone.data-portal", "aws.analytics.datazone.data-projects", "aws.analytics.emr.cluster", "aws.analytics.emr.emr-engine", "aws.analytics.emr.hdfs-cluster", "aws.analytics.glue.aws-glue-for-ray", "aws.analytics.glue.crawler", "aws.analytics.glue.data-catalog", "aws.analytics.glue.data-quality", "aws.analytics.lake-formation.data-lake", "aws.analytics.msk.amazon-msk-connect", "aws.analytics.opensearch-service.cluster-administrator-node", "aws.analytics.opensearch-service.data-node", "aws.analytics.opensearch-service.index", "aws.analytics.opensearch-service.observability", "aws.analytics.opensearch-service.opensearch-dashboards", "aws.analytics.opensearch-service.opensearch-ingestion", "aws.analytics.opensearch-service.traces", "aws.analytics.opensearch-service.ultrawarm-node", "aws.analytics.redshift.auto-copy", "aws.analytics.redshift.data-sharing-governance", "aws.analytics.redshift.dense-compute-node", "aws.analytics.redshift.dense-storage-node", "aws.analytics.redshift.ml", "aws.analytics.redshift.query-editor-v2.0", "aws.analytics.redshift.ra3", "aws.analytics.redshift.streaming-ingestion", "aws.application-integration.eventbridge-event.eventbridge-event", "aws.application-integration.eventbridge.custom-event-bus", "aws.application-integration.eventbridge.default-event-bus", "aws.application-integration.eventbridge.pipes", "aws.application-integration.eventbridge.rule", "aws.application-integration.eventbridge.saas-partner-event", "aws.application-integration.eventbridge.scheduler", "aws.application-integration.eventbridge.schema-registry", "aws.application-integration.eventbridge.schema", "aws.application-integration.mq.broker", "aws.application-integration.simple-notification-service.email-notification", "aws.application-integration.simple-notification-service.http-notification", "aws.application-integration.simple-notification-service.topic", "aws.application-integration.simple-queue-service.message", "aws.application-integration.simple-queue-service.queue", "aws.artificial-intelligence.devops-guru.insights", "aws.artificial-intelligence.rekognition.image", "aws.artificial-intelligence.rekognition.video", "aws.artificial-intelligence.sagemaker-ai.canvas", "aws.artificial-intelligence.sagemaker-ai.geospatial-ml", "aws.artificial-intelligence.sagemaker-ai.model", "aws.artificial-intelligence.sagemaker-ai.notebook", "aws.artificial-intelligence.sagemaker-ai.shadow-testing", "aws.artificial-intelligence.sagemaker-ai.train", "aws.artificial-intelligence.textract.analyze-lending", "aws.blockchain.managed-blockchain.blockchain", "aws.business-applications.pinpoint.journey", "aws.business-applications.simple-email-service.email", "aws.compute.ec2.ami", "aws.compute.ec2.auto-scaling", "aws.compute.ec2.aws-microservice-extractor-for-.net", "aws.compute.ec2.db-instance", "aws.compute.ec2.elastic-ip-address", "aws.compute.ec2.instance-with-cloudwatch", "aws.compute.ec2.instance", "aws.compute.ec2.instances", "aws.compute.ec2.rescue", "aws.compute.ec2.spot-instance", "aws.compute.elastic-beanstalk.application", "aws.compute.elastic-beanstalk.deployment", "aws.compute.lambda.lambda-function", "aws.containers.elastic-container-registry.image", "aws.containers.elastic-container-registry.registry", "aws.containers.elastic-container-service.container-1", "aws.containers.elastic-container-service.container-2", "aws.containers.elastic-container-service.container-3", "aws.containers.elastic-container-service.copiiot-cli", "aws.containers.elastic-container-service.ecs-service-connect", "aws.containers.elastic-container-service.service", "aws.containers.elastic-container-service.task", "aws.containers.elastic-kubernetes-service.eks-on-outposts", "aws.databases.aurora-instance.aurora-instance", "aws.databases.aurora-mariadb-instance-alternate.aurora-mariadb-instance-alternate", "aws.databases.aurora-mariadb-instance.aurora-mariadb-instance", "aws.databases.aurora-mysql-instance-alternate.aurora-mysql-instance-alternate", "aws.databases.aurora-mysql-instance.aurora-mysql-instance", "aws.databases.aurora-oracle-instance-alternate.aurora-oracle-instance-alternate", "aws.databases.aurora-oracle-instance.aurora-oracle-instance", "aws.databases.aurora-piops-instance.aurora-piops-instance", "aws.databases.aurora-postgresql-instance-alternate.aurora-postgresql-instance-alternate", "aws.databases.aurora-postgresql-instance.aurora-postgresql-instance", "aws.databases.aurora-sql-server-instance-alternate.aurora-sql-server-instance-alternate", "aws.databases.aurora-sql-server-instance.aurora-sql-server-instance", "aws.databases.aurora.amazon-aurora-instance-alternate", "aws.databases.aurora.amazon-rds-instance-aternate", "aws.databases.aurora.amazon-rds-instance", "aws.databases.aurora.trusted-language-extensions-for-postgresql", "aws.databases.database-migration-service.database-migration-workflow-or-job", "aws.databases.documentdb.elastic-clusters", "aws.databases.dynamodb.amazon-dynamodb-accelerator", "aws.databases.dynamodb.attribute", "aws.databases.dynamodb.attributes", "aws.databases.dynamodb.global-secondary-index", "aws.databases.dynamodb.item", "aws.databases.dynamodb.items", "aws.databases.dynamodb.standard-access-table-class", "aws.databases.dynamodb.standard-infrequent-access-table-class", "aws.databases.dynamodb.stream", "aws.databases.dynamodb.table", "aws.databases.elasticache.cache-node", "aws.databases.elasticache.elasticache-for-memcached", "aws.databases.elasticache.elasticache-for-redis", "aws.databases.elasticache.elasticache-for-valkey", "aws.databases.rds-proxy-instance-alternate.rds-proxy-instance-alternate", "aws.databases.rds-proxy-instance.rds-proxy-instance", "aws.databases.rds.blue-green-deployments", "aws.databases.rds.multi-az-db-cluster", "aws.databases.rds.multi-az", "aws.databases.rds.optimized-writes", "aws.databases.rds.trusted-language-extensions-for-postgresql", "aws.developer-tools.cloud9.cloud9", "aws.front-end-web-mobile.amplify.aws-amplify-studio", "aws.front-end-web-mobile.location-service.geofence", "aws.front-end-web-mobile.location-service.map ", "aws.front-end-web-mobile.location-service.place", "aws.front-end-web-mobile.location-service.routes", "aws.front-end-web-mobile.location-service.track ", "aws.general.alert.alert", "aws.general.authenticated-user.authenticated-user", "aws.general.camera.camera", "aws.general.chat.chat", "aws.general.client.client", "aws.general.cold-storage.cold-storage", "aws.general.credentials.credentials", "aws.general.data-stream.data-stream", "aws.general.data-table.data-table", "aws.general.database.database", "aws.general.disk.disk", "aws.general.document.document", "aws.general.documents.documents", "aws.general.email.email", "aws.general.firewall.firewall", "aws.general.folder.folder", "aws.general.folders.folders", "aws.general.forums.forums", "aws.general.gear.gear", "aws.general.generic-application.generic-application", "aws.general.git-repository.git-repository", "aws.general.globe.globe", "aws.general.internet-alt1.internet-alt1", "aws.general.internet-alt2.internet-alt2", "aws.general.internet.internet", "aws.general.json-script.json-script", "aws.general.logs.logs", "aws.general.magnifying-glass.magnifying-glass", "aws.general.management-console.management-console", "aws.general.metrics.metrics", "aws.general.mobile-client.mobile-client", "aws.general.multimedia.multimedia", "aws.general.office-building.office-building", "aws.general.programming-language.programming-language", "aws.general.question.question", "aws.general.recover.recover", "aws.general.saml-token.saml-token", "aws.general.sdk.sdk", "aws.general.server.server", "aws.general.servers.servers", "aws.general.shield.shield", "aws.general.source-code.source-code", "aws.general.ssl-padlock.ssl-padlock", "aws.general.tape-storage.tape-storage", "aws.general.toolkit.toolkit", "aws.general.user.user", "aws.general.users.users", "aws.iot.iot-core.device-advisor", "aws.iot.iot-core.device-location", "aws.iot.iot-device-defender.iot-device-jobs", "aws.iot.iot-device-management.fleet-hub", "aws.iot.iot-device-tester.iot-device-tester", "aws.iot.iot-greengrass.artifact", "aws.iot.iot-greengrass.component-machine-learning", "aws.iot.iot-greengrass.component-nucleus", "aws.iot.iot-greengrass.component-private", "aws.iot.iot-greengrass.component-public", "aws.iot.iot-greengrass.component", "aws.iot.iot-greengrass.connector", "aws.iot.iot-greengrass.interprocess-communication", "aws.iot.iot-greengrass.protocol", "aws.iot.iot-greengrass.recipe", "aws.iot.iot-greengrass.stream-manager", "aws.iot.iot-hardware-board.iot-hardware-board", "aws.iot.iot-rule.iot-rule", "aws.iot.iot-sitewise.asset-hierarchy", "aws.iot.iot-sitewise.asset-model", "aws.iot.iot-sitewise.asset-properties", "aws.iot.iot-sitewise.asset", "aws.iot.iot-sitewise.data-streams", "aws.iot.iot.action", "aws.iot.iot.actuator", "aws.iot.iot.alexa_enabled-device", "aws.iot.iot.alexa_skill", "aws.iot.iot.alexa_voice-service", "aws.iot.iot.certificate", "aws.iot.iot.desired-state", "aws.iot.iot.device-gateway", "aws.iot.iot.echo", "aws.iot.iot.fire-tv_stick", "aws.iot.iot.fire_tv", "aws.iot.iot.http2-protocol", "aws.iot.iot.http_protocol", "aws.iot.iot.lambda_function", "aws.iot.iot.lorawan-protocol", "aws.iot.iot.mqtt_protocol", "aws.iot.iot.over-air-update", "aws.iot.iot.policy", "aws.iot.iot.reported-state", "aws.iot.iot.sailboat", "aws.iot.iot.sensor", "aws.iot.iot.servo", "aws.iot.iot.shadow", "aws.iot.iot.simulator", "aws.iot.iot.thing_bank", "aws.iot.iot.thing_bicycle", "aws.iot.iot.thing_camera", "aws.iot.iot.thing_car", "aws.iot.iot.thing_cart", "aws.iot.iot.thing_coffee-pot", "aws.iot.iot.thing_door-lock", "aws.iot.iot.thing_factory", "aws.iot.iot.thing_freertos-device", "aws.iot.iot.thing_generic", "aws.iot.iot.thing_house", "aws.iot.iot.thing_humidity-sensor", "aws.iot.iot.thing_industrial-pc", "aws.iot.iot.thing_lightbulb", "aws.iot.iot.thing_medical-emergency", "aws.iot.iot.thing_plc", "aws.iot.iot.thing_police-emergency", "aws.iot.iot.thing_relay", "aws.iot.iot.thing_stacklight", "aws.iot.iot.thing_temperature-humidity-sensor", "aws.iot.iot.thing_temperature-sensor", "aws.iot.iot.thing_temperature-vibration-sensor", "aws.iot.iot.thing_thermostat", "aws.iot.iot.thing_travel", "aws.iot.iot.thing_utility", "aws.iot.iot.thing_vibration-sensor", "aws.iot.iot.thing_windfarm", "aws.iot.iot.topic", "aws.management-governance.cloudformation.change-set", "aws.management-governance.cloudformation.stack", "aws.management-governance.cloudformation.template", "aws.management-governance.cloudtrail.cloudtrail-lake", "aws.management-governance.cloudwatch.alarm", "aws.management-governance.cloudwatch.cross-account-observability", "aws.management-governance.cloudwatch.data-protection", "aws.management-governance.cloudwatch.event-event-based", "aws.management-governance.cloudwatch.event-time-based", "aws.management-governance.cloudwatch.evidently", "aws.management-governance.cloudwatch.logs", "aws.management-governance.cloudwatch.metrics-insights", "aws.management-governance.cloudwatch.rule", "aws.management-governance.cloudwatch.rum", "aws.management-governance.cloudwatch.synthetics", "aws.management-governance.license-manager.application-discovery", "aws.management-governance.license-manager.license-blending", "aws.management-governance.organizations.account", "aws.management-governance.organizations.management-account", "aws.management-governance.organizations.organizational-unit", "aws.management-governance.systems-manager.application-manager", "aws.management-governance.systems-manager.automation", "aws.management-governance.systems-manager.change-calendar", "aws.management-governance.systems-manager.change-manager", "aws.management-governance.systems-manager.compliance", "aws.management-governance.systems-manager.distributor", "aws.management-governance.systems-manager.documents", "aws.management-governance.systems-manager.incident-manager", "aws.management-governance.systems-manager.inventory", "aws.management-governance.systems-manager.maintenance-windows", "aws.management-governance.systems-manager.opscenter", "aws.management-governance.systems-manager.parameter-store", "aws.management-governance.systems-manager.patch-manager", "aws.management-governance.systems-manager.run-command", "aws.management-governance.systems-manager.session-manager", "aws.management-governance.systems-manager.state-manager", "aws.management-governance.trusted-advisor.checklist-cost", "aws.management-governance.trusted-advisor.checklist-fault-tolerant", "aws.management-governance.trusted-advisor.checklist-performance", "aws.management-governance.trusted-advisor.checklist-security", "aws.management-governance.trusted-advisor.checklist", "aws.media-services.cloud-digital-interface.cloud-digital-interface", "aws.media-services.elemental-mediaconnect.mediaconnect-gateway", "aws.migration-modernization.application-discovery-service.aws-agentless-collector", "aws.migration-modernization.application-discovery-service.aws-discovery-agent", "aws.migration-modernization.application-discovery-service.migration-evaluator-collector", "aws.migration-modernization.datasync.agent", "aws.migration-modernization.datasync.discovery", "aws.migration-modernization.mainframe-modernization.analyzer", "aws.migration-modernization.mainframe-modernization.compiler", "aws.migration-modernization.mainframe-modernization.converter", "aws.migration-modernization.mainframe-modernization.developer", "aws.migration-modernization.mainframe-modernization.runtime", "aws.migration-modernization.migration-hub.refactor-spaces-applications", "aws.migration-modernization.migration-hub.refactor-spaces-environments", "aws.migration-modernization.migration-hub.refactor-spaces-services", "aws.migration-modernization.transfer-family.aws-as2", "aws.migration-modernization.transfer-family.aws-ftp", "aws.migration-modernization.transfer-family.aws-ftps", "aws.migration-modernization.transfer-family.aws-sftp", "aws.networking-content-delivery.api-gateway.endpoint", "aws.networking-content-delivery.app-mesh.mesh", "aws.networking-content-delivery.app-mesh.virtual-gateway", "aws.networking-content-delivery.app-mesh.virtual-node", "aws.networking-content-delivery.app-mesh.virtual-router", "aws.networking-content-delivery.app-mesh.virtual-service", "aws.networking-content-delivery.cloud-map.namespace", "aws.networking-content-delivery.cloud-map.resource", "aws.networking-content-delivery.cloud-map.service", "aws.networking-content-delivery.cloud-wan.core-network-edge", "aws.networking-content-delivery.cloud-wan.segment-network", "aws.networking-content-delivery.cloud-wan.transit-gateway-route-table-attachment", "aws.networking-content-delivery.cloudfront.download-distribution", "aws.networking-content-delivery.cloudfront.edge-location", "aws.networking-content-delivery.cloudfront.functions", "aws.networking-content-delivery.cloudfront.streaming-distribution", "aws.networking-content-delivery.direct-connect.gateway", "aws.networking-content-delivery.elastic-load-balancing.application-load-balancer", "aws.networking-content-delivery.elastic-load-balancing.classic-load-balancer", "aws.networking-content-delivery.elastic-load-balancing.gateway-load-balancer", "aws.networking-content-delivery.elastic-load-balancing.network-load-balancer", "aws.networking-content-delivery.route-53-hosted-zone.route-53-hosted-zone", "aws.networking-content-delivery.route-53.readiness-checks", "aws.networking-content-delivery.route-53.resolver-dns-firewall", "aws.networking-content-delivery.route-53.resolver-query-logging", "aws.networking-content-delivery.route-53.resolver", "aws.networking-content-delivery.route-53.route-table", "aws.networking-content-delivery.route-53.routing-controls", "aws.networking-content-delivery.transit-gateway.attachment", "aws.networking-content-delivery.vpc.carrier-gateway", "aws.networking-content-delivery.vpc.customer-gateway", "aws.networking-content-delivery.vpc.elastic-network-adapter", "aws.networking-content-delivery.vpc.elastic-network-interface", "aws.networking-content-delivery.vpc.endpoints", "aws.networking-content-delivery.vpc.flow-logs", "aws.networking-content-delivery.vpc.internet-gateway", "aws.networking-content-delivery.vpc.nat-gateway", "aws.networking-content-delivery.vpc.network-access-analyzer", "aws.networking-content-delivery.vpc.network-access-control-list", "aws.networking-content-delivery.vpc.peering-connection", "aws.networking-content-delivery.vpc.reachability-analyzer", "aws.networking-content-delivery.vpc.router", "aws.networking-content-delivery.vpc.traffic-mirroring", "aws.networking-content-delivery.vpc.virtual-private-cloud-vpc", "aws.networking-content-delivery.vpc.vpn-connection", "aws.networking-content-delivery.vpc.vpn-gateway", "aws.quantum-technologies.braket.chandelier", "aws.quantum-technologies.braket.chip", "aws.quantum-technologies.braket.embedded-simulator", "aws.quantum-technologies.braket.managed-simulator", "aws.quantum-technologies.braket.noise-simulator", "aws.quantum-technologies.braket.qpu", "aws.quantum-technologies.braket.simulator-1", "aws.quantum-technologies.braket.simulator-2", "aws.quantum-technologies.braket.simulator-3", "aws.quantum-technologies.braket.simulator-4", "aws.quantum-technologies.braket.simulator", "aws.quantum-technologies.braket.state-vector", "aws.quantum-technologies.braket.tensor-network", "aws.security-identity.certificate-manager.certificate-authority", "aws.security-identity.directory-service.ad-connector", "aws.security-identity.directory-service.aws-managed-microsoft-ad", "aws.security-identity.directory-service.simple-ad", "aws.security-identity.identity-access-management.add-on", "aws.security-identity.identity-access-management.aws-sts-alternate", "aws.security-identity.identity-access-management.aws-sts", "aws.security-identity.identity-access-management.data-encryption-key", "aws.security-identity.identity-access-management.encrypted-data", "aws.security-identity.identity-access-management.iam-access-analyzer", "aws.security-identity.identity-access-management.iam-roles-anywhere", "aws.security-identity.identity-access-management.long-term-security-credential", "aws.security-identity.identity-access-management.mfa-token", "aws.security-identity.identity-access-management.permissions", "aws.security-identity.identity-access-management.role", "aws.security-identity.identity-access-management.temporary-security-credential", "aws.security-identity.inspector.agent", "aws.security-identity.key-management-service.external-key-store", "aws.security-identity.network-firewall.endpoints", "aws.security-identity.security-hub.finding", "aws.security-identity.shield.aws-shield-advanced", "aws.security-identity.waf.bad-bot", "aws.security-identity.waf.bot-control", "aws.security-identity.waf.bot", "aws.security-identity.waf.filtering-rule", "aws.security-identity.waf.labels", "aws.security-identity.waf.managed-rule", "aws.security-identity.waf.rule", "aws.storage.backup.audit-manager", "aws.storage.backup.aws-backup-for-aws-cloudformation", "aws.storage.backup.aws-backup-support-for-amazon-fsx-for-netapp-ontap", "aws.storage.backup.aws-backup-support-for-amazon-s3", "aws.storage.backup.aws-backup-support-for-vmware-workloads", "aws.storage.backup.backup-plan", "aws.storage.backup.backup-restore", "aws.storage.backup.backup-vault", "aws.storage.backup.compliance-reporting", "aws.storage.backup.compute", "aws.storage.backup.database", "aws.storage.backup.gateway", "aws.storage.backup.legal-hold", "aws.storage.backup.recovery-point-objective", "aws.storage.backup.recovery-time-objective", "aws.storage.backup.storage", "aws.storage.backup.vault-lock", "aws.storage.backup.virtual-machine-monitor", "aws.storage.backup.virtual-machine", "aws.storage.elastic-block-store.amazon-data-lifecycle-manager", "aws.storage.elastic-block-store.multiple-volumes", "aws.storage.elastic-block-store.snapshot", "aws.storage.elastic-block-store.volume-gp3", "aws.storage.elastic-block-store.volume", "aws.storage.elastic-file-system.efs-intelligent-tiering", "aws.storage.elastic-file-system.efs-one-zone-infrequent-access", "aws.storage.elastic-file-system.efs-one-zone", "aws.storage.elastic-file-system.efs-standard-infrequent-access", "aws.storage.elastic-file-system.efs-standard", "aws.storage.elastic-file-system.elastic-throughput", "aws.storage.elastic-file-system.file-system", "aws.storage.file-cache.hybrid-nfs-linked-datasets", "aws.storage.file-cache.on-premises-nfs-linked-datasets", "aws.storage.file-cache.s3-linked-datasets", "aws.storage.simple-storage-service-glacier.archive", "aws.storage.simple-storage-service-glacier.vault", "aws.storage.simple-storage-service.bucket-with-objects", "aws.storage.simple-storage-service.bucket", "aws.storage.simple-storage-service.directory-bucket", "aws.storage.simple-storage-service.general-access-points", "aws.storage.simple-storage-service.object", "aws.storage.simple-storage-service.s3-batch-operations", "aws.storage.simple-storage-service.s3-express-one-zone", "aws.storage.simple-storage-service.s3-glacier-deep-archive", "aws.storage.simple-storage-service.s3-glacier-flexible-retrieval", "aws.storage.simple-storage-service.s3-glacier-instant-retrieval", "aws.storage.simple-storage-service.s3-intelligent-tiering", "aws.storage.simple-storage-service.s3-multi-region-access-points", "aws.storage.simple-storage-service.s3-object-lambda-access-points", "aws.storage.simple-storage-service.s3-object-lambda", "aws.storage.simple-storage-service.s3-object-lock", "aws.storage.simple-storage-service.s3-on-outposts", "aws.storage.simple-storage-service.s3-one-zone-ia", "aws.storage.simple-storage-service.s3-replication-time-control", "aws.storage.simple-storage-service.s3-replication", "aws.storage.simple-storage-service.s3-select", "aws.storage.simple-storage-service.s3-standard-ia", "aws.storage.simple-storage-service.s3-standard", "aws.storage.simple-storage-service.s3-storage-lens", "aws.storage.simple-storage-service.s3-tables", "aws.storage.simple-storage-service.s3-vectors", "aws.storage.simple-storage-service.vpc-access-points", "aws.storage.snowball.snowball-import-export", "aws.storage.storage-gateway.amazon-fsx-file-gateway", "aws.storage.storage-gateway.amazon-s3-file-gateway", "aws.storage.storage-gateway.cached-volume", "aws.storage.storage-gateway.file-gateway", "aws.storage.storage-gateway.noncached-volume", "aws.storage.storage-gateway.tape-gateway", "aws.storage.storage-gateway.virtual-tape-library", "aws.storage.storage-gateway.volume-gateway", "aws.category.analytics", "aws.category.application-integration", "aws.category.artificial-intelligence", "aws.category.blockchain", "aws.category.business-applications", "aws.category.cloud-financial-management", "aws.category.compute", "aws.category.containers", "aws.category.customer-enablement", "aws.category.customer-experience", "aws.category.databases", "aws.category.developer-tools", "aws.category.end-user-computing", "aws.category.front-end-web-mobile", "aws.category.games", "aws.category.internet-of-things", "aws.category.management-tools", "aws.category.media-services", "aws.category.migration-modernization", "aws.category.multicloud-and-hybrid", "aws.category.networking-content-delivery", "aws.category.quantum-technologies", "aws.category.satellite", "aws.category.security-identity", "aws.category.serverless", "aws.category.storage", "aws.group.account", "aws.group.auto-scaling-group", "aws.group.cloud-logo", "aws.group.cloud", "aws.group.corporate-data-center", "aws.group.ec2-instance-contents", "aws.group.iot-greengrass-deployment", "aws.group.private-subnet", "aws.group.public-subnet", "aws.group.region", "aws.group.server-contents", "aws.group.spot-fleet", "aws.group.virtual-private-cloud-vpc"]>;
|
|
3
|
+
export type NodeType = z.infer<typeof NodeTypeSchema>;
|
|
4
|
+
/** Maps every NodeType key to its icon path relative to the icons/ directory. */
|
|
5
|
+
export declare const nodeTypeToIcon: Record<NodeType, string>;
|
|
6
|
+
//# sourceMappingURL=node-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-types.d.ts","sourceRoot":"","sources":["../src/node-types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc,+pmCA0yBzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,iFAAiF;AACjF,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CA0yBnD,CAAC"}
|